Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in bitcoinjs-wallet (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 15:40:48 UTC)
Source: GCVE Database
Product: bitcoinjs-wallet

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

npmghsa
bitcoinjs-wallet
Affected versions
=5.4.2

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: 08/05/2026, 23:01:49 UTC

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.

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-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 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