
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.
Send With Us is a service that provides a convenient way for non-developers to create and edit the email content from your app. Send With Us created a gem, send_with_us, that communicates to their service using their low-level RESTful API.
Ruby on Rails developers are familiar with the ActionMailer interface for sending email. This gem implements a small layer over the send_with_us gem that provides and ActionMailer-like API.
Add this line to your application's Gemfile:
gem 'send_with_us_mailer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install send_with_us_mailer
Mailer models inherit from SendWithUsMailer::Base
. A mailer model defines methods
used to generate an email message. In these methods, you can assign variables to be sent to
the Send With Us service and options on the mail itself such as the :from
address.
class Notifier < SendWithUsMailer::Base default from: 'no-reply@example.com'
def welcome(recipient)
assign(:account, recipient)
mail(email_id: 'ID-CODE-FROM-SEND-WITH-US', to: recipient.email)
end
end
Within the mailer method, you have access to the following methods:
assign
- Allows you to assign key-value pairs that will be
data payload used by Send With Us within the email.mail
- Allows you to specify the email to be sent.Once a mailer action is defined, you can deliver your message or create it and save it for delivery later:
Notifier.welcome(david).deliver # sends the email mail = Notifier.welcome(david) # => a SendWithUsMailer::MailParams object mail.deliver # sends the email
You never instantiate your mailer class. Rather, you just call the method you defined on the class itself.
SendWithUsMailer allows you to specify default values inside the class definition:
class Notifier < SendWithUsMailer::Base default from: 'system@example.com' end
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that send_with_us_mailer 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.