{"id":"MAL-2026-12388","summary":"Malicious code in gekko-trading-bot (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8efc19985c853a3f4fdc8bdb1f08b432456b8f55ce701567edbf593fb3e6211c)\nThe package's postinstall hook runs setup.js, which unconditionally downloads core.exe from the hardcoded Cloudflare Workers subdomain c2-proxy.metamasksvc.workers.dev and writes it to ~/.gekko/gekko.exe on Windows installers. The host is name-spoofed to resemble MetaMask, is not affiliated with MetaMask, and is explicitly labeled c2-proxy in a variable name in the code. There is no version pinning, no hash or signature verification, and the fetched binary is unrelated to the package's stated trading-bot purpose. The package metadata impersonates the well-known open-source Gekko crypto trading bot while pointing to an unrelated repository at github.com/0xWelsh/gekko, so users searching for the legitimate project receive the trojanized clone. Installing this package on Windows results in an opaque attacker-controlled binary being staged in the user's home directory at install time.\n","modified":"2026-08-05T13:35:30.357176841Z","published":"2026-08-05T12:56:41Z","database_specific":{"malicious-packages-origins":[{"sha256":"8efc19985c853a3f4fdc8bdb1f08b432456b8f55ce701567edbf593fb3e6211c","source":"amazon-inspector","versions":["4.2.0"],"id":"IN-MAL-2026-014818","import_time":"2026-08-05T13:08:48.830667038Z","modified_time":"2026-08-05T12:56:41Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/gekko-trading-bot/v/4.2.0"}],"affected":[{"package":{"name":"gekko-trading-bot","ecosystem":"npm","purl":"pkg:npm/gekko-trading-bot"},"versions":["4.2.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"tlsh":"b64122db07f7b12191b771ec978f550aa4138113310ad958fabc4701bf812689a66e69","path":"setup.js","sha256":"6f809d8a5d0e10285f3d58216c03ba7d2aeb8459cfda40d61e4ef45843e94d6c"},{"tlsh":"6701cb20a830aa632acc1dc47d76220679355a071294bc2e23db113c9bdd2b258fec5e","path":"package.json","sha256":"6b0648df4d4d642edbe98668862178375b7f764d266c239e9c8d0cb981ce9fd2"}],"package_integrity":[{"filename":"gekko-trading-bot-4.2.0.tgz","hashes":{"sha1":"32de201d43597eef65ff0071dd92325943d95e86","sha512_sri":"sha512-rHSx9Dr7UBn8s94rBKA3M3l9RB+4nTJcRsjgpyNCICLlJgfU2cJZEfzYBEqO+d46gk3IYqsN4p+4zdH9Hm82dw=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/gekko-trading-bot/MAL-2026-12388.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}