Malicious code in invest-module-cookie (npm)
The npm package 'invest-module-cookie' version 20.8.2 contains malicious code that downloads and executes an opaque binary payload from obfuscated external hosts. The payload is fetched using a covert DNS-TXT channel fallback, saved to temporary directories under disguised names, given executable permissions, and then executed. The package's stated purpose as a reusable cookie module is deceptive, and the publisher identity does not match the domains hosting the payload.
AI Analysis
Technical Summary
The 'invest-module-cookie' npm package (version 20.8.2) includes code in its index.js that loads an adapter script selecting an OS-specific asset path. This adapter downloads a binary payload from one of three obfuscated *.workers.dev domains, using a DNS-TXT covert-channel fallback to reassemble base64-encoded chunks from *.dl.well1.site subdomains. The payload is saved to /var/tmp or %TEMP% with a disguised filename, permissions are set to executable (0755), and it is executed detached via shell commands (/bin/sh -c or cmd.exe). The runtime assembly of destination hostnames from split string fragments is designed to evade static host scanning. The malicious payload is unrelated to the package's advertised functionality, and the publisher identity does not correspond to the hosting domains.
Potential Impact
This malicious package can execute arbitrary binary code on the host system, potentially leading to full system compromise, unauthorized access, or further malware deployment. The use of obfuscated domains and covert DNS-TXT channels complicates detection and blocking. Since the payload is executed with the permissions of the running process, it can perform any actions allowed by those permissions.
Mitigation Recommendations
No official patch or remediation is currently documented for this package. Users should immediately stop using 'invest-module-cookie' version 20.8.2 and remove it from their environments. Avoid installing packages from untrusted or unknown publishers. Monitor for and block network communications to the identified obfuscated domains if possible. Check vendor advisories or trusted security sources for updates or official guidance.
Malicious code in invest-module-cookie (npm)
Description
The npm package 'invest-module-cookie' version 20.8.2 contains malicious code that downloads and executes an opaque binary payload from obfuscated external hosts. The payload is fetched using a covert DNS-TXT channel fallback, saved to temporary directories under disguised names, given executable permissions, and then executed. The package's stated purpose as a reusable cookie module is deceptive, and the publisher identity does not match the domains hosting the payload.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'invest-module-cookie' npm package (version 20.8.2) includes code in its index.js that loads an adapter script selecting an OS-specific asset path. This adapter downloads a binary payload from one of three obfuscated *.workers.dev domains, using a DNS-TXT covert-channel fallback to reassemble base64-encoded chunks from *.dl.well1.site subdomains. The payload is saved to /var/tmp or %TEMP% with a disguised filename, permissions are set to executable (0755), and it is executed detached via shell commands (/bin/sh -c or cmd.exe). The runtime assembly of destination hostnames from split string fragments is designed to evade static host scanning. The malicious payload is unrelated to the package's advertised functionality, and the publisher identity does not correspond to the hosting domains.
Potential Impact
This malicious package can execute arbitrary binary code on the host system, potentially leading to full system compromise, unauthorized access, or further malware deployment. The use of obfuscated domains and covert DNS-TXT channels complicates detection and blocking. Since the payload is executed with the permissions of the running process, it can perform any actions allowed by those permissions.
Mitigation Recommendations
No official patch or remediation is currently documented for this package. Users should immediately stop using 'invest-module-cookie' version 20.8.2 and remove it from their environments. Avoid installing packages from untrusted or unknown publishers. Monitor for and block network communications to the identified obfuscated domains if possible. Check vendor advisories or trusted security sources for updates or official guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12393
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735747bf8831d53915a0fc
Added to database: 08/05/2026, 15:31:19 UTC
Last enriched: 08/05/2026, 17:40:38 UTC
Last updated: 08/05/2026, 17:40:38 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.