Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
A simple directory crawler DSL.
require 'wriggle'
wriggle '/path/to/files' do |w|
# Print a list of files
w.file { |path| puts path }
# Build a list of Rails controller files
controllers = []
w.files /_controller\.rb/ do |path|
controllers << path
end
# Print the path of any file named "spec_helper.rb"
w.file 'spec_helper.rb' { |path| puts path }
# Build an array of Ruby code files
ruby_files = []
w.extension :rb do |path|
ruby_files << path
end
# Build an array of video files
video_files = []
w.extensions %w(mpg mpeg wmv avi mkv) do |path|
video_files << path
end
# Delete directories that are empty
w.directories do |path|
Dir.rmdir(path) unless Dir.entries(path).length > 2
end
# Print a list of directories matching "foo"
# NOTE: Matches "/baz/bar/foo" and "/foo" but not "/foo/bar/baz"
w.directory /foo/ { |path| puts path }
end
Copyright (c) 2010 Robert Speicher. See LICENSE for details.
FAQs
Unknown package
We found that wriggle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.