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.
Tested on MRI Ruby 1.8.7, 1.9.2, 1.9.3, Rubinius (1.8 and 1.9) and JRuby
Have you ever written something like this in your specs?
it "should be US currency" do
subject.currency(:us).should == 'US dollar'
end
it "should be AU currency" do
subject.currency(:au).should == 'AU dollar'
end
it "should be UK currency" do
subject.currency(:uk).should == 'UK pound'
end
If yes, then this is what you really needed:
its(:currency, :us) { should == 'US dollar' }
its(:currency, :au) { should == 'AU dollar' }
its(:currency, :uk) { should == 'UK pound' }
Add to your Gemfile
:
gem 'its'
Then require it somewhere:
require 'its'
And you are done.
Please report any issues here or better submit a Pull Request.
MIT by me and RSpec guys where this code was extracted from.
FAQs
Unknown package
We found that its 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.