
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.
fi-security
Advanced tools
Application security module for Node.js Express applications.
npm install --save fi-security
You must call it with your Express' application instance, to attach the routes, and a configuration object. It's important to initialize the Express' session before you configure Fi Security:
var session = require('express-session');
var security = require('fi-security');
var express = require('express');
var app = express();
app.use(session());
security(app, config);
/* And now your routes... */
app.get('/', (req, res, next) => {
//...
});
The configuration Object
must be pretty much like a Fi Aegis configuration Object
, since this module is based on it.
Function
to log with or a Boolean
. If true
it'll use console.log
.exclude
property:
CSRF
checks:
POST
, PUT
or DELETE
method or an array of them. Empty means ALL
.{
debug: true,
p3p: 'ABCDEF',
csrf: {
exclude: [{
method: 'POST',
path: '/no-csrf'
}, {
path: '/api/external'
}]
},
xframe: 'DENY',
xssProtection: {
enabled: true
},
csp: {
reportUri: 'https://example.com',
policy: {
'default-src': "'self'"
}
},
hsts: {
includeSubDomains: true,
maxAge: 31536000
},
nosniff: true
}
Just add this to your Fi Security configuration:
//...
csrf: {
angular: true
//...
}
//...
See this for more information regarding AngularJS' XSRF approach.
FAQs
Security component for Node.js Express applications
The npm package fi-security receives a total of 0 weekly downloads. As such, fi-security popularity was classified as not popular.
We found that fi-security demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.