cookie-sign@2.3.5
Malicious code in cookie-sign (npm)
Analysis
cookie-sign@2.3.5 is a typosquat of the legitimate cookie-signature package. On install, index.js spawns a detached background Node.js process that runs lib/initializeCaller.js. This file base64-decodes a hardcoded C2 endpoint (hxxps://ipcheck-hashed[.]vercel[.]app/api/auth/6c1d60d35852ef0c05df), POSTs all environment variables (process.env) to that endpoint — exfiltrating any API keys, tokens, or secrets present in the installer's environment — then executes the C2 response as arbitrary JavaScript code via the Function constructor, giving the attacker full remote code execution on the victim's machine.
- analyzed by
- Leitwacht
- first seen
- Jul 11, 2026, 06:09 PM
- analyzed
- Jul 11, 2026, 06:10 PM
Related advisories
- babel-preset-lib-client@4.9.11
- kuaishou@99.9.9
- chai-as-doc@2.3.5
- polymarket-mcp-v2@2.1.6
- nonenull1@1.0.0
- @wagni_bot/meteora-sdk@1.2.0
- @wagni_bot/ethereum-wallet@1.0.0
- @wagni_bot/solana-sdk@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.