MAL-2026-10676Malicious code in commonjs-assert (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
1.0.3 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | commonjs-assert | * |
| npm | commonjs-assert | 1.0.3 |
| npm | commonjs-assert | 1.0.4 |
{"schema_version":"1.7.4","id":"MAL-2026-10676","published":"2026-07-15T10:42:17Z","modified":"2026-08-11T12:24:55.146099232Z","aliases":["GHSA-hcmm-fvc7-pjv3"],"summary":"Malicious code in commonjs-assert (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b7fa2454998144bffed3fc1e2d73046b8414179b59fb99d3339f2658e00637f7)\nThe package name resembles Node.js's built-in `assert` module. On require(), `index.js` spawns a detached `node` child process against `lib/chai/utils/assertion.js`. That file is a single-line obfuscator.io-style bundle (rotated string array, custom-base64 decoder, hex-indexed accessors) whose runtime behavior is to require `http`/`https`, perform an HTTP GET against a URL reconstructed from the encoded string array, and pass the response body to `new Function(..., body)(require)` — remote content fetched at import time and executed with Node's `require` available. The obfuscation hides the destination URL from static inspection and shields the network-to-eval sink. Any project that requires or imports this package silently triggers arbitrary remote code execution on the installer's host.\n\n## Source: ghsa-malware (02b1b90b34ceaca511acb3b1b2e4e16be4b3571613904788dcc379e7c40f9b6d)\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":"commonjs-assert","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.3","1.0.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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"a1dd05076258a140f526125300412b0693462f4f0adcb50d7754af5676ff85ae","tlsh":"8bf05cea43822a686d30bbf8c51a982666e2d131f14180b4f9fd40d27697b824237cbc"},{"path":"lib/chai/utils/assertion.js","sha256":"46543bececc793d6150af132e1ba48d0be2b61cc22dc2b2408a1ed3e23eeddfb","tlsh":"a391755cad8021915b8f475b3a27f0c4f4096d9f7fc9148fa111bde4e989a24ead6e30"}],"package_integrity":[{"filename":"commonjs-assert-1.0.3.tgz","hashes":{"sha1":"c3a0c5e2a5a32a05c078f4e03dfb920f64e8a53c","sha512_sri":"sha512-Vw7ZDOoyqzsft/bFOl46g24DrY5xa6ict3PLLv8J3vavETHiMdQkgoiLCGs168FtW5Y5kTF0rJnan+5xUZpecg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/commonjs-assert/v/1.0.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-hcmm-fvc7-pjv3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/commonjs-assert/v/1.0.4"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-010671","import_time":"2026-07-15T11:33:39.884635201Z","modified_time":"2026-07-15T10:42:17Z","sha256":"b7fa2454998144bffed3fc1e2d73046b8414179b59fb99d3339f2658e00637f7","source":"amazon-inspector","versions":["1.0.3"]},{"id":"GHSA-hcmm-fvc7-pjv3","import_time":"2026-08-11T00:38:01.34060578Z","modified_time":"2026-08-10T15:52:19Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"02b1b90b34ceaca511acb3b1b2e4e16be4b3571613904788dcc379e7c40f9b6d","source":"ghsa-malware"},{"id":"IN-MAL-2026-017285","import_time":"2026-08-11T12:23:04.595854336Z","modified_time":"2026-08-11T11:58:06Z","sha256":"555e5576938d073c34738670ab1647ea3043120babe34a3815bf48e3c61625ad","source":"amazon-inspector","versions":["1.0.4"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0