Malicious code in tool-registry-scripts (npm)
The npm package 'tool-registry-scripts' version 1.0.0 contains malicious code that executes automatically during installation. The package's preinstall hook runs a script that collects sensitive host information, including system identifiers and contents of critical files like /etc/passwd and /etc/hosts. This data is then exfiltrated via HTTPS to a hardcoded external server unrelated to the package's intended functionality.
AI Analysis
Technical Summary
The 'tool-registry-scripts' npm package version 1.0.0 declares a preinstall hook in its package.json that executes index.js upon 'npm install'. This script gathers host identifiers such as os.hostname(), user information, home directory, DNS servers, current working directory, and package.json contents. It also reads sensitive system files /etc/passwd and /etc/hosts. The collected data is serialized into JSON and sent over HTTPS to a hardcoded Burp Collaborator out-of-band endpoint (lsh5x8dwumsekllw37kacgaqxh3cr2fr.oastify.com), which is unrelated to any documented package purpose. This behavior constitutes malicious exfiltration of sensitive host data triggered automatically during installation.
Potential Impact
Sensitive host information and system file contents are exfiltrated to an attacker-controlled server without user consent. This can lead to information disclosure and potential further compromise depending on the environment where the package is installed. The automatic execution at install time increases risk as users may be unaware of the data leakage.
Mitigation Recommendations
No official patch or remediation is documented for this package version. Users should avoid installing 'tool-registry-scripts' version 1.0.0. Remove any installations of this package and audit systems for potential data exposure. Monitor for suspicious network connections to the indicated domain. Since this is a malicious package, rely on trusted sources and package registries to avoid similar threats.
Malicious code in tool-registry-scripts (npm)
Description
The npm package 'tool-registry-scripts' version 1.0.0 contains malicious code that executes automatically during installation. The package's preinstall hook runs a script that collects sensitive host information, including system identifiers and contents of critical files like /etc/passwd and /etc/hosts. This data is then exfiltrated via HTTPS to a hardcoded external server unrelated to the package's intended functionality.
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 'tool-registry-scripts' npm package version 1.0.0 declares a preinstall hook in its package.json that executes index.js upon 'npm install'. This script gathers host identifiers such as os.hostname(), user information, home directory, DNS servers, current working directory, and package.json contents. It also reads sensitive system files /etc/passwd and /etc/hosts. The collected data is serialized into JSON and sent over HTTPS to a hardcoded Burp Collaborator out-of-band endpoint (lsh5x8dwumsekllw37kacgaqxh3cr2fr.oastify.com), which is unrelated to any documented package purpose. This behavior constitutes malicious exfiltration of sensitive host data triggered automatically during installation.
Potential Impact
Sensitive host information and system file contents are exfiltrated to an attacker-controlled server without user consent. This can lead to information disclosure and potential further compromise depending on the environment where the package is installed. The automatic execution at install time increases risk as users may be unaware of the data leakage.
Mitigation Recommendations
No official patch or remediation is documented for this package version. Users should avoid installing 'tool-registry-scripts' version 1.0.0. Remove any installations of this package and audit systems for potential data exposure. Monitor for suspicious network connections to the indicated domain. Since this is a malicious package, rely on trusted sources and package registries to avoid similar threats.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12482
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735743bf8831d539159c2f
Added to database: 08/05/2026, 15:31:15 UTC
Last enriched: 08/05/2026, 17:15:02 UTC
Last updated: 08/05/2026, 17:15:02 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.