目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
npm active

@fairwords/encryption

MAL-2026-2506
2026-04-10 17:23:32
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in @fairwords/encryption (npm)

凭据/密钥窃取远程访问后门安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@fairwords/encryption0.0.5
npm@fairwords/encryption0.0.6
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-04-10T17:23:32Z","published":"2026-04-08T04:19:17Z","schema_version":"1.7.4","id":"MAL-2026-2506","aliases":["GHSA-6rgf-v8fm-jf4g"],"summary":"Malicious code in @fairwords/encryption (npm)","details":"The @fairwords/encryption package was compromised as part of the TeamPCP/CanisterWorm campaign. A `postinstall` hook executes `node scripts/check-env.js || true` which performs multi-stage credential harvesting, encrypted exfiltration, and self-propagation.\n\nThe payload harvests 40+ environment variable patterns (AWS, Azure, GCP, GitHub, OpenAI, Stripe), reads 30+ filesystem credential locations (SSH keys, .npmrc, Kubernetes configs, Docker auth, Terraform files), steals crypto wallet data (Solana, Ethereum, Bitcoin, MetaMask, Phantom, Exodus, Atomic Wallet), and extracts Chrome passwords on Linux via hardcoded PBKDF2 key derivation.\n\nExfiltration uses a RSA-4096 + AES-256-CBC hybrid encryption scheme, sending data to an HTTPS C2 endpoint (telemetry.api-monitor.com) and an Internet Computer (ICP) canister as a decentralized dead-drop.\n\nThe worm steals npm tokens to enumerate and infect all publishable packages owned by the token holder, auto-publishing with bumped version numbers. It also performs cross-ecosystem propagation to PyPI via .pth file injection.\n\nVersion 0.0.6 was auto-published ~8 minutes after the initial compromise of version 0.0.5, containing an incomplete variant propagation payload.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (94883eafca4705628d5f545eb6cb655ceb25228247df96730858304a6cca0f98)\nThe package @fairwords/encryption was found to contain malicious code.\n\n## Source: ghsa-malware (31a6f300a9557ef3d2dfaeece019b48f526b8c0e40a3881188c67d9f82644831)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"ecosystem":"npm","name":"@fairwords/encryption"},"versions":["0.0.5","0.0.6"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"references":[{"type":"REPORT","url":"https://safedep.io/malicious-fairwords-npm-credential-worm/"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-6rgf-v8fm-jf4g"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]},{"name":"SafeDep","type":"FINDER","contact":["https://safedep.io"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"31a6f300a9557ef3d2dfaeece019b48f526b8c0e40a3881188c67d9f82644831","import_time":"2026-04-08T13:52:32.931919216Z","id":"GHSA-6rgf-v8fm-jf4g","modified_time":"2026-04-08T13:20:00Z","versions":["0.0.6","0.0.5"]},{"source":"amazon-inspector","sha256":"94883eafca4705628d5f545eb6cb655ceb25228247df96730858304a6cca0f98","import_time":"2026-04-10T17:21:49.399550249Z","modified_time":"2026-04-10T17:02:58Z","versions":["0.0.5","0.0.6"]}]}}

数据来源:OpenSSF Malicious Packages · Apache-2.0