
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
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.
A ruby translation of the Kicksend mailcheck javascript library which suggests a right domain when your users misspell it in an email address.
When your user types in "user@hotnail.con", Mailcheck will suggest "user@hotmail.com".
Mailcheck will offer up suggestions for top level domains too, and suggest ".com" when a user types in "user@hotmail.cmo".
Add this line to your application's Gemfile:
gem 'mailcheck'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mailcheck
> require 'mailcheck'
> mailcheck = Mailcheck.new
> mailcheck.suggest("user@hotma.com")
# => {
# :address =>"user",
# :domain =>"hotmail.com",
# :full =>"user@hotmail.com"
# }
Returns false if no suggestion:
> mailcheck.suggest("user@hotmail.com")
# => false
Pass in a custom list of domains and TLDs:
mailcheck = Mailcheck.new(
:domains => ["gmail.com", "hotmail.com", "aol.com"],
:top_level_domains => ["com", "net", "org"]
)
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that mailcheck 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
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.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.