Malicious code in cloudflare_module (npm)
Description
The npm package 'cloudflare_module' version 99.0.1 is a malicious dependency-confusion lure that exfiltrates host information without user consent. It executes a beacon script during installation and when required, sending system details to a hardcoded IP address over unencrypted HTTP. The package uses a Proxy to avoid errors during bundling, disguising its malicious behavior. It is not an official Cloudflare package and targets any system resolving its name.
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 'cloudflare_module' npm package (version 99.0.1) is a malicious package designed as a dependency-confusion lure targeting the 'cloudflare_*' namespace. It declares a postinstall script that runs 'beacon.cjs', which sends a JSON payload containing the host's name, installation path, current working directory, and Node.js version to a hardcoded bare-IP endpoint over plain HTTP. Additionally, the main module requires and fires the beacon on import, ensuring data exfiltration during runtime. The package exports a Proxy object that returns no-op functions to avoid errors during bundling, facilitating silent execution of the beacon. The package's README claims it is an 'authorized dependency-confusion test,' but the exfiltration occurs without user consent and targets any system resolving the package name, with the destination being an unattributed IP address unrelated to Cloudflare infrastructure.
Potential Impact
Systems that install or import the 'cloudflare_module' package version 99.0.1 may unknowingly send identifying system information to an attacker-controlled server. This data includes hostname, installation directory, current working directory, and Node.js version. The exfiltration occurs without user consent and over unencrypted HTTP, exposing sensitive environment details that could aid further attacks or reconnaissance. The package's design avoids detection by bundlers and does not produce errors, increasing the likelihood of unnoticed compromise.
Mitigation Recommendations
No official patch or remediation is indicated in the provided data. Users should avoid installing or using the 'cloudflare_module' package, especially version 99.0.1 and other listed versions. Verify package authenticity before installation, prefer official sources, and audit dependencies for suspicious behavior. Since this is a malicious package published to npm, removing it from projects and replacing it with legitimate dependencies is recommended. Monitor for any unexpected network connections to suspicious IP addresses such as 185.158.107.175. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17768
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6acc008d2cdf04f656fe3825
Added to database: 10/11/2026, 21:33:01 UTC
Last enriched: 10/11/2026, 21:37:18 UTC
Last updated: 10/11/2026, 21:37:18 UTC
Views: 3
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.
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.