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.
Extends ActiveSupport's symbolize_keys to recursively symbolize all keys in a gem. By default, it is fully backwards compatible with ActiveSupport's symbolize_keys method. If the recursive flag is set to true however and it recursively symbolizes any values which are hashes.
Add this line to your application's Gemfile:
gem 'hash_symbolizer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hash_symbolizer
gem install hash_symbolizer or include it in your Gemfile and then run bundle install.
Examples:
{"a" => {"b" => 1}}.symbolize_keys = {:a => {"b" => 1}}
{"a" => {"b" => 1}}.symbolize_keys(true) = {:a => {:b => 1}}
{"a" => {"b" => 1}}.symbolize_keys! = {:a => {"b" => 1}}
{"a" => {"b" => 1}}.symbolize_keys!(true) = {:a => {:b => 1}}
Works on Ruby 1.9.2-p290, 1.9.3-p125, ActiveSupport version 3.2.2 as of now.
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that hash_symbolizer 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.