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

目标: 1000 元 · 已筹: 1359 元

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

crypto-credential-scanner

MAL-2026-4203
2026-05-26 05:55:02
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in crypto-credential-scanner (npm)

凭据/密钥窃取远程访问后门安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmcrypto-credential-scanner*
npmcrypto-credential-scanner2.0.1
npmcrypto-credential-scanner2.0.2
npmcrypto-credential-scanner2.0.3
npmcrypto-credential-scanner3.0.0
npmcrypto-credential-scanner3.0.1
npmcrypto-credential-scanner3.0.2
npmcrypto-credential-scanner3.0.3
npmcrypto-credential-scanner3.1.0
npmcrypto-credential-scanner3.1.1
npmcrypto-credential-scanner3.1.2
npmcrypto-credential-scanner3.1.6
npmcrypto-credential-scanner3.1.7
npmcrypto-credential-scanner3.1.8
npmcrypto-credential-scanner3.1.9
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-05-26T05:55:02Z","published":"2026-05-21T00:00:00Z","schema_version":"1.7.4","id":"MAL-2026-4203","aliases":["GHSA-9vgj-5wvq-cwp6"],"summary":"Malicious code in crypto-credential-scanner (npm)","details":"A coordinated supply-chain attack comprising 10 npm packages published by maintainer `ddjidd5640` (1623682356@qq.com) within a 48-hour window (2026-05-19T03:55Z – 2026-05-21T04:31Z). All packages masquerade as legitimate Web3/DeFi developer security tools (MCP servers) while silently exfiltrating credentials, wallet keys, shell history, SSH keys, and environment variables on install and on every MCP tool invocation. The `postinstall` hook fetches a dynamic C2 webhook URL from `https://ddjidd564.github.io/defi-security-best-practices/config.json` (hardcoded fallback: `https://webhook.site/8d334534-1c63-4f4f-a0d7-95c446c8b233`). At runtime, `scanner.js` performs a recursive credential sweep on every MCP tool call targeting cryptocurrency wallets (`~/.ethereum`, `~/.bitcoin`, `~/.solana`), SSH keys, dotfiles, and environment variables. MCP tool handlers in `index.js` are named to solicit private key material directly from the user or AI agent (e.g., `verify_key_format`: “Private key or key material to validate”).\n\n`crypto-credential-scanner` presents itself as a cryptocurrency credential scanning MCP server. No clean prior version is known; version 2.0.2 carries the malicious `postinstall` hook and `scanner.js` payload from first publication.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d03018d126298173652e07307c1f3c92eefa7b6932ba3468d76d3505c6aa9813)\nPackage name advertises a 'crypto credential scanner' and ships files (wallet-scanner.js, scanner.js, build-verifier.js) whose contents match the structural fingerprints of a credential and crypto-wallet exfiltrator. scanner.js contains a hardcoded C2 endpoint at https://ddjidd564.github.io with HTTPS POST/GET request paths (lines 142-161, 323), combined with execSync of `whoami` and os.hostname() collection that is sent to that endpoint. wallet-scanner.js spans ~900 lines and combines child_process, fs, https, os, repeated POST request paths, curl invocations, and ping — consistent with the wallet/keystore enumeration shape (filesystem walks of profile directories plus outbound POSTs of harvested data). build-verifier.js contains an `execSync('docker push...')` alongside child_process+https usage, suggesting opportunistic abuse of any docker credentials found on host. The combination of (a) hardcoded attacker-controlled GitHub Pages C2 bound to https.request/POST, (b) host-identity collection (whoami, os.hostname), and (c) filesystem enumeration plus outbound network from package code matches the documented credential/wallet stealer pattern. Installer harm: any environment that installs or loads this package exposes host identity, filesystem contents related to wallets/credentials, and any docker registry artifacts to the attacker-controlled endpoint.\n\n## Source: ghsa-malware (f1e8d672afd83598fe070320004541498496f2743dc8a39d648e0b906278013e)\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":"crypto-credential-scanner"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.1.1","3.0.0","3.1.7","3.1.2","3.1.0","3.0.3","3.0.1","3.0.2","2.0.2","3.1.9","2.0.1","2.0.3","3.1.6","3.1.8"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"domains":["ddjidd564.github.io"],"evidence_files":[{"path":"package.json","sha256":"bd290adf2688d8b7fb65b63a7d08dbf59b500338c297259a9cbe146c8852d52f","tlsh":"b63166e299e8d9b703cd04defa734205ea16a943fa407c84f36d044f5b9c4179a7996c"},{"path":"scanner.js","sha256":"933c65d178c376e61fc4eb47e4b4f45bd36b7532ce0cf4e89db9ee5abf17d0cc","tlsh":"e312f79b26f9606083c3e1e58a87d025663bf6523546dfd0b74ca238af5183853e3bdc"}],"package_integrity":[{"filename":"crypto-credential-scanner-3.0.0.tgz","hashes":{"sha1":"83918609edb0f4f0b2dec838321f493fcd795e67","sha512_sri":"sha512-0HRkvQGBFtIHW4BwETcINT0QNjsCjkPHDxx60VLg/PKuMPiKi52dwBciIvITPYYjXF9OFjdtGz9i7ELVe2wnww=="}}]}}}],"references":[{"type":"WEB","url":"https://x.com/safedepio/status/2057325717453697057"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-9vgj-5wvq-cwp6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-credential-scanner/v/3.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-credential-scanner/v/3.1.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-credential-scanner/v/3.1.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-credential-scanner/v/3.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-credential-scanner/v/3.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-credential-scanner/v/3.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-credential-scanner/v/2.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-credential-scanner/v/3.1.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-credential-scanner/v/3.1.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-credential-scanner/v/3.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-credential-scanner/v/2.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-credential-scanner/v/2.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-credential-scanner/v/3.1.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/crypto-credential-scanner/v/3.1.8"}],"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":"f1e8d672afd83598fe070320004541498496f2743dc8a39d648e0b906278013e","import_time":"2026-05-22T03:24:54.637508002Z","id":"GHSA-9vgj-5wvq-cwp6","modified_time":"2026-05-22T02:43:01Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"62e1ffc54100a3e400bf1b1b5bac603690d08770a1504d33a33c75fae4ca046c","import_time":"2026-05-26T05:51:42.155133496Z","id":"IN-MAL-2026-003981","modified_time":"2026-05-21T18:18:30Z","versions":["3.1.1"]},{"source":"amazon-inspector","sha256":"71e97d9fddad0c3bebcc747af6cafa0ddd21832677f9963d1803be4d2c488c31","import_time":"2026-05-26T05:51:26.039360677Z","id":"IN-MAL-2026-003845","modified_time":"2026-05-21T14:08:19Z","versions":["3.0.0"]},{"source":"amazon-inspector","sha256":"a0c39f6bb735ce82eda605cb1f5e68918dea2f0ba28998341ef218541b408e6b","import_time":"2026-05-26T05:51:51.769477294Z","id":"IN-MAL-2026-004061","modified_time":"2026-05-21T22:49:22Z","versions":["3.1.7"]},{"source":"amazon-inspector","sha256":"acb25e34f23d21bdc098f8c25828d689c744ddcbe92cf01633be95c241645819","import_time":"2026-05-26T05:51:43.605269617Z","id":"IN-MAL-2026-003993","modified_time":"2026-05-21T18:49:35Z","versions":["3.1.2"]},{"source":"amazon-inspector","sha256":"fdf7730d80e017946969a3ecc74b725d8149bee13d811eba13793511f9f099b7","import_time":"2026-05-26T05:51:41.703310588Z","id":"IN-MAL-2026-003977","modified_time":"2026-05-21T18:18:28Z","versions":["3.1.0"]},{"source":"amazon-inspector","sha256":"feeb8b20e32cdcb7376a740d58fa16a88a017205c6e37e22ca825afda6fefcc0","import_time":"2026-05-26T05:51:36.965119091Z","id":"IN-MAL-2026-003934","modified_time":"2026-05-21T17:23:28Z","versions":["3.0.3"]},{"source":"amazon-inspector","sha256":"2d4c49b877eb710337b541355fbef4fe2b2aee3aa29767c311a30f8a42087364","import_time":"2026-05-26T05:51:31.464935555Z","id":"IN-MAL-2026-003890","modified_time":"2026-05-21T16:19:24Z","versions":["3.0.1"]},{"source":"amazon-inspector","sha256":"41020cff8fb847f4df0986fd502ad68b66f0eaff22add3dce4b3040dc760d3af","import_time":"2026-05-26T05:51:34.337602322Z","id":"IN-MAL-2026-003911","modified_time":"2026-05-21T16:41:00Z","versions":["3.0.2"]},{"source":"amazon-inspector","sha256":"50bad278873fed93c75d90a1fc3a2ae25e41c5e9c6012a2859eb53595ca42287","import_time":"2026-05-26T05:51:10.737931757Z","id":"IN-MAL-2026-003719","modified_time":"2026-05-21T04:31:42Z","versions":["2.0.2"]},{"source":"amazon-inspector","sha256":"860095d96c5af01bd44465a5a25b5e5aff0fa2866538e4ff175c8f0f8a74d5af","import_time":"2026-05-26T05:51:41.912298308Z","id":"IN-MAL-2026-003979","modified_time":"2026-05-21T18:18:29Z","versions":["3.1.0"]},{"source":"amazon-inspector","sha256":"89d532468dc77b379200a8b5432ace7d361832aad726a184c2052cd70910f450","import_time":"2026-05-26T05:51:42.034609184Z","id":"IN-MAL-2026-003980","modified_time":"2026-05-21T18:18:29Z","versions":["3.1.1"]},{"source":"amazon-inspector","sha256":"9b39d35b90259b2d3875f044b01492edc2459676c7e067d6fd89d0d650845d8e","import_time":"2026-05-26T05:51:54.097118162Z","id":"IN-MAL-2026-004082","modified_time":"2026-05-21T23:12:25Z","versions":["3.1.9"]},{"source":"amazon-inspector","sha256":"0915fa25fc7e78c33546453787e2cb27755f80e3fce3cbd5410e82af446f4265","import_time":"2026-05-26T05:51:34.207605873Z","id":"IN-MAL-2026-003910","modified_time":"2026-05-21T16:41:00Z","versions":["3.0.2"]},{"source":"amazon-inspector","sha256":"3193f5f3842d4e362d37bede52fec0ed16abefd8434988a23b14822035e81b9b","import_time":"2026-05-26T05:51:08.712510539Z","id":"IN-MAL-2026-003704","modified_time":"2026-05-21T02:53:45Z","versions":["2.0.1"]},{"source":"amazon-inspector","sha256":"8f1b1f0d15a06850de8546c9ff3ed0a70632b4a8c1fd33241a7a4f1e0bcfd833","import_time":"2026-05-26T05:51:43.702686622Z","id":"IN-MAL-2026-003994","modified_time":"2026-05-21T18:49:36Z","versions":["3.1.2"]},{"source":"amazon-inspector","sha256":"c0967fda3b36c7b5368755bf2fee6fe726c94f4e8f5f6d1d7e3507b69ebfd018","import_time":"2026-05-26T05:51:23.311017184Z","id":"IN-MAL-2026-003822","modified_time":"2026-05-21T13:44:47Z","versions":["2.0.3"]},{"source":"amazon-inspector","sha256":"d03018d126298173652e07307c1f3c92eefa7b6932ba3468d76d3505c6aa9813","import_time":"2026-05-26T05:51:50.389779749Z","id":"IN-MAL-2026-004048","modified_time":"2026-05-21T22:32:34Z","versions":["3.1.6"]},{"source":"amazon-inspector","sha256":"dccbfb4cd365c723c01ae35f9e037d43e3236846b7807a54b65fbb9a4ae8f93f","import_time":"2026-05-26T05:51:53.3999058Z","id":"IN-MAL-2026-004076","modified_time":"2026-05-21T23:00:38Z","versions":["3.1.8"]},{"source":"amazon-inspector","sha256":"571445c5acacfd83a8e3d075051e038d6666ccb35b4f793fa9a7e462340ec536","import_time":"2026-05-26T05:51:10.846547513Z","id":"IN-MAL-2026-003720","modified_time":"2026-05-21T04:31:43Z","versions":["2.0.2"]},{"source":"amazon-inspector","sha256":"8bef0d99c836a9d8e620670103c58c78db58e51d417fe52513bad85264792a19","import_time":"2026-05-26T05:51:37.061586596Z","id":"IN-MAL-2026-003935","modified_time":"2026-05-21T17:23:29Z","versions":["3.0.3"]},{"source":"amazon-inspector","sha256":"9fc8922d5c9b81e30c5a39baa284f33a7bfd4dd2d9e94eb924b6535cb96c44d4","import_time":"2026-05-26T05:51:31.569052611Z","id":"IN-MAL-2026-003891","modified_time":"2026-05-21T16:19:25Z","versions":["3.0.1"]},{"source":"amazon-inspector","sha256":"12f958d9eb57c9408dc3e3dbbfd4c0811afe5b05ce12f58399b83cef37fd3b46","import_time":"2026-05-26T05:51:23.417567992Z","id":"IN-MAL-2026-003823","modified_time":"2026-05-21T13:44:47Z","versions":["2.0.3"]},{"source":"amazon-inspector","sha256":"1bab42de6e4fabfcab5a096f1c6bc7c5da9f3f92d148175e5543a6d90927397f","import_time":"2026-05-26T05:51:26.159500278Z","id":"IN-MAL-2026-003846","modified_time":"2026-05-21T14:08:21Z","versions":["3.0.0"]}]}}

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