Malicious code in karapace-docs (npm)
The npm package karapace-docs version 1.0.1 contains malicious code in its preinstall hook that executes automatically during installation. This code collects sensitive system information including hostname, username, home directory, DNS server list, and contents of /etc/passwd and /etc/hosts. It then sends this data as a JSON payload over HTTPS to an attacker-controlled Burp Collaborator subdomain. The package name mimics a legitimate documentation package for karapace, suggesting it is used for dependency confusion or typosquatting attacks. This exfiltration occurs without user interaction upon running npm install.
AI Analysis
Technical Summary
The karapace-docs npm package version 1.0.1 includes a malicious preinstall script that runs index.js during installation. This script gathers detailed host identity and local system file contents, including /etc/passwd and /etc/hosts, and transmits this information to a hardcoded Burp Collaborator subdomain (n6usddpvkn7jcauar9va0xvleck48uwj.oastify.com) via HTTPS POST. The package name is designed to resemble a legitimate karapace documentation package, consistent with a dependency confusion or typosquatting attack vector. The data exfiltration happens automatically on npm install without requiring user interaction, potentially compromising the confidentiality of the installer's system information.
Potential Impact
Sensitive system information such as hostname, username, home directory, DNS server list, and critical system files (/etc/passwd and /etc/hosts) is exfiltrated to an attacker-controlled endpoint during package installation. This can lead to privacy breaches and may facilitate further targeted attacks against the compromised system or network. The attack leverages the npm package installation process, affecting any user who installs this specific malicious package version.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package version. Users should avoid installing karapace-docs version 1.0.1 from untrusted sources. Verify package authenticity before installation and prefer official or well-known package repositories. Monitor for suspicious network activity during npm installs. Since this is a malicious package rather than a vulnerability in legitimate software, removal of the package and investigation of affected systems is recommended if installed.
Malicious code in karapace-docs (npm)
Description
The npm package karapace-docs version 1.0.1 contains malicious code in its preinstall hook that executes automatically during installation. This code collects sensitive system information including hostname, username, home directory, DNS server list, and contents of /etc/passwd and /etc/hosts. It then sends this data as a JSON payload over HTTPS to an attacker-controlled Burp Collaborator subdomain. The package name mimics a legitimate documentation package for karapace, suggesting it is used for dependency confusion or typosquatting attacks. This exfiltration occurs without user interaction upon running npm install.
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 karapace-docs npm package version 1.0.1 includes a malicious preinstall script that runs index.js during installation. This script gathers detailed host identity and local system file contents, including /etc/passwd and /etc/hosts, and transmits this information to a hardcoded Burp Collaborator subdomain (n6usddpvkn7jcauar9va0xvleck48uwj.oastify.com) via HTTPS POST. The package name is designed to resemble a legitimate karapace documentation package, consistent with a dependency confusion or typosquatting attack vector. The data exfiltration happens automatically on npm install without requiring user interaction, potentially compromising the confidentiality of the installer's system information.
Potential Impact
Sensitive system information such as hostname, username, home directory, DNS server list, and critical system files (/etc/passwd and /etc/hosts) is exfiltrated to an attacker-controlled endpoint during package installation. This can lead to privacy breaches and may facilitate further targeted attacks against the compromised system or network. The attack leverages the npm package installation process, affecting any user who installs this specific malicious package version.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package version. Users should avoid installing karapace-docs version 1.0.1 from untrusted sources. Verify package authenticity before installation and prefer official or well-known package repositories. Monitor for suspicious network activity during npm installs. Since this is a malicious package rather than a vulnerability in legitimate software, removal of the package and investigation of affected systems is recommended if installed.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12794
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735741bf8831d539153b98
Added to database: 08/05/2026, 15:31:13 UTC
Last enriched: 08/05/2026, 16:57:54 UTC
Last updated: 08/05/2026, 16:57:54 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.