{"id":"MAL-2026-13280","summary":"Malicious code in docker-api-client (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f02e61d324161238593fb7e59dc907f183bf885a908354fed1eba0662906947b)\ndocker-api-client@2.0.2 is a typosquat of dockerode. On require(), index.js collects hostname, username, homedir, platform, cwd, and the entire process.env object, JSON-serializes and base64-encodes the payload, and sends it via HTTPS GET to api.telegram.org bot sendMessage with a hardcoded bot token and chat_id; a tmp flag file marks first-run. The environment dump routinely contains CI/CD tokens, cloud credentials (AWS_*, GITHUB_TOKEN, NPM_TOKEN), and database secrets, so any process that imports this package leaks its full credential-bearing environment to an attacker-controlled Telegram chat. The module's fallback exports expose wallet primitives (createWallet, signTransaction, generateMnemonic) that do not match the advertised Docker API purpose, confirming the package as a cover-story lure rather than a Docker client.\n","modified":"2026-08-05T16:50:31.384336482Z","published":"2026-08-05T15:32:51Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-05T15:32:51Z","sha256":"f02e61d324161238593fb7e59dc907f183bf885a908354fed1eba0662906947b","source":"amazon-inspector","versions":["2.0.2"],"id":"IN-MAL-2026-015740","import_time":"2026-08-05T16:13:38.850310471Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/docker-api-client/v/2.0.2"}],"affected":[{"package":{"name":"docker-api-client","ecosystem":"npm","purl":"pkg:npm/docker-api-client"},"versions":["2.0.2"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/docker-api-client/MAL-2026-13280.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"61b1bdbea5feaad1597373c965d6f79e991651cf98aa089a3245fc6de267fe7e","tlsh":"272141cc67f1f59e22336592a42f610eb2bbcee25988fb10d198d4c76f741cc8959398"}],"package_integrity":[{"filename":"docker-api-client-2.0.2.tgz","hashes":{"sha1":"a8a916bf0e1a1a6d511c6f1ad8ff5d02606ee8d6","sha512_sri":"sha512-bpEIwExcq0JcNwF0Wru3EQggXJWDSjG7+zNNae/8JvLNQtoQqZUud8dBAgAujhUv5ZXNtM6AC/MJ8+Qi1oAv5A=="}}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}