
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.
@nx/basic-auth-middleware
Advanced tools
A configurable Basic Authentication Middleware for Express
A middleware for express to configure a basic authentication.
Features:
npm -i -S @nx/basic-auth-middleware
const express = require('express');
const basicAuthMiddleware = require('@nx/basic-auth-middleware');
const app = express();
app.use(basicAuthMiddleware.default('test','test', {hostsWhitelist: ['localhost:3000']}));
app.get('/', (req, res) => {
res.send('Huhu all (/)');
});
app.listen(3000, () => console.log('Listening to 3000'));
Option | Type | Description | Example |
---|---|---|---|
ipAddressWhitelist | string[] | disable basic auth for this ips | ['127.0.0.1', '192.168.0.2'] |
ipRangeWhitelist | string[] | disable basic auth for all ip addresses in the range | ['10.10.0.0/16', '192.168.1.1/24'] |
hostsWhitelist | string[] | disable basic auth for this hosts | ['localhost:3000', '127.0.0.1'] |
specificHostAuth | {[key: string]: {username: string, password: string}} | change username and password for the specific hosts | {'google.de': { username: 'test', password: 'test' } } |
FAQs
A configurable Basic Authentication Middleware for Express
The npm package @nx/basic-auth-middleware receives a total of 22 weekly downloads. As such, @nx/basic-auth-middleware popularity was classified as not popular.
We found that @nx/basic-auth-middleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.