Malicious code in create-coin (npm)
The npm package [email protected] contains malicious code that executes during installation via a postinstall hook. This code performs environment checks to evade analysis, delays execution, and then collects extensive system and project information, including environment variables, user and host details, and local project files. The collected data is exfiltrated over HTTPS to a hardcoded external server. The package masquerades as a legitimate esbuild-related package but is unrelated, indicating a typosquatting attack.
AI Analysis
Technical Summary
The create-coin package version 20.1.1 includes a postinstall script that runs build/payload.node.js during npm install. This script implements anti-analysis techniques by detecting CI environments, containerization, and minimal environment variables, then delays execution randomly between 10 and 30 seconds. It reads the installer's npm configuration files, enumerates all environment variables, and accesses project files such as package.json, package-lock.json, .env, and src/config.*. It also gathers host reconnaissance data via system calls and probes open localhost ports. All collected information is sent via HTTPS POST to a hardcoded endpoint (https://random-name.trycloudflare.com) with SSL verification disabled. The script suppresses errors and forces a successful exit code to avoid detection. The package description falsely claims to be related to esbuild, suggesting a typosquatting attempt to impersonate a known package family.
Potential Impact
This malicious package can lead to significant information disclosure by exfiltrating sensitive environment variables, project configuration files, and host system details to an attacker-controlled server. This can compromise credentials, secrets, and internal project data, potentially enabling further attacks or unauthorized access. The stealthy nature of the code, including anti-analysis checks and error suppression, increases the risk of unnoticed compromise during routine npm installs.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing [email protected] and verify package authenticity before installation. Use trusted package sources and consider scanning dependencies for malicious behavior. Monitor for suspicious network connections to unknown endpoints during npm installs. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Malicious code in create-coin (npm)
Description
The npm package [email protected] contains malicious code that executes during installation via a postinstall hook. This code performs environment checks to evade analysis, delays execution, and then collects extensive system and project information, including environment variables, user and host details, and local project files. The collected data is exfiltrated over HTTPS to a hardcoded external server. The package masquerades as a legitimate esbuild-related package but is unrelated, indicating a typosquatting attack.
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 create-coin package version 20.1.1 includes a postinstall script that runs build/payload.node.js during npm install. This script implements anti-analysis techniques by detecting CI environments, containerization, and minimal environment variables, then delays execution randomly between 10 and 30 seconds. It reads the installer's npm configuration files, enumerates all environment variables, and accesses project files such as package.json, package-lock.json, .env, and src/config.*. It also gathers host reconnaissance data via system calls and probes open localhost ports. All collected information is sent via HTTPS POST to a hardcoded endpoint (https://random-name.trycloudflare.com) with SSL verification disabled. The script suppresses errors and forces a successful exit code to avoid detection. The package description falsely claims to be related to esbuild, suggesting a typosquatting attempt to impersonate a known package family.
Potential Impact
This malicious package can lead to significant information disclosure by exfiltrating sensitive environment variables, project configuration files, and host system details to an attacker-controlled server. This can compromise credentials, secrets, and internal project data, potentially enabling further attacks or unauthorized access. The stealthy nature of the code, including anti-analysis checks and error suppression, increases the risk of unnoticed compromise during routine npm installs.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing [email protected] and verify package authenticity before installation. Use trusted package sources and consider scanning dependencies for malicious behavior. Monitor for suspicious network connections to unknown endpoints during npm installs. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14372
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a8af9a3acd9273b49f32eef
Added to database: 08/23/2026, 13:46:11 UTC
Last enriched: 08/23/2026, 13:49:49 UTC
Last updated: 08/23/2026, 23:11:11 UTC
Views: 7
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.