Malicious code in webrix-docs (npm)
The npm package 'webrix-docs' version 20.2.11 contains malicious code that executes automatically during installation. It runs a script that collects host system information such as hostname, user details, platform, current directory, and command outputs, then sends this data to a remote server. The package appears to be a typosquatting attempt mimicking a legitimate library, with no legitimate code and an empty author field.
AI Analysis
Technical Summary
The 'webrix-docs' npm package version 20.2.11 declares a preinstall script that executes 'node index.js' on installation. This script gathers reconnaissance data from the host environment, including os.hostname(), os.userInfo(), process.platform, current working directory, and outputs of 'whoami' and 'id' commands. It then exfiltrates this data as JSON via an HTTP POST request to a hardcoded URL associated with an out-of-band interaction service (oastify.com). The package lacks legitimate library code and is likely a typosquatting or dependency confusion attack designed solely to collect system information during installation.
Potential Impact
The malicious package can leak sensitive host information such as system hostname, user identity, platform details, and directory context to an attacker-controlled server during installation. This reconnaissance data could be used to further target or profile affected systems. There is no indication of code execution beyond data exfiltration or persistence mechanisms described in the provided information.
Mitigation Recommendations
No official patch or fix is indicated for this package. The best mitigation is to avoid installing the 'webrix-docs' package version 20.2.11 and verify package authenticity before installation. Use trusted sources and verify package names carefully to avoid typosquatting attacks. Monitor dependency manifests for suspicious packages and remove any instances of this malicious package.
Malicious code in webrix-docs (npm)
Description
The npm package 'webrix-docs' version 20.2.11 contains malicious code that executes automatically during installation. It runs a script that collects host system information such as hostname, user details, platform, current directory, and command outputs, then sends this data to a remote server. The package appears to be a typosquatting attempt mimicking a legitimate library, with no legitimate code and an empty author field.
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 'webrix-docs' npm package version 20.2.11 declares a preinstall script that executes 'node index.js' on installation. This script gathers reconnaissance data from the host environment, including os.hostname(), os.userInfo(), process.platform, current working directory, and outputs of 'whoami' and 'id' commands. It then exfiltrates this data as JSON via an HTTP POST request to a hardcoded URL associated with an out-of-band interaction service (oastify.com). The package lacks legitimate library code and is likely a typosquatting or dependency confusion attack designed solely to collect system information during installation.
Potential Impact
The malicious package can leak sensitive host information such as system hostname, user identity, platform details, and directory context to an attacker-controlled server during installation. This reconnaissance data could be used to further target or profile affected systems. There is no indication of code execution beyond data exfiltration or persistence mechanisms described in the provided information.
Mitigation Recommendations
No official patch or fix is indicated for this package. The best mitigation is to avoid installing the 'webrix-docs' package version 20.2.11 and verify package authenticity before installation. Use trusted sources and verify package names carefully to avoid typosquatting attacks. Monitor dependency manifests for suspicious packages and remove any instances of this malicious package.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10080
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50baad68715ace43585838
Added to database: 07/10/2026, 09:26:05 UTC
Last enriched: 07/10/2026, 10:17:08 UTC
Last updated: 07/29/2026, 21:36:45 UTC
Views: 29
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.