
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.
A simple node module for checking for spam in user inputs. This module comes with a full list of spam words!
npm install spam-check
var spamCheck = require('spam-check');
var options = {'string':'poop'};
spamCheck(options, function(err, results) {
console.log("err:",err);
console.log("results:",results);
});
You can also set a type flag for either full matches or partial matches. Below is an example for a partial match.
var spamCheck = require('spam-check');
var options = {'string':'wordspoopwords','type':'part'};
spamCheck(options, function(err, results) {
console.log("err:",err);
console.log("results:",results);
});
Check the return for a err
flag. If err is set to true, then the input was invalid. Otherwise it will be set to false. The above example will return something like...
{ spam: true }
You have to have mocha running. To install it run...
npm install mocha -g
Then you can run the tests by turning on the server and run...
mocha tests/
-Add other Validation rules
FAQs
Module for checking for spam words
The npm package spam-check receives a total of 196 weekly downloads. As such, spam-check popularity was classified as not popular.
We found that spam-check 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.