How to spot a malicious trading bot on GitHub

Red flags in the checklist
14
Steps before running8
Documented cases5
"Check" flags in catalog2

Red flags of a malicious repository14

Many stars, almost no watchers

Large, active projects in our sample have 5 to 20 watchers per thousand stars. Fewer than one per thousand on a repo with thousands of stars almost certainly means bought stars. AlgoScore applies a trust penalty for it.

Thousands of stars on a handful of commits

A repository with a few commits and thousands of stars is a shop window with nothing behind it. We treat more than 300 stars per commit as a reason to read the code line by line before downloading anything.

Weeks old, thousands of stars

According to StarScout, 83.9% of repositories with fake-star campaigns were active for fewer than ten days. A young project that takes off with no release history or discussion deserves caution.

README asks for a private key or seed in .env

Almost every documented stealer posing as a Polymarket or Solana bot started by reading .env. An exchange bot needs an API key with withdrawals disabled. No bot needs your wallet seed phrase.

Package name with a typo

big-nunber instead of bignumber.js, ts-bign posing as a BigNumber library: typosquats pull in a second malicious package as a transitive dependency. Check every name in package.json and requirements.txt against the official registry.

Dependency fetched outside npm or PyPI

A link to an archive in someone else's GitHub release, or a direct URL in place of a package name, bypasses registry moderation. That is how crypto-layout-utils reached users of the fake solana-pumpfun-bot.

postinstall and preinstall scripts

Code in postinstall runs during npm install, before the bot ever starts. In the dev-protocol case it took ownership of ~/.ssh and opened port 22. Install untrusted packages with --ignore-scripts.

Obfuscated or hidden code

jsjiami-minified blocks, lines padded with thousands of spaces or tabs and code at the end, base64 followed by eval or exec. An open-source trading bot has nothing to hide, so obfuscation in one is a threat signal.

README links to .exe, .zip or an installer

An open-source bot is built and run from source. A prebuilt binary or a password-protected archive cannot be verified by reading code, and a password on the archive also helps it slip past antivirus scanning.

Guaranteed profit claims

"1000% a month", "a bot that never loses", balance screenshots in place of a backtest with parameters. Real projects carry risk disclaimers; Freqtrade and Jesse tell you plainly not to risk money you are afraid to lose.

Telegram or Discord "support" asks for keys

No developer needs your private key, seed or a withdrawal-enabled exchange key to "configure" or "activate" a bot. Any such request in direct messages is a theft attempt.

Clone of a known project or hijacked org

The name and README copy a popular bot while commits come from a fresh account. In March 2026 malicious Polymarket repositories appeared even inside the verified dev-protocol organization after attackers took it over.

Issues disabled or warnings deleted

In the dev-protocol case an issue warning about the malicious packages was deleted. Disabled issues alone prove nothing, since some well-known projects keep them closed, but on an obscure bot it counts against it.

Filler commits to inflate the counter

Hundreds of commits that touch one timestamp file every few minutes fake active development. The GitVenom campaign padded its fake projects this way. Open a few commits and see what they actually change.

Before running someone else's bot

  1. Read package.json, requirements.txt or pyproject.toml before installing: check each package name against the registry, look at publish dates and download counts, and find postinstall scripts and direct-URL dependencies.
  2. Check dependencies against OSV (osv.dev), where malicious packages get MAL- identifiers. For npm projects, install with --ignore-scripts.
  3. Run an unfamiliar bot in a separate container or virtual machine with no access to your home directory, SSH keys, browser profiles or wallets.
  4. For on-chain bots, create a separate wallet holding only what you can afford to lose. Never put your main wallet key or seed phrase in .env.
  5. On the exchange, create an API key with trading rights only: withdrawals off, access restricted to your server IP allowlist.
  6. Start in dry-run, paper mode or the exchange testnet and watch outbound connections: a trading bot needs exchange APIs, and unknown domains on vercel.app or "cloud" hosts point to exfiltration.
  7. Check the fake-star signals: watcher-to-star ratio, stars per commit, repository age, release history and real discussion in issues.
  8. If malicious code has already run, treat every key on that machine as compromised: move funds to a new wallet, revoke API keys, and check ~/.ssh/authorized_keys and open ports.

Documented cases5

GitVenom: hundreds of fake projects

