{"id":"MAL-2026-10585","summary":"Malicious code in cheeriobox (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1160a4c1ee0340e9897a42a75d735750b7d92fc887bef135a5a979c371356df4)\ncheeriobox@1.0.0 is a delivery vehicle for install-time credential theft. package.json declares a postinstall hook that runs `node.init.js`, which enumerates roughly 60 credential-shaped environment variables (including NPM_TOKEN, GITHUB_TOKEN, AWS_SECRET_ACCESS_KEY, GCP, Azure, Stripe, and Docker tokens), reads home-directory secret files (~/.npmrc, ~/.env*, ~/config.json, ~/credentials.json), scans ~/.config for files matching token/cred/secret patterns, and collects host reconnaissance (os.hostname(), os.platform(), process.cwd(), process.pid, plus CI-detection flags such as CI/GITHUB_ACTIONS/GITLAB_CI). The collected data is POSTed as JSON to a hardcoded endpoint at webhook.cool (path /at/tender-deer-80/...). index.js exports an empty object, so the package has no legitimate library functionality — its only effect on install is credential exfiltration, with CI environments explicitly targeted.\n","modified":"2026-07-14T14:49:18.973788963Z","published":"2026-07-14T14:00:08Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-07-14T14:37:52.572329586Z","modified_time":"2026-07-14T14:00:08Z","sha256":"1160a4c1ee0340e9897a42a75d735750b7d92fc887bef135a5a979c371356df4","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-010516"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/cheeriobox/v/1.0.0"}],"affected":[{"package":{"name":"cheeriobox","ecosystem":"npm","purl":"pkg:npm/cheeriobox"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cheeriobox/MAL-2026-10585.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"sha256":"6eb3939e40f85d1c3f591a3cd3a3edf0fd00c9b09fd7cb48f62e11edca3219b2","tlsh":"d9513181849e521310db2af168034c00a67ee59b3435e6e17e8f02249fddc6c85b3fbd","path":".init.js"}],"package_integrity":[{"filename":"cheeriobox-1.0.0.tgz","hashes":{"sha1":"654c47691ebdc0f70ff281c0d763da9b12349665","sha512_sri":"sha512-awu3Riu7oWRssOTioYzTic6KUMSFF/RnXe7ip0xcI1oHQ7Skwdd88pP5NyrN+ZnHQCyq6uYf1VFPUDL1dq7vpw=="}}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}