Malicious code in karapace-docs (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (a0d1e2b10c31f45e3c73ad895a1ccd4188cdedf5ab1a795b420f5aa2693d7686) The npm package's preinstall hook runs index.js at install time, which collects the installer's hostname, username, home directory, DNS server list, and the contents of /etc/passwd and /etc/hosts, then POSTs a JSON payload over HTTPS to a hardcoded Burp Collaborator subdomain n6usddpvkn7jcauar9va0xvleck48uwj.oastify.com. The package name mimics a documentation package for karapace (a Kafka registry project), consistent with a dependency-confusion / typosquat recon payload. Installer host identity and local system file contents leave the machine to an attacker-controlled OAST endpoint on `npm install` with no user interaction. ## Source: ghsa-malware (0504b1eeee4b53817289d98df2d4b44775e97feea2be622a724012a4dc60576f) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
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
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (a0d1e2b10c31f45e3c73ad895a1ccd4188cdedf5ab1a795b420f5aa2693d7686) The npm package's preinstall hook runs index.js at install time, which collects the installer's hostname, username, home directory, DNS server list, and the contents of /etc/passwd and /etc/hosts, then POSTs a JSON payload over HTTPS to a hardcoded Burp Collaborator subdomain n6usddpvkn7jcauar9va0xvleck48uwj.oastify.com. The package name mimics a documentation package for karapace (a Kafka registry project), consistent with a dependency-confusion / typosquat recon payload. Installer host identity and local system file contents leave the machine to an attacker-controlled OAST endpoint on `npm install` with no user interaction. ## Source: ghsa-malware (0504b1eeee4b53817289d98df2d4b44775e97feea2be622a724012a4dc60576f) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
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
- Ecosystems
- ["npm"]
Threat ID: 6a735741bf8831d539153b98
Added to database: 08/05/2026, 15:31:13 UTC
Last enriched: 08/05/2026, 16:57:54 UTC
Last updated: 09/08/2026, 04:37:17 UTC
Views: 19
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.