
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
couch-proxy-auth
Advanced tools
Creates CouchDB Proxy Authentication Headers
npm install couch-proxy-auth
var xauth = require('couch-proxy-auth')
var headers = xauth('username', 'role', 'secret')
/*
{
'X-Auth-CouchDB-UserName': 'username'
'X-Auth-CouchDB-Token': '0xde7c9b8bbaab8a73f090cd4d9',
'X-Auth-CouchDB-Roles': 'role'
}
*/
The token is generated by HMAC-SHA1(secret, username) and represented as Hex.
xauth(username, roles, secret)
username
Name of the user in CouchDBroles
Array of (multiple) roles or string for a singe rolesecret
Optional, but recommended, shared secret (see documentation)For more information see the CouchDB Docs
MIT
FAQs
Creates CouchDB Proxy Authentication Headers
The npm package couch-proxy-auth receives a total of 3 weekly downloads. As such, couch-proxy-auth popularity was classified as not popular.
We found that couch-proxy-auth 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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.