
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.
donncha-validates_as_email
Advanced tools
This gem/plugin is a re-packaged and gem'ified version of the original plugin with credit as follows:
Donncha Redmond dredmond@e-xact.com Michal Zima xhire@mujmalysvet.cz Ximon Eighteen ximon.eighteen@int.greenpeace.org Dan Kubb dan.kubb@autopilotmarketing.com Thijs van der Vossen thijs@fngtps.com
This Ruby on Rails plugin implements an ActiveRecord validation helper called validates_as_email. The helper acts as if validates_format_of was used with a regular expression that defines an RFC822 email address conformance test.
The plugin implements the regular expression here:
http://tfletcher.com/lib/rfc822.rb
Which is an implementation in Ruby of a regular expression published by Cal Henderson for PHP here:
http://www.iamcal.com/publish/articles/php/parsing_email
gem sources -a http://gems.github.com
Install the gem(s): sudo gem install donncha-validates_as_email
Add to environment.rb initializer block: config.gem 'donncha-validates_as_email', :lib => 'validates_as_email', :source => 'http://gems.github.com'
In your model file do something like:
class MyClass < ActiveRecord::Base validates_as_email :email, :message => 'Invalid Email Address', :allow_nil => true end
class MyOtherClass < ActiveRecord::Base
validates_as_email :email, :message => 'Invalid Email Address', :allow_nil => true, :restrict_domain => true end
Some tests have been added.
See the LICENSE file.
FAQs
Unknown package
We found that donncha-validates_as_email demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.