Attackers deliver infostealer to Polymarket trading bot users, DeFi devs through npm packages

Source Cryptopolitan

Hackers created a fake trading bot for Polymarket’s prediction markets on GitHub. The bot was used to spread malware that steals credentials like wallet keys and browser passwords.

30 malicious packages were found across several npm accounts, reportedly targeting developers and traders who use automated strategies. At least 53 developers fell for the trap before it was flagged.

How did a fake bot spread to over 53 developers?

On July 1, 2026, the security firm SlowMist flagged a fake trading bot that promised big profits on Polymarket but was actually just a delivery vehicle for malware. SafeDep found 30 malicious npm packages spread across multiple accounts and tied to one fake GitHub repository.

The criminals posted a “polymarket-arbitrage-bot” that claimed to make over $80,000 per year. It got 36 stars and 53 forks before the scam was exposed. Every developer who downloaded and installed it ran the malware.

The attackers were aware of the fact that real trading bots have made huge money on Polymarket.

One bot profiled by prediction-markets analyst Dexter’s Lab turned $313 into $414,000 in just one month, while another, analyzed by researcher Igor Mikerin, made $2.2 million over two months. This track record made the fake bot look believable to traders chasing easy profits.

The instructions for this fake trading bot included having users put their Polymarket private key into a .env file before running “npm install.” During installation, the malware, which is hidden inside a dependency called “clob-client-math”, would run.

The malware steals a lot of sensitive data, including: 

  • Crypto wallet data from MetaMask, Phantom, Coinbase Wallet, TrustWallet, and others.
  • Browser data like saved passwords and cookies from Chrome, Firefox, and Brave.
  • SSH keys, AWS login details, npm and PyPI tokens.
  • Data from password managers like Bitwarden, KeePass, and 1Password.
  • Private keys and API tokens.

What should you do if you downloaded the fake bot?

Security researchers believe North Korean hackers are behind this attack. The group is running a larger campaign called “Contagious Trader” that targets crypto developers.

Cryptopolitan reported in March that hackers took over an Axios developer’s account and published malicious npm packages. In May, one compromised account was used to take over 323 packages in under 30 minutes.

Polymarket users have also faced other attacks this year, like when, in late June, a phishing scam drained $2.94 million from at least 11 accounts.

SafeDep says any computer that ran “npm install” on the fake bot should be treated as hacked. Such individuals are advised to rotate all crypto wallet keys right away, change every password stored in their browser, and replace all AWS credentials, SSH keys, and API tokens.

Traders are also advised to check their npm lock files for the 30 malicious packages by looking for dependencies that appear in package.json but never get used in the code. The repository’s “package.json” in this attack listed four dependencies, but only three (the official Polymarket SDK, ethers, and dotenv) were legitimate. The fourth, clob-client-math, which hid the malware, was never imported anywhere in the bot’s source code.

The best defense is checking if packages come from new accounts with no publishing history, as all the fake packages were published by brand-new accounts.

Don’t just read crypto news. Understand it. Subscribe to our newsletter. It's free.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
Bitcoin Price Trend Forecast: Continued ETF Outflows Limit Bitcoin Price Rebound Space, $58,000 Becomes Key Level for Bulls and Bears As of the European trading session on July 1, Bitcoin ( BTC) fluctuated around $58,700, hitting a new year-to-date low of $57,800 earlier in the day before recovering slightly, though it
Author  TradingKey
6 hours ago
As of the European trading session on July 1, Bitcoin ( BTC) fluctuated around $58,700, hitting a new year-to-date low of $57,800 earlier in the day before recovering slightly, though it
placeholder
Japanese Yen sinks to fresh low since 1986 vs USD amid persistently wide US-Japan rate gapThe USD/JPY pair builds on the previous day's breakout momentum and continues to scale new multi-decade highs through the Asian session on Wednesday.
Author  FXStreet
14 hours ago
The USD/JPY pair builds on the previous day's breakout momentum and continues to scale new multi-decade highs through the Asian session on Wednesday.
placeholder
US-Iran Talks Hit Nonfarm Payrolls Bombshell: Bitcoin Bull-Bear Battle Set to End $60,000 Deadlock?As US-Iran talks and non-farm payrolls approach, Bitcoin's range-bound trend is set to break, with a potential drop to $50,000.On June 30, Bitcoin ( BTC) remained volatile near $60,000, u
Author  TradingKey
Jun 30, Tue
As US-Iran talks and non-farm payrolls approach, Bitcoin's range-bound trend is set to break, with a potential drop to $50,000.On June 30, Bitcoin ( BTC) remained volatile near $60,000, u
placeholder
June Non-Farm Payrolls Preview: Did White House Economic Advisor Give an Early Hint? How Will US Stocks, Dollar and Gold React? As June draws to a close, market attention is shifting to the upcoming U.S. June nonfarm payrolls report to be released this Thursday (July 2). This month's nonfarm payrolls data has been
Author  TradingKey
Jun 30, Tue
As June draws to a close, market attention is shifting to the upcoming U.S. June nonfarm payrolls report to be released this Thursday (July 2). This month's nonfarm payrolls data has been
placeholder
Japan’s Kihara: Always ready to take necessary action on forexJapan’s Chief Cabinet Secretary Minoru Kihara reiterated during a regularly scheduled press conference this Tuesday that officials he is always ready to take necessary action on forex. Kihara, however, refrained from commenting on specific forex level.
Author  FXStreet
Jun 30, Tue
Japan’s Chief Cabinet Secretary Minoru Kihara reiterated during a regularly scheduled press conference this Tuesday that officials he is always ready to take necessary action on forex. Kihara, however, refrained from commenting on specific forex level.
goTop
quote