{"id":"MAL-2026-10584","summary":"Malicious code in chalkdevx (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3e6c8e970ad81ccd02b4725232cbd0d145a20f08e42983097229563e35cac8ad)\npackage.json declares a postinstall hook that runs.init.js on npm install. The script enumerates ~65 credential and CI environment variables (NPM_TOKEN, GITHUB_TOKEN, AWS_SECRET_ACCESS_KEY, STRIPE_*, DOCKER_*, cloud provider tokens, private keys), reads home-directory credential files including ~/.npmrc, ~/.env*, config.json, and credentials.json, and scans ~/.config for files matching token/cred/secret patterns. Collected data — together with host identifiers (os.hostname(), os.platform(), cwd, pid) — is POSTed as JSON to a hardcoded https://webhook.cool/at/tender-deer-80/... endpoint, a public webhook-inspection service unrelated to any declared package purpose. The package's declared functionality is trivial (empty description, minimal index.js); the credential-harvesting postinstall is the package's actual behavior. The name resembles the popular `chalk` package.\n","modified":"2026-07-14T14:49:17.314441606Z","published":"2026-07-14T14:00:48Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["2.0.0"],"id":"IN-MAL-2026-010520","import_time":"2026-07-14T14:37:52.885562571Z","modified_time":"2026-07-14T14:00:48Z","sha256":"3e6c8e970ad81ccd02b4725232cbd0d145a20f08e42983097229563e35cac8ad"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chalkdevx/v/2.0.0"}],"affected":[{"package":{"name":"chalkdevx","ecosystem":"npm","purl":"pkg:npm/chalkdevx"},"versions":["2.0.0"],"database_specific":{"indicators":{"package_integrity":[{"filename":"chalkdevx-2.0.0.tgz","hashes":{"sha512_sri":"sha512-QEd/3bT9P+HfWX3+oooDKRHxsHYIltxgTjJa7W4xiNp6ipHwP99Rl+nwTjTP+A2RgMyshltQpZnbK09m5vp0+A==","sha1":"10c1f158388e2259bf1bde7348c3073c3add385c"}}],"evidence_files":[{"sha256":"6eb3939e40f85d1c3f591a3cd3a3edf0fd00c9b09fd7cb48f62e11edca3219b2","tlsh":"d9513181849e521310db2af168034c00a67ee59b3435e6e17e8f02249fddc6c85b3fbd","path":".init.js"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chalkdevx/MAL-2026-10584.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}