MAL-2026-6470Malicious code in chlklib (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
1.2.0 | unavailable | — | — | — |
1.2.1 | unavailable | — | — | — |
1.2.2 | unavailable | — | — | — |
1.2.3 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | chlklib | * |
| npm | chlklib | 1.2.0 |
| npm | chlklib | 1.2.1 |
| npm | chlklib | 1.2.2 |
| npm | chlklib | 1.2.3 |
{"schema_version":"1.7.4","id":"MAL-2026-6470","published":"2026-06-25T18:27:36Z","modified":"2026-08-18T15:30:43.836536476Z","aliases":["GHSA-pw26-7j7h-jhf5"],"summary":"Malicious code in chlklib (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b08a933891c92fdec26fbadf4921d2e08ff101126fb656a2b57d747fefa9d0d4)\nPackage name `chlklib` is a one-character deletion of the popular `chalk` package and replicates chalk's public API surface (Chalk, chalkStderr, supportsColor, colorNames). On require/import, the main entry invokes `getOriginal()` at module top level, which POSTs to https://funnystore.org/lib/index.php, XOR-decodes the response body with a hardcoded key, and passes the result to `eval()` (see dist/vendor/original-color/index.cjs around line 55, invoked from dist/index.cjs). Any developer who installs and requires this package — most likely after mistyping `chalk` — immediately executes attacker-controlled JavaScript fetched at runtime from funnystore.org. The remote endpoint is mutable and unrelated to the package's stated 'terminal prompt' purpose, giving the operator full RCE on the installer's machine on every require. The XOR-then-eval obfuscation and typosquat-with-replicated-API shape together match a deliberate dropper campaign rather than any legitimate use case.\n\n## Source: ghsa-malware (29de6d310a66d9c76507b519e02a5543cdc8bec361312651bef0bbb8524f4ae5)\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","affected":[{"package":{"name":"chlklib","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.2.3","1.2.2","1.2.0","1.2.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"dist/vendor/original-color/index.cjs","sha256":"9faf80b37a3d9554bbe8b3ff443a6a114ce7c29ead29deaef766f2701cc52243","tlsh":"6251c647a6f4615a11f244fa632faa0177bea2e81108d958f6acc2f50fc642144d4aef"},{"path":"package.json","sha256":"f393aaa919fad51bf578515115f26444534b2957186fc22bc9a24fb8e47465a3","tlsh":"8031b318c8b06ed77aca26b4aa5e8b56667140070a546f0433cd412c0fcc2df8aff1ce"}],"package_integrity":[{"filename":"chlklib-1.2.3.tgz","hashes":{"sha1":"d6a4a13aa087d2a0328b196fe0487a8a7aaf2e26","sha512_sri":"sha512-cPRZlR3K2900J28CU0nKgvvVtn5mgWHdVKiQm51kQ0tWH6vrcKh0P4yRDbF2NadaRh7myQl28LgWAtLM2An0nQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chlklib/v/1.2.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chlklib/v/1.2.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chlklib/v/1.2.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chlklib/v/1.2.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-pw26-7j7h-jhf5"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007526","import_time":"2026-06-25T19:13:49.230688071Z","modified_time":"2026-06-25T18:27:36Z","sha256":"136a65e3a9bd3712d0e949a0a9b56747918d7d1436cbad01e204ab23ff5e990f","source":"amazon-inspector","versions":["1.2.3"]},{"id":"IN-MAL-2026-007527","import_time":"2026-06-25T19:13:49.311925244Z","modified_time":"2026-06-25T18:27:37Z","sha256":"766413ce8bb9e5a330bf1a6f878e75a03528339df61dac409a66a06218e082d4","source":"amazon-inspector","versions":["1.2.2"]},{"id":"IN-MAL-2026-007529","import_time":"2026-06-25T19:13:49.484821524Z","modified_time":"2026-06-25T18:27:41Z","sha256":"b08a933891c92fdec26fbadf4921d2e08ff101126fb656a2b57d747fefa9d0d4","source":"amazon-inspector","versions":["1.2.0"]},{"id":"IN-MAL-2026-007528","import_time":"2026-06-25T19:13:49.3560492Z","modified_time":"2026-06-25T18:27:38Z","sha256":"fe013bde99ee7eafc14dc4db6ac67e239dd3ee3be046c2444c69b07181b236a3","source":"amazon-inspector","versions":["1.2.1"]},{"id":"GHSA-pw26-7j7h-jhf5","import_time":"2026-08-18T15:28:59.439573504Z","modified_time":"2026-08-18T14:35:35Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"29de6d310a66d9c76507b519e02a5543cdc8bec361312651bef0bbb8524f4ae5","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0