Skip to main content

Malicious code in @coopeuch/button (npm)

0
High
Published: 10/11/2026 (10/11/2026, 13:51:41 UTC)
Source: GCVE Database
Product: @coopeuch/button

Description

The npm package @coopeuch/button version 1.999.999 contains malicious code in its postinstall script that collects extensive system and environment information from the installer host and sends it to a hardcoded external server. This package appears to be a dependency confusion attack targeting a specific organization's internal namespace by masquerading as an internal package. The malicious behavior includes harvesting host identifiers, network details, and environment variables, then exfiltrating this data over HTTPS and DNS queries to an unauthorized external destination.

Affected software

npmghsa
@coopeuch/button
Affected versions
=1.999.999

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: 10/11/2026, 21:44:07 UTC

Technical Analysis

The @coopeuch/button npm package version 1.999.999 includes a postinstall lifecycle script (postinstall.js) that executes automatically during npm install. This script collects detailed host information such as hostname, username, user IDs, home directory, network interfaces with MAC addresses and CIDRs, DNS server configurations, reverse DNS internal FQDN, CPU and memory details, package metadata, CI environment markers, npm configuration variables, and container runtime indicators. The collected data is sent as a JSON payload via HTTPS POST to a hardcoded external server (collector.oob.s4yhii.com) and also triggers a DNS lookup to the same domain as an out-of-band beacon. The package's version and scope suggest it is designed for dependency confusion attacks, substituting a public package for an intended internal one to exfiltrate sensitive environment information.

Potential Impact

This malicious package can lead to unauthorized disclosure of sensitive host and environment information to an attacker-controlled external server. The data collected includes identifiers and configuration details that could facilitate further targeted attacks or reconnaissance against the affected organization. The attack leverages dependency confusion to trick internal users into installing the malicious package instead of the legitimate internal package, increasing the risk of exposure.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing the @coopeuch/button package version 1.999.999, especially in environments where dependency confusion is possible. Organizations should audit their npm dependencies and internal package namespaces to prevent public packages from masquerading as internal ones. Implementing strict package resolution policies and verifying package sources can help mitigate this risk. Monitor for unexpected network connections during npm installs and consider restricting outbound connections during package installation processes.

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-17759
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6acc00a32cdf04f656fecb30

Added to database: 10/11/2026, 21:33:23 UTC

Last enriched: 10/11/2026, 21:44:07 UTC

Last updated: 10/11/2026, 21:44:07 UTC

Views: 3

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