Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
An Akismet API client for node.js.
npm install akismet
You need to sign up for an Akismet API key to use the API. Once you sign up, it would be a good idea to verify your key.
var akismet = require('akismet').client({ blog: 'http://my.blog.com', apiKey: 'myakismetapikey123' });
akismet.verifyKey(function(err, verified) {
if (verified)
console.log('API key successfully verified.');
else
console.log('Unable to verify API key.');
});
You can now use Akismet to moderate your comments.
akismet.checkSpam({
user_ip: '1.1.1.1',
permalink: 'http://www.my.blog.com/my-post',
comment_author: 'spammer',
comment_content: 'spamming your comments'
}, function(err, spam) {
if(spam)
console.log('Spam caught.');
else
console.log('Not spam');
});
You can also send feedback to Akismet with submitSpam
and submitHam
. Their usage is the same as checkSpam
.
akismet.submitSpam({
user_ip: '1.1.1.1',
permalink: 'http://www.my.blog.com/my-post',
comment_author: 'spammer',
comment_content: 'that was spam but you failed to catch me'
}, function(err) {
console.log('Spam reported to Akismet.');
});
See the Akismet API documentation for more information.
FAQs
Akismet API client for node.js
The npm package akismet receives a total of 2,633 weekly downloads. As such, akismet popularity was classified as popular.
We found that akismet 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.