30 Malicious npm Packages Target DeFi Developers, Stealing Wallet Keys and Mnemonics

iconKuCoinFlash
Share
AI summary iconSummary
On July 1, SlowMist reported a Sybil attack involving 30 malicious npm packages targeting DeFi developers and trading bot users. Packages such as stake-math@3.5.4 were used to steal wallet keys, mnemonics, and API tokens. The attackers utilized fake repositories and forks under the poly-stocks account. Developers are urged to audit package files, rotate credentials, and rebuild their environments. The incident underscores the risks of 51% attack-like compromises within open-source ecosystems.

BlockBeats report: On July 1, SlowMist issued a security alert, detecting a coordinated malicious npm supply chain attack in which attackers deployed JavaScript information stealers through fake trading bot repositories and DeFi-themed npm packages, targeting npm users, DeFi developers, and trading bot users. The attack involved 30 malicious npm packages, with stake-math@3.5.4 appearing as a locked dependency in the donoaccestag/forex-mt5-trading-bot repository. This repository exhibited approximately 2,300 highly homogenized bulk-generated forks, mostly concentrated under the poly-stocks account, signaling clear malicious intent.


Attackers can steal a wide range of sensitive data, including cryptocurrency wallet databases, browser cookies and saved passwords, browsing history, developer credentials, shell history, password manager databases, private keys, seed phrases, and API tokens exposed in source code. SlowMist recommends that developers immediately remove the affected npm packages, audit their package.json and package-lock.json files as well as CI logs for any of the 30 malicious packages; treat any system that executed npm install as potentially compromised, rotate all exposed wallets, private keys, npm tokens, cloud credentials, SSH keys, and API tokens, and rebuild affected environments from clean images.

Disclaimer: The information on this page may have been obtained from third parties and does not necessarily reflect the views or opinions of KuCoin. This content is provided for general informational purposes only, without any representation or warranty of any kind, nor shall it be construed as financial or investment advice. KuCoin shall not be liable for any errors or omissions, or for any outcomes resulting from the use of this information. Investments in digital assets can be risky. Please carefully evaluate the risks of a product and your risk tolerance based on your own financial circumstances. For more information, please refer to our Terms of Use and Risk Disclosure.