test-leakage-attack-node@1.0.0
Malicious code in test-leakage-attack-node (npm)
Analysis
The package exfiltrates all environment variables from the installer's machine via an HTTP GET request during npm install. The preinstall and postinstall hooks both run index.js, which collects every key-value pair from process.env, serializes them as JSON, base64-encodes the payload, and sends it to hxxp://somewhere[.]somehow[.]local/ in the X-Hidden request header. The exfiltrated data includes all environment secrets the victim has configured: API tokens, cloud credentials, database passwords, CI/CD tokens, and other sensitive configuration. The C2 host is somewhere.somehow.local (port 80, path /), and the exfiltration channel is the X-Hidden header on GET requests.
- analyzed by
- Leitwacht
- first seen
- Jun 14, 2026, 09:17 PM
- analyzed
- Jun 14, 2026, 09:19 PM
Related advisories
- tecken@0.1.10
- tdhg-demp@1.0.0
- system-drive@1.0.0
- swplayer-react-sl@1.0.5
- svg2text@3.0.0
- st-pathhelper@1.0.0
- sqrt-bn-enhanced@2.0.9
- spectral-corsair@999.999.1000
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.