
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Why expose your public ID's if you don't need to? Hang hash_identable on your rails models and use the #uuid method to get a unique id of any item.
This gem wraps the hashids.org ruby gem: http://hashids.org/ruby/
Add this line to your application's Gemfile:
gem 'hash_identable', :git => 'https://github.com/octaviuslabs/hash_identable.git'
And then execute:
$ bundle
Assuming your model
class MyModel
attr_reader :id #HashIdentable depends on the presence of an ID
# Other code
end
Configure the gem
HashIdentable.config do |c|
c.set_salt "My Salt" #THIS VALUE SHOULD NEVER CHANGE FOR THE APPLICATION
c.set_length 36
c.add_object MyModel, 3
end
When you want the hashid:
obj = MyModel.new(id: 12)
obj.uuid
Or:
obj = MyModel.new(id: 12)
obj.identity.to_s
When you want to find an object based on the hashid:
obj = HashIdentable::Locator.find([<find_method>], id) # Non ActiveRecord
obj = HashIdentable::Locator::ActiveRecord.find(id) #ActiveRecord
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that hash_identable 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.