Malicious code in @coopeuch/components (npm)
Description
The npm package @coopeuch/components version 1.999.999 contains malicious postinstall code that collects extensive installer environment and network metadata and exfiltrates it to a third-party server. This behavior occurs automatically during npm install and includes sensitive host, network, CI environment, and project dependency information. The package appears to be a dependency confusion attempt targeting internal @coopeuch scoped packages. No official patch or remediation guidance is provided.
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 @coopeuch/components npm package version 1.999.999 includes a postinstall script that executes automatically on installation. This script collects a wide range of environment and network identifiers such as hostname, username, user IDs, home directory, platform details, network interface MAC addresses and CIDRs, DNS server configurations, internal reverse-DNS names, container runtime indicators, npm environment variables including registry settings, CI environment markers, and metadata from the consuming project's package.json (name, version, declared dependency range). The collected data is sent as JSON to https://collector.oob.s4yhii.com/_npm-poc/beacon, and a DNS beacon is also issued to a subdomain of oob.s4yhii.com encoding the package name. The package versioning and behavior suggest a dependency confusion attack aiming to capture internal project and environment data by masquerading as an internal scoped package. The author frames this as a 'coordinated disclosure PoC,' but the code effectively leaks sensitive information without user consent.
Potential Impact
Installers that resolve and install this malicious package version inadvertently disclose sensitive host, network, continuous integration environment, and internal project metadata to an external third-party endpoint. This can lead to information leakage that may facilitate further targeted attacks or reconnaissance. There is no evidence of active exploitation in the wild, but the data exfiltration poses a significant privacy and security risk to affected environments.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix or advisory is available, avoid installing or resolving the @coopeuch/components package version 1.999.999 from untrusted sources. Validate package sources and consider restricting or auditing installation of packages from the @coopeuch scope to prevent dependency confusion attacks. Monitor for updates from the package maintainer or npm security advisories regarding this issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17761
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6acc00a32cdf04f656fecb28
Added to database: 10/11/2026, 21:33:23 UTC
Last enriched: 10/11/2026, 21:43:32 UTC
Last updated: 10/11/2026, 21:43:32 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.