Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
postmark-spamcheck
Advanced tools
Node library for the Postmark spam API. http://spamcheck.postmarkapp.com/doc
$ npm install postmark-spamcheck --save
var fs = require('fs');
var postmarkSpamcheck = require('postmark-spamcheck');
fs.readFile(filepath, 'utf-8', function (err, content) {
if (err) {
throw err;
}
postmarkSpamcheck.check({
options: 'long',
email: content
}, function(info) {
console.log(info.score);
console.log(info.scoreDescription);
console.log(info.report);
});
});
Required
Type: string
The raw dump of the email to be filtered, including all headers.
Type: string
Default: short
Must either be "long" for a full report of processing rules, or "short" for a score request.
Provide a callback to use the information gathered, this will be run once the spam check has been successfully completed.
$ npm install postmark-spamcheck --global
postmark-spamcheck --file <file> --type long
Options:
-h, --help Output help information
-v, --version Output version information
-f, --file [file] Specify the location of the configuration file
-t, --type [type] Specify the type of report (short | long)
Examples:
postmark-spamcheck --file ./email.txt --type long
MIT © James Bell
FAQs
Node library for the Postmark spam API
The npm package postmark-spamcheck receives a total of 3 weekly downloads. As such, postmark-spamcheck popularity was classified as not popular.
We found that postmark-spamcheck 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.