Malicious code in worker-build (npm)
The npm package 'worker-build' versions 9.0.0, 9.0.1, and 9.0.2 contains malicious code that executes automatically upon installation. It collects sensitive host information and environment variables containing credentials, then exfiltrates this data in cleartext to a malicious external server. The package name mimics legitimate Cloudflare Workers build tooling, potentially causing dependency confusion. Systems with this package installed should be considered fully compromised.
AI Analysis
Technical Summary
The 'worker-build' npm package versions 9.0.0, 9.0.1, and 9.0.2 includes a postinstall script that runs 'main.js' during installation. This script gathers host identity details (hostname, username, home directory, current working directory, command-line arguments), reads the consumer's package.json, retrieves git remote URLs, and extracts credential-like environment variables (e.g., AWS keys, tokens, passwords). It sends this collected data as a JSON payload in cleartext via HTTP POST requests to a known malicious domain and performs DNS lookups as side-channel beacons. The package name is designed to mimic legitimate Cloudflare Workers tooling, increasing the risk of dependency confusion attacks. The package is identified as malicious by multiple sources including Amazon Inspector, GHSA malware reports, and OpenSSF Package Analysis.
Potential Impact
Installation of any affected version of the 'worker-build' package results in immediate execution of malicious code that can exfiltrate sensitive environment variables and system information to an attacker-controlled server. This compromises all secrets and credentials stored on the host, potentially leading to full system compromise and unauthorized access to connected services. The presence of this package indicates a high likelihood of compromise, and removal alone may not eliminate all malicious artifacts.
Mitigation Recommendations
There is no official patch or fix available for this malicious package. Users should immediately remove all instances of 'worker-build' versions 9.0.0, 9.0.1, and 9.0.2 from their environments. All secrets and credentials exposed to the compromised system must be rotated from a secure, unaffected machine. Due to the potential for full system compromise, a thorough security assessment and remediation of the affected host is strongly recommended.
Malicious code in worker-build (npm)
Description
The npm package 'worker-build' versions 9.0.0, 9.0.1, and 9.0.2 contains malicious code that executes automatically upon installation. It collects sensitive host information and environment variables containing credentials, then exfiltrates this data in cleartext to a malicious external server. The package name mimics legitimate Cloudflare Workers build tooling, potentially causing dependency confusion. Systems with this package installed should be considered fully compromised.
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 'worker-build' npm package versions 9.0.0, 9.0.1, and 9.0.2 includes a postinstall script that runs 'main.js' during installation. This script gathers host identity details (hostname, username, home directory, current working directory, command-line arguments), reads the consumer's package.json, retrieves git remote URLs, and extracts credential-like environment variables (e.g., AWS keys, tokens, passwords). It sends this collected data as a JSON payload in cleartext via HTTP POST requests to a known malicious domain and performs DNS lookups as side-channel beacons. The package name is designed to mimic legitimate Cloudflare Workers tooling, increasing the risk of dependency confusion attacks. The package is identified as malicious by multiple sources including Amazon Inspector, GHSA malware reports, and OpenSSF Package Analysis.
Potential Impact
Installation of any affected version of the 'worker-build' package results in immediate execution of malicious code that can exfiltrate sensitive environment variables and system information to an attacker-controlled server. This compromises all secrets and credentials stored on the host, potentially leading to full system compromise and unauthorized access to connected services. The presence of this package indicates a high likelihood of compromise, and removal alone may not eliminate all malicious artifacts.
Mitigation Recommendations
There is no official patch or fix available for this malicious package. Users should immediately remove all instances of 'worker-build' versions 9.0.0, 9.0.1, and 9.0.2 from their environments. All secrets and credentials exposed to the compromised system must be rotated from a secure, unaffected machine. Due to the potential for full system compromise, a thorough security assessment and remediation of the affected host is strongly recommended.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5677
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-7wpx-89q3-rcf4"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4f6c3868715ace431588c4
Added to database: 07/09/2026, 09:39:04 UTC
Last enriched: 07/09/2026, 09:52:16 UTC
Last updated: 07/31/2026, 01:25:21 UTC
Views: 10
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.