Kaspersky described a campaign with hundreds of repositories, including a Telegram bot for managing Bitcoin wallets. The READMEs looked professional, commit counts were inflated by automated edits to a timestamp file, and the advertised features did not exist in the code. Payloads included a stealer, AsyncRAT, the Quasar backdoor and a clipboard address swapper. The attackers' wallet received about 5 BTC in November 2024.

2025-02 · Securelist (Kaspersky)

solana-pumpfun-bot: a package outside npm

SlowMist analyzed the now-deleted solana-pumpfun-bot repository from the account zldp2002, which had a high number of stars and forks. Its dependency crypto-layout-utils, removed from the npm registry, was downloaded from a separate GitHub repository and obfuscated with jsjiami.com.v7. The code searched for key and wallet files and sent them to the attacker's server. SlowMist believes controlled accounts inflated the stars and forks.

2025-07 · Cointelegraph (citing SlowMist)

polymarket-copy-trading-bot

A Polymarket copy-trading bot project on GitHub was found to carry a hidden dependency, excluder-mcp-package@1.0.4. On launch the program read private keys from .env and sent them to an attacker-controlled server, after which user funds were drained. Anyone who ran the project was advised to treat their keys as compromised and move funds to new wallets.

2025-12 · KuCoin News (citing Odaily)

Hijacked dev-protocol organization

StepSecurity found that the verified GitHub organization of a Japanese DeFi project had been flooded with more than 20 Polymarket repositories. Their package.json listed the typosquats ts-bign and big-nunber, which pulled in the levex-refa stealer and the lint-builder backdoor. The stealer took .env files, Solana id.json keypairs and config.toml, and postinstall opened SSH access. The bot itself worked against the real Polymarket API.

2026-03 · StepSecurity

The polymarket-kit npm package

OX Security analyzed polymarket-kit, an npm package from a campaign using polymarket-*, clob-* and kelly-* names. It stole data from seven browser wallets, including MetaMask, Phantom and Rabby, from desktop wallets Exodus, Electrum and Atomic, and Google Cloud, AWS and Azure tokens. Over a WebSocket channel the attacker could run commands on the victim machine. The author left their own GitLab SSH keys inside the package.

2026-07 · OX Security

Flagged "Check" in the catalog2

#RepositoryTopicAlgoScore★30d growthPushLabel
1 Jakeschincariol/day-trader-skill11 Claude skills for day trading: scan thousands of charts, track breaking news, time every entry and exit, and replay every outcome before you risk a dollar. Algo trading & backtesting 40 11k — 45 d Check
2 mortdeus/solana-copy-sniper-mev-trading-bot🆓Free High speed solana mev arbitrage Sniper Copy Trading Bot, gRPC shred stream Pumpfun Bundler, Pumpfun Contract, Yellowston Geyser, token launcher, AI raydium pool creator, volume, sandwich, raydium swap bot, pumpswap auto Volume, Maker bot, 0xblock, best 0 block solana trading bot solana tradi On-chain & MEV 40 4.5k — 18 d Check

FAQ

Is it safe to run a Polymarket bot from GitHub?

Only after checking it. Several stealers posing as Polymarket bots were documented in 2025 and 2026: they read the private key from .env or installed malicious npm packages. Read the dependencies, run it in a container, use a separate low-balance wallet and Polymarket's official clients.

Do many GitHub stars mean a project is trustworthy?

No. The StarScout study (ICSE 2026) found 6 million suspected fake stars across 18,617 repositories from 2019 to 2024. 90.42% of those repositories were later deleted, and the authors link many of them to malware posing as pirated software, game cheats and crypto bots.

Why are Solana sniper and MEV bots from GitHub risky?

By design they need a hot wallet key, so asking you to put it in .env looks natural, and stealers exploit that. The solana-pumpfun-bot case showed the pattern: inflated stars, a dependency fetched outside npm, obfuscation and key files shipped to a remote server.

What should I do if I already ran a suspicious bot?

Treat everything on that machine as compromised. Move funds to a new wallet from a different device, revoke exchange API keys and cloud tokens, check ~/.ssh/authorized_keys and open ports, delete node_modules, and reinstall the system if you found a backdoor.

How does AlgoScore flag suspicious repositories?

We cap the score at 40 and add a "Check" badge when there is less than one watcher per thousand stars, more than 300 stars per commit, a repo younger than 60 days with 2,000+ stars, or a README asking for a key in .env. Polymarket, MEV and sniper projects always get a safety flag.