MAL-2026-10584Malicious code in chalkdevx (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | chalkdevx | 2.0.0 |
{"modified":"2026-07-14T14:00:48Z","published":"2026-07-14T14:00:48Z","schema_version":"1.7.4","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","affected":[{"package":{"ecosystem":"npm","name":"chalkdevx"},"versions":["2.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":".init.js","sha256":"6eb3939e40f85d1c3f591a3cd3a3edf0fd00c9b09fd7cb48f62e11edca3219b2","tlsh":"d9513181849e521310db2af168034c00a67ee59b3435e6e17e8f02249fddc6c85b3fbd"}],"package_integrity":[{"filename":"chalkdevx-2.0.0.tgz","hashes":{"sha1":"10c1f158388e2259bf1bde7348c3073c3add385c","sha512_sri":"sha512-QEd/3bT9P+HfWX3+oooDKRHxsHYIltxgTjJa7W4xiNp6ipHwP99Rl+nwTjTP+A2RgMyshltQpZnbK09m5vp0+A=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chalkdevx/v/2.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-010520","import_time":"2026-07-14T14:37:52.885562571Z","modified_time":"2026-07-14T14:00:48Z","sha256":"3e6c8e970ad81ccd02b4725232cbd0d145a20f08e42983097229563e35cac8ad","source":"amazon-inspector","versions":["2.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0