MAL-2026-12393Malicious code in invest-module-cookie (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | invest-module-cookie | * |
| npm | invest-module-cookie | 20.8.2 |
{"schema_version":"1.7.4","id":"MAL-2026-12393","published":"2026-08-05T12:32:28Z","modified":"2026-08-20T13:35:17.399852249Z","aliases":["GHSA-j5gr-vpx9-45fh"],"summary":"Malicious code in invest-module-cookie (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6c3f53c4d50d2dedd530c65015b26a902950e6e2bbef3cda3560a661d4aad178)\nOn require('invest-module-cookie'), index.js loads _adapter.js which selects an OS-specific asset path, downloads an opaque binary from one of three obfuscated *.workers.dev hosts (oob-worker.cf102-baf.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf103-070.workers.dev) with a DNS-TXT covert-channel fallback that base64-reassembles chunks from *.dl.well1.site (tin/tina/ldr/win subdomains), writes the payload to /var/tmp or %TEMP% under a disguised name, chmods it 0755, and detaches-spawns it via /bin/sh -c or cmd.exe. Destination hostnames are assembled at runtime from split string fragments (e.g. ['oob-worker.cf102-baf.wo','rkers.dev'].join('')) to defeat static host-scanning. The package is advertised as reusable cookie module components, and the fetched binary bears no relationship to that stated purpose; publisher identity does not match any of the hardcoded hosts.\n\n## Source: ghsa-malware (29dfcd241e45bbbefbb5df82057898c212a9e042de6b484de1be7f2347cf7f01)\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":"invest-module-cookie","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["20.8.2"],"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"}],"indicators":{"evidence_files":[{"path":"_adapter.js","sha256":"723ee1e1bb51b95d44098da135cdd76e0ca93acbf20e19086299ac4edf5814b7","tlsh":"7ea1849a166a70188b70abe1c71b8416fa5bf5a33780c2c0f75c98845f7212483b2efc"}],"package_integrity":[{"filename":"invest-module-cookie-20.8.2.tgz","hashes":{"sha1":"73a91026c233938625a78af99957d408b73f8b90","sha512_sri":"sha512-RlunQ40rgCTERmAyoT7iMzNCS9E6SV31KSN3O4+kNwLpjG3RNqoJbdQsASsXPIcE2SfZAYcLNhA8k3iGwzR/jg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/invest-module-cookie/v/20.8.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-j5gr-vpx9-45fh"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014697","import_time":"2026-08-05T13:08:38.498080062Z","modified_time":"2026-08-05T12:32:28Z","sha256":"6c3f53c4d50d2dedd530c65015b26a902950e6e2bbef3cda3560a661d4aad178","source":"amazon-inspector","versions":["20.8.2"]},{"id":"GHSA-j5gr-vpx9-45fh","import_time":"2026-08-20T13:33:26.05348789Z","modified_time":"2026-08-20T13:04:53Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"29dfcd241e45bbbefbb5df82057898c212a9e042de6b484de1be7f2347cf7f01","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0