Malicious code in bitcoinjs-wallet (npm)
The npm package [email protected] is a malicious typosquat of bitcoinjs-lib that steals environment credentials upon being required. It collects system information and environment variables, encodes this data, and exfiltrates it via an HTTPS request to the Telegram Bot API using a hardcoded bot token and chat ID. The package attempts to hide its behavior by re-exporting bitcoinjs-lib if present or exposing stub wallet APIs. This results in credential theft from environment variables such as AWS, NPM, GitHub tokens, and other secrets.
AI Analysis
Technical Summary
bitcoinjs-wallet version 5.4.2 is a malicious package impersonating bitcoinjs-lib. When loaded, it gathers hostname, username, home directory, platform, current working directory, and the entire process environment variables. This data is JSON-stringified, base64-encoded, and sent via an HTTPS GET request to the Telegram Bot API using a hardcoded bot token and chat ID 8969499041. A marker file in the OS temporary directory prevents repeated exfiltration. The environment variable dump can include sensitive credentials like AWS keys, NPM tokens, GitHub tokens, CI secrets, and wallet-related variables. The package tries to maintain normal functionality by re-exporting bitcoinjs-lib if installed or providing stub wallet functions, masking the malicious activity.
Potential Impact
This malicious package can lead to the theft of sensitive environment credentials and system information from the host where it is installed. Credentials such as AWS keys, NPM tokens, GitHub tokens, and CI secrets can be exposed, potentially allowing attackers to gain unauthorized access to cloud services, code repositories, and other critical infrastructure. The exfiltration occurs silently on module load, increasing the risk of unnoticed compromise.
Mitigation Recommendations
No official patch or fix is available since this is a malicious typosquat package rather than a vulnerability in legitimate software. The recommended mitigation is to avoid installing [email protected] and verify package names carefully before installation. Remove any instances of [email protected] from your environment. Use trusted sources and verify package integrity. Monitor for suspicious network activity related to Telegram Bot API endpoints. Since this is a malicious package, remediation involves removal and credential rotation if exposure is suspected.
Malicious code in bitcoinjs-wallet (npm)
Description
The npm package [email protected] is a malicious typosquat of bitcoinjs-lib that steals environment credentials upon being required. It collects system information and environment variables, encodes this data, and exfiltrates it via an HTTPS request to the Telegram Bot API using a hardcoded bot token and chat ID. The package attempts to hide its behavior by re-exporting bitcoinjs-lib if present or exposing stub wallet APIs. This results in credential theft from environment variables such as AWS, NPM, GitHub tokens, and other secrets.
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
bitcoinjs-wallet version 5.4.2 is a malicious package impersonating bitcoinjs-lib. When loaded, it gathers hostname, username, home directory, platform, current working directory, and the entire process environment variables. This data is JSON-stringified, base64-encoded, and sent via an HTTPS GET request to the Telegram Bot API using a hardcoded bot token and chat ID 8969499041. A marker file in the OS temporary directory prevents repeated exfiltration. The environment variable dump can include sensitive credentials like AWS keys, NPM tokens, GitHub tokens, CI secrets, and wallet-related variables. The package tries to maintain normal functionality by re-exporting bitcoinjs-lib if installed or providing stub wallet functions, masking the malicious activity.
Potential Impact
This malicious package can lead to the theft of sensitive environment credentials and system information from the host where it is installed. Credentials such as AWS keys, NPM tokens, GitHub tokens, and CI secrets can be exposed, potentially allowing attackers to gain unauthorized access to cloud services, code repositories, and other critical infrastructure. The exfiltration occurs silently on module load, increasing the risk of unnoticed compromise.
Defensive Guidance
No official patch or fix is available since this is a malicious typosquat package rather than a vulnerability in legitimate software. The recommended mitigation is to avoid installing [email protected] and verify package names carefully before installation. Remove any instances of [email protected] from your environment. Use trusted sources and verify package integrity. Monitor for suspicious network activity related to Telegram Bot API endpoints. Since this is a malicious package, remediation involves removal and credential rotation if exposure is suspected.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13258
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a73851fbf8831d5394ef8ce
Added to database: 08/05/2026, 18:46:55 UTC
Last enriched: 08/05/2026, 23:01:49 UTC
Last updated: 08/05/2026, 23:01:49 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.