Skip to main content

Malicious code in ccxt-trading (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 12:24:48 UTC)
Source: GCVE Database
Product: ccxt-trading

Description

The npm package 'ccxt-trading' version 1.0.0 contains malicious code that impersonates the popular 'ccxt' library. When instantiated, it captures sensitive user credentials including apiKey, secret, and password, as well as host identifiers and reads sensitive files from the user's home directory. This data is then exfiltrated via an HTTP POST request to a hardcoded external URL unrelated to any legitimate exchange API.

Affected software

npmghsa
ccxt-trading
Affected versions
=1.0.0

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, 17:49:38 UTC

Technical Analysis

The 'ccxt-trading' npm package (version 1.0.0) masquerades as the legitimate 'ccxt' library but includes a malicious ProExchange constructor. This constructor intercepts user-supplied API credentials and collects host-specific information such as hostname, username, home directory path, and timestamp. It also reads sensitive files commonly used for storing credentials and keys (wallet.json, .env, config.json, keypair.json, id_rsa, credentials.json) from the user's home directory. All collected data is sent to a hardcoded external endpoint (enjbyg3xk8l.x.pipedream.net) via an HTTPS request. The destination is not configurable or documented and is unrelated to any legitimate exchange API, indicating clear data exfiltration.

Potential Impact

Sensitive user credentials and host information can be stolen by attackers, potentially leading to unauthorized access to user accounts, financial loss, and compromise of other systems if private keys or credentials are exposed. The malicious package can cause significant confidentiality breaches for users who install and use it.

Mitigation Recommendations

No official patch or remediation is currently available for this malicious package. Users should immediately uninstall 'ccxt-trading' version 1.0.0 and avoid installing packages with names resembling legitimate libraries without verifying their authenticity. Use only official and verified sources for critical dependencies. Monitor for any unauthorized access or suspicious activity related to exposed credentials.

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

Threat ID: 6a735750bf8831d53915a613

Added to database: 08/05/2026, 15:31:28 UTC

Last enriched: 08/05/2026, 17:49:38 UTC

Last updated: 09/15/2026, 23:25:17 UTC

Views: 19

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