---
agent:
  instructions: "Search published articles with space-separated keywords. All terms must occur in the article text. Results are Markdown excerpts with canonical links, newest first."
  endpoint: "https://www.zaihua.news/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://www.zaihua.news/docs/api/#agent-search"
---

# npm 包 color 遭恶意攻击，数千万下载量包被植入加密货币窃取代码

Source: https://www.zaihua.news/article/35646/

[返回新闻流](https://www.zaihua.news/)
2025年9月9日 · 12:21 · [在花新闻](https://www.zaihua.news/about/)

# npm 包 color 遭恶意攻击，数千万下载量包被植入加密货币窃取代码

9 月 8 日，攻击者通过钓鱼邮件成功入侵开发者 Josh Junon 的 npm 账户，并在其维护的 color 等热门包中植入恶意代码。color 包每周下载量达 3200 万次，此次攻击影响范围巨大。

攻击者使用伪造的 2FA 重置邮件进行钓鱼，邮件来自 3 天前注册的域名 npmsj.help。恶意代码主要针对浏览器环境，通过劫持 fetch 和 XMLHttpRequest 请求，将比特币、以太坊等加密货币地址替换为攻击者控制的地址，并监控 MetaMask 等钱包的交易操作。截至发稿时，npm 团队正在处理移除恶意包，但响应速度受到质疑。

[fasterthanli.me](https://fasterthanli.me/articles/color-npm-package-compromised)

🍀[在花频道](http://t.me/zaihuanews) 🍵[茶馆](http://t.me/zaihuachat) 📮[投稿](http://t.me/ZaiHuabot)

https://cdn.zaihua.news/main/35646/5044516085486956167.jpg

[上一条美国 FCC 启动程序禁止中国实验室测试美国电子产品](https://www.zaihua.news/article/35645/)[下一条谷歌法庭文件承认开放网络正在快速衰落](https://www.zaihua.news/article/35647/)
