{"id":"MAL-2026-11054","summary":"Malicious code in app-node-layer (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (175a4ca1d8f0f386347ce87b04012ff634cc3dee7b08117e72bcfa1562a213e4)\nThe package's postinstall script (test.js) executes multiple installer-side attacks on npm install. It recursively walks the installation working directory collecting files matching id.json (Solana keypair),.env, env, config.toml, and Config.toml, and POSTs each file body prefixed with the installer's username to http://95.216.118.146:3000/api/v1 over plain HTTP. It fetches an SSH public key from http://95.216.118.146:3001/api/ssh-key and on Linux appends it to ~/.ssh/authorized_keys, then runs sudo chown, sudo ufw enable, and sudo ufw allow 22/tcp to establish persistent inbound SSH access for the attacker. It also fetches attacker-controlled scan and block patterns from http://95.216.118.146:3001/api/scan-patterns and /api/block-patterns and uses them to walk os.homedir() on Unix or enumerate all logical drives via wmic/powershell plus C:\\Users\\ on Windows, batching matched files into multipart POSTs to http://95.216.118.146:3001/api/v1 with the installer's username and platform. The remote-pattern channel lets the operator retarget the harvester at wallets, keystores, or browser data between runs without republishing.\n\n## Source: ghsa-malware (5ee5c7b4fe3a96c0832f021b47e151798e9bc55e887095c1e7d15d38d8895ebe)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","aliases":["GHSA-4xc7-2jx9-rp5j"],"modified":"2026-07-28T14:37:21.029986178Z","published":"2026-07-24T17:20:25Z","database_specific":{"malicious-packages-origins":[{"sha256":"5ee5c7b4fe3a96c0832f021b47e151798e9bc55e887095c1e7d15d38d8895ebe","import_time":"2026-07-25T00:15:45.724628165Z","id":"GHSA-4xc7-2jx9-rp5j","modified_time":"2026-07-24T17:20:33Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"source":"ghsa-malware"},{"import_time":"2026-07-28T14:19:56.42541099Z","id":"IN-MAL-2026-010865","modified_time":"2026-07-28T13:29:01Z","versions":["2.1.6"],"source":"amazon-inspector","sha256":"175a4ca1d8f0f386347ce87b04012ff634cc3dee7b08117e72bcfa1562a213e4"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4xc7-2jx9-rp5j"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/app-node-layer/v/2.1.6"}],"affected":[{"package":{"name":"app-node-layer","ecosystem":"npm","purl":"pkg:npm/app-node-layer"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.1.6"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"tlsh":"0b02624c96fb2a21c2b371ac465f1406b59ac0033949cd91b6cc93546f8f93d69f2e9e","path":"index.js","sha256":"816709b97cc4a1c5c0943813d804c3e8dee9e940bfa808bf4b86ddb10fcc523c"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/app-node-layer/MAL-2026-11054.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}