
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.
People love Base classes! They have tons of methods waiting to be used. Just check out ActiveRecord::Base
's method list:
>> ActiveRecord::Base.methods.length
=> 530
But why stop there? Why not have even more methods? In fact, let's put every method on one Base class!
So I did. It's called Base. Just subclass it and feel free to directly reference any class method, instance method, or constant defined on any module or class in the system. Like this:
class Cantaloupe < Base
def embiggen
encode64(deflate(SEPARATOR))
end
end
>> Cantaloupe.new.embiggen
=> "eJzTBwAAMAAw\n"
See that embiggen
method calling encode64
and deflate
methods? Those come from the Base64
and Zlib
modules. And the SEPARATOR
constant is defined in File
. Base don't care where it's defined! Base calls what it wants!
By the way, remember those 530 ActiveRecord methods? That's amateur stuff. Check out Base loaded inside a Rails app:
>> Base.new.methods.count
=> 6947
It's so badass that it takes five seconds just to answer that question!
Base is just craaazzy! It's the most fearless class in all of Ruby. Base doesn't afraid of anything!
@garybernhardt @kantrn ... Can't tell if joke or just Ruby.
- @shazow
@garybernhardt y u troll soooo good? ;-)
- @amerine
@garybernhardt Imagine all the things you could have done doing not that
- @mrb_bk
@garybernhardt I hate you.
- @jmazzi
Yes. I am being completely serious. You should.
Definitely.
FAQs
Unknown package
We found that base 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.