Malicious code in gekko-trading-bot (npm)
The npm package 'gekko-trading-bot' version 4.2.0 contains malicious code that downloads and installs an attacker-controlled executable named core.exe during installation on Windows systems. This executable is fetched from a Cloudflare Workers subdomain impersonating MetaMask but unrelated to the legitimate Gekko trading bot. The package metadata misleads users by mimicking the legitimate project while pointing to a different repository. The malicious binary is placed in the user's home directory without verification, posing a significant security risk.
AI Analysis
Technical Summary
The 'gekko-trading-bot' npm package version 4.2.0 includes a postinstall hook that runs setup.js, which unconditionally downloads a binary named core.exe from a Cloudflare Workers subdomain (c2-proxy.metamasksvc.workers.dev). This domain is spoofed to resemble MetaMask but is not affiliated with it. The downloaded executable is saved as ~/.gekko/gekko.exe on Windows systems. There is no version pinning or integrity verification of the binary. The package metadata impersonates the legitimate Gekko crypto trading bot but directs users to an unrelated GitHub repository (github.com/0xWelsh/gekko). Installing this package results in staging an opaque attacker-controlled binary in the user's home directory at install time.
Potential Impact
Installing this malicious package on Windows results in an attacker-controlled executable being silently downloaded and placed on the user's system. This executable could be used to execute arbitrary malicious actions, compromising system integrity and user security. The impersonation of a legitimate open-source project increases the risk of unsuspecting users installing the trojanized package.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing 'gekko-trading-bot' version 4.2.0 from untrusted sources. Verify package authenticity by checking the official Gekko project repository and avoid packages that point to unrelated repositories or domains. Monitor for updates from the legitimate project or npm advisories for remediation guidance. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.
Malicious code in gekko-trading-bot (npm)
Description
The npm package 'gekko-trading-bot' version 4.2.0 contains malicious code that downloads and installs an attacker-controlled executable named core.exe during installation on Windows systems. This executable is fetched from a Cloudflare Workers subdomain impersonating MetaMask but unrelated to the legitimate Gekko trading bot. The package metadata misleads users by mimicking the legitimate project while pointing to a different repository. The malicious binary is placed in the user's home directory without verification, posing a significant security risk.
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 'gekko-trading-bot' npm package version 4.2.0 includes a postinstall hook that runs setup.js, which unconditionally downloads a binary named core.exe from a Cloudflare Workers subdomain (c2-proxy.metamasksvc.workers.dev). This domain is spoofed to resemble MetaMask but is not affiliated with it. The downloaded executable is saved as ~/.gekko/gekko.exe on Windows systems. There is no version pinning or integrity verification of the binary. The package metadata impersonates the legitimate Gekko crypto trading bot but directs users to an unrelated GitHub repository (github.com/0xWelsh/gekko). Installing this package results in staging an opaque attacker-controlled binary in the user's home directory at install time.
Potential Impact
Installing this malicious package on Windows results in an attacker-controlled executable being silently downloaded and placed on the user's system. This executable could be used to execute arbitrary malicious actions, compromising system integrity and user security. The impersonation of a legitimate open-source project increases the risk of unsuspecting users installing the trojanized package.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing 'gekko-trading-bot' version 4.2.0 from untrusted sources. Verify package authenticity by checking the official Gekko project repository and avoid packages that point to unrelated repositories or domains. Monitor for updates from the legitimate project or npm advisories for remediation guidance. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12388
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a735744bf8831d539159ca8
Added to database: 08/05/2026, 15:31:16 UTC
Last enriched: 08/05/2026, 17:20:58 UTC
Last updated: 09/16/2026, 05:17:53 UTC
Views: 42
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.