Skip to main content

Malicious code in tool-registry-scripts (npm)

0
High
Published: 08/05/2026 (08/05/2026, 13:02:45 UTC)
Source: GCVE Database
Product: tool-registry-scripts

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (b635b8b6d257c079a0d0a9c06e37910b67f2e75d1e71dced264043624951ce06) package.json declares a preinstall hook that runs index.js on `npm install`. index.js collects host identifiers (os.hostname(), os.userInfo(), homedir, DNS servers, cwd, package.json contents) and reads /etc/passwd and /etc/hosts, then POSTs the resulting JSON over HTTPS to the hardcoded out-of-band collaborator subdomain lsh5x8dwumsekllw37kacgaqxh3cr2fr.oastify.com. The destination is a Burp Collaborator OOB endpoint unrelated to any documented package purpose, and execution is automatic at install time. ## Source: ghsa-malware (0723c99e49b056e9d946985e6401afa50ee28e766b0e7e0993914f4ad3538723) 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

npmghsa
tool-registry-scripts
Affected versions
=1.0.0

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

AILast updated: 08/05/2026, 17:15:02 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-12482
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a735743bf8831d539159c2f

Added to database: 08/05/2026, 15:31:15 UTC

Last enriched: 08/05/2026, 17:15:02 UTC

Last updated: 09/08/2026, 04:37:17 UTC

Views: 20

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses