
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.
Simple utility to send / consume messages via RabbitMQ, based on ruby-amqp/bunny ruby gem.
Add this line to your application's Gemfile:
gem 'simple_rabbit'
And then execute:
$ bundle install
Or install it manually:
$ gem install simple_rabbit
To establish connection run this once. It can go to any kind of initializer script.
SimpleRabbit::Connection.get(user: "rabbitmquser", pass: "rabbitpass", host: "localhost:5672")
It accepts all configuration params available in Bunny gem.
Once connection has been established you can run following to publish message to queue called 'sample_queue'.
SimpleRabbit::Publisher.publish("sample_queue", "This is the message body")
It creates durable queue, that gets initialized on demand.
To create consumer worker that reacts to messages published in 'sample_queue' define worker as below:
SimpleRabbit::ConsumerWorker.run("sample_queue") do |message|
puts "Hey I've received message with body: '#{message}'"
# do sth
end
All workers are set to use manual acknowledgement, so in other words if worker fails with some sort of exception, the message can be handled by different worker.
FAQs
Unknown package
We found that simple_rabbit 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.