Malicious code in add-two-numbers-x7q9m (npm)
The npm package 'add-two-numbers-x7q9m' versions 1.0.0 and 1.0.1 contains malicious code that executes during installation. Its preinstall script enumerates the installer's Desktop directory, extracts npm authentication tokens from .txt files using a regex, and sends these tokens to a hardcoded external endpoint. This behavior is unrelated to the package's advertised functionality and enables attackers to hijack npm registry accounts and propagate supply-chain attacks.
AI Analysis
Technical Summary
The 'add-two-numbers-x7q9m' npm package, specifically versions 1.0.0 and 1.0.1, includes a preinstall lifecycle script that scans the Desktop directory of the user installing the package. It reads .txt files, applies a regex pattern to extract npm authentication tokens, and transmits any found tokens as query parameters to a hardcoded external webhook URL (https://lively-bird-15.webhook.cool). This malicious activity occurs automatically during 'npm install' and is unrelated to the package's stated purpose of adding two numbers. The harvested tokens can be used to take over npm registry accounts, enabling attackers to publish malicious packages and propagate supply-chain compromises.
Potential Impact
Compromise of npm authentication tokens can lead to registry account takeover, allowing attackers to publish malicious packages under the victim's identity. This facilitates downstream supply-chain attacks affecting other users who install compromised packages. The malicious code executes automatically during installation, increasing risk of token theft without user awareness.
Mitigation Recommendations
No official patch or fix is currently available for this package. Users should avoid installing 'add-two-numbers-x7q9m' versions 1.0.0 and 1.0.1. Review and revoke any potentially compromised npm authentication tokens. Monitor npm accounts for unauthorized activity and rotate credentials. Prefer using well-known and verified packages from trusted sources.
Malicious code in add-two-numbers-x7q9m (npm)
Description
The npm package 'add-two-numbers-x7q9m' versions 1.0.0 and 1.0.1 contains malicious code that executes during installation. Its preinstall script enumerates the installer's Desktop directory, extracts npm authentication tokens from .txt files using a regex, and sends these tokens to a hardcoded external endpoint. This behavior is unrelated to the package's advertised functionality and enables attackers to hijack npm registry accounts and propagate supply-chain attacks.
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 'add-two-numbers-x7q9m' npm package, specifically versions 1.0.0 and 1.0.1, includes a preinstall lifecycle script that scans the Desktop directory of the user installing the package. It reads .txt files, applies a regex pattern to extract npm authentication tokens, and transmits any found tokens as query parameters to a hardcoded external webhook URL (https://lively-bird-15.webhook.cool). This malicious activity occurs automatically during 'npm install' and is unrelated to the package's stated purpose of adding two numbers. The harvested tokens can be used to take over npm registry accounts, enabling attackers to publish malicious packages and propagate supply-chain compromises.
Potential Impact
Compromise of npm authentication tokens can lead to registry account takeover, allowing attackers to publish malicious packages under the victim's identity. This facilitates downstream supply-chain attacks affecting other users who install compromised packages. The malicious code executes automatically during installation, increasing risk of token theft without user awareness.
Mitigation Recommendations
No official patch or fix is currently available for this package. Users should avoid installing 'add-two-numbers-x7q9m' versions 1.0.0 and 1.0.1. Review and revoke any potentially compromised npm authentication tokens. Monitor npm accounts for unauthorized activity and rotate credentials. Prefer using well-known and verified packages from trusted sources.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12032
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735730bf8831d53913cee8
Added to database: 08/05/2026, 15:30:56 UTC
Last enriched: 08/05/2026, 15:41:59 UTC
Last updated: 08/05/2026, 15:41:59 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.