spc_login@1.0.0
Malicious code in spc_login (npm)
Analysis
The preinstall hook (preinstall.js) harvests the installer's environment variables matching AWS, TOKEN, KEY, SECRET, PASS, API, GITHUB, NPM, DOCKER, DB, MONGO, REDIS, POSTGRES, or MYSQL, truncates each value to 100 characters, and base64-encodes them together with the hostname, username, and working directory. It then exfiltrates this data via curl to hxxp://216[.]126[.]236[.]46/r[.]php?d=<encoded>. On Linux/macOS it additionally launches a reverse shell to 216[.]126[.]236[.]46:4444 using bash /dev/tcp, nc -e /bin/sh, or a python3 socket fallback. The hook swallows all errors (|| true) to hide failure.
- analyzed by
- Leitwacht
- first seen
- Aug 29, 2026, 02:43 AM
- analyzed
- Aug 29, 2026, 02:43 AM
Related advisories
- spc-grafeno-login@1.0.0
- grafeno-core@1.0.0
- grafeno-actions@999.0.0
- model-poc-suhail@1.0.12
- internallib_v902@1.2.1
- @hzero-front-ui/cfg@99.99.99
- @hzero-front-ui/hzero-ui@99.99.99
- simple-date-formatter-new-9@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.