Malicious code in bazelisk (npm)
Description
The npm package named 'bazelisk' version 1.0.0 is a malicious package impersonating the legitimate Google bazelisk project. It contains a postinstall script that collects environment and host information from the installer and sends this data to an unrelated external server. This behavior matches a dependency confusion beacon pattern, potentially exposing sensitive environment details without user consent.
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
This threat involves a malicious npm package named 'bazelisk' (version 1.0.0) that collides with the legitimate Google bazelisk project name. Upon installation, its postinstall script collects the installer's hostname, platform, architecture, Node.js version, package name, and npm lifecycle event, then sends this information as a JSON payload to an external URL unrelated to the legitimate publisher. This exfiltration of environment and host identifiers is characteristic of a dependency confusion beacon, used to gather intelligence on compromised environments.
Potential Impact
The impact is limited to unauthorized collection and transmission of environment and host information from the machine where the package is installed. There is no indication of further malicious actions such as code execution beyond data exfiltration. This can lead to privacy breaches and potential reconnaissance for further attacks.
Mitigation Recommendations
No official patch or remediation is indicated. Users should avoid installing the malicious 'bazelisk' package version 1.0.0 from untrusted sources. Verify package authenticity by checking publisher details and use official package repositories. Remove the package if already installed and monitor for suspicious network activity related to the indicated external URL.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14227
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a85b4c2acd9273b492524f5
Added to database: 08/19/2026, 13:50:58 UTC
Last enriched: 08/19/2026, 14:33:47 UTC
Last updated: 10/02/2026, 13:52:19 UTC
Views: 33
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.