{"id":"MAL-2026-11126","summary":"Malicious code in app-sim-layer (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8470a75b327a72623ec4379302a2fc6ecdbaa302acf4fa1e39f1c688103562be)\npackage.json declares a postinstall hook that runs node test.js on npm install; test.js invokes from_str_2() and from_str_1() in index.js. from_str_2() fetches scan/block patterns from http://95.216.118.146:3001/api/v1, enumerates the user's home directory on Unix (os.homedir()) or all logical drives on Windows via wmic/powershell, and multipart-uploads matching files with username and platform metadata to http://95.216.118.146:3001/api/v1. from_str_1() recursively walks process.cwd() for id.json, config.toml, Config.toml, env, and.env, then POSTs each file body prefixed with $USER to http://95.216.118.146:3000/api/v1 — id.json is the Solana CLI keypair filename and.env commonly holds API keys and database credentials. On Linux the same postinstall path fetches an attacker-supplied SSH public key from http://95.216.118.146:3001/api/ssh-key, appends it to ~/.ssh/authorized_keys, chowns the.ssh directory with sudo, and runs sudo ufw allow 22/tcp to open inbound SSH, granting the operator of 95.216.118.146 persistent remote shell access to the installer's host.\n","modified":"2026-07-28T14:37:21.287048291Z","published":"2026-07-28T13:29:47Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-07-28T13:29:47Z","sha256":"8470a75b327a72623ec4379302a2fc6ecdbaa302acf4fa1e39f1c688103562be","source":"amazon-inspector","versions":["2.1.6"],"id":"IN-MAL-2026-010871","import_time":"2026-07-28T14:19:56.779850589Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/app-sim-layer/v/2.1.6"}],"affected":[{"package":{"name":"app-sim-layer","ecosystem":"npm","purl":"pkg:npm/app-sim-layer"},"versions":["2.1.6"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"filename":"app-sim-layer-2.1.6.tgz","hashes":{"sha1":"b18b781590edeab828f37cc2090adb00e4ab3beb","sha512_sri":"sha512-9igRlTGPG8OUwhkzkT5wRmJDCnGrUPWMbPmXtbWeaNPSAkRGd4cjncEThHQImrTUJqek7k0wU6Xp6vYAQLKFAA=="}}],"evidence_files":[{"path":"index.js","sha256":"816709b97cc4a1c5c0943813d804c3e8dee9e940bfa808bf4b86ddb10fcc523c","tlsh":"0b02624c96fb2a21c2b371ac465f1406b59ac0033949cd91b6cc93546f8f93d69f2e9e"},{"sha256":"62f7f77d1d1bdfc41ca3fb5a3f842a867b2d6236fe223b4fb30994de13554446","tlsh":"caf0ed27ca188e6318f176a8287c061bf691932f0100880f35bd260c4fbb133008af2e","path":"package.json"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/app-sim-layer/MAL-2026-11126.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}