Malicious code in @coopeuch/common (npm)
Description
The npm package @coopeuch/common version 1.999.999 is a malicious package that uses a dependency confusion technique by publishing under a scope it does not own with an inflated version number. Upon installation, its postinstall script collects extensive host and network information from the installer's environment and exfiltrates this data to a third-party server without user consent. This includes internal hostnames, usernames, MAC addresses, internal registry URLs, and project metadata. The package README states this is a coordinated-disclosure proof of concept, but the data collection and exfiltration occur automatically and without opt-in.
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
@coopeuch/[email protected] is a malicious npm package published under a scope the publisher does not own, leveraging dependency confusion by using an inflated version number (1.999.999) to override internal registry versions. Its postinstall.js script executes automatically on npm install, harvesting detailed environment data such as hostname, username, user IDs, home directory, network interface addresses, DNS resolver info, container and CI environment markers, npm registry configuration, and project package details. This data is sent as JSON to a hardcoded external endpoint (https://collector.oob.s4yhii.com/_npm-poc/beacon) and also triggers a DNS lookup beacon to a subdomain of oob.s4yhii.com. Any build resolving this package from the public npm registry risks leaking sensitive internal information to an unauthorized third party. Although the README labels this as a coordinated-disclosure proof of concept, the automatic data harvesting and exfiltration happen without installer consent.
Potential Impact
This malicious package can lead to unauthorized disclosure of sensitive internal environment information including hostnames, usernames, MAC addresses, internal registry URLs, and project metadata. This information leakage can aid attackers in reconnaissance and further attacks against internal infrastructure. The exfiltration occurs silently during package installation, potentially affecting any build or environment that resolves this package from the public npm registry.
Mitigation Recommendations
No official patch or remediation is indicated in the provided data. Users should avoid installing @coopeuch/[email protected] from the public npm registry. Verify and enforce strict package source controls to prevent dependency confusion attacks, such as using scoped registries and package allowlists. Monitor and audit package dependencies for unexpected versions or sources. Check vendor advisories or npm security notices for updates or official guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17760
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6acc00a32cdf04f656fecb2a
Added to database: 10/11/2026, 21:33:23 UTC
Last enriched: 10/11/2026, 21:43:40 UTC
Last updated: 10/11/2026, 21:43:40 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.