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”).
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.
-= Per source details. Do not edit below this line.=-
Package 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 childprocess, 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 childprocess+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.
Any 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.
{
"malicious-packages-origins": [
{
"sha256": "f1e8d672afd83598fe070320004541498496f2743dc8a39d648e0b906278013e",
"import_time": "2026-05-22T03:24:54.637508002Z",
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"modified_time": "2026-05-22T02:43:01Z",
"source": "ghsa-malware",
"id": "GHSA-9vgj-5wvq-cwp6"
},
{
"sha256": "62e1ffc54100a3e400bf1b1b5bac603690d08770a1504d33a33c75fae4ca046c",
"import_time": "2026-05-26T05:51:42.155133496Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T18:18:30Z",
"versions": [
"3.1.1"
],
"id": "IN-MAL-2026-003981"
},
{
"sha256": "71e97d9fddad0c3bebcc747af6cafa0ddd21832677f9963d1803be4d2c488c31",
"import_time": "2026-05-26T05:51:26.039360677Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T14:08:19Z",
"versions": [
"3.0.0"
],
"id": "IN-MAL-2026-003845"
},
{
"sha256": "a0c39f6bb735ce82eda605cb1f5e68918dea2f0ba28998341ef218541b408e6b",
"import_time": "2026-05-26T05:51:51.769477294Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T22:49:22Z",
"versions": [
"3.1.7"
],
"id": "IN-MAL-2026-004061"
},
{
"sha256": "acb25e34f23d21bdc098f8c25828d689c744ddcbe92cf01633be95c241645819",
"id": "IN-MAL-2026-003993",
"source": "amazon-inspector",
"modified_time": "2026-05-21T18:49:35Z",
"versions": [
"3.1.2"
],
"import_time": "2026-05-26T05:51:43.605269617Z"
},
{
"sha256": "fdf7730d80e017946969a3ecc74b725d8149bee13d811eba13793511f9f099b7",
"import_time": "2026-05-26T05:51:41.703310588Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T18:18:28Z",
"versions": [
"3.1.0"
],
"id": "IN-MAL-2026-003977"
},
{
"sha256": "feeb8b20e32cdcb7376a740d58fa16a88a017205c6e37e22ca825afda6fefcc0",
"import_time": "2026-05-26T05:51:36.965119091Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T17:23:28Z",
"versions": [
"3.0.3"
],
"id": "IN-MAL-2026-003934"
},
{
"sha256": "2d4c49b877eb710337b541355fbef4fe2b2aee3aa29767c311a30f8a42087364",
"import_time": "2026-05-26T05:51:31.464935555Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T16:19:24Z",
"versions": [
"3.0.1"
],
"id": "IN-MAL-2026-003890"
},
{
"sha256": "41020cff8fb847f4df0986fd502ad68b66f0eaff22add3dce4b3040dc760d3af",
"import_time": "2026-05-26T05:51:34.337602322Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T16:41:00Z",
"versions": [
"3.0.2"
],
"id": "IN-MAL-2026-003911"
},
{
"sha256": "50bad278873fed93c75d90a1fc3a2ae25e41c5e9c6012a2859eb53595ca42287",
"import_time": "2026-05-26T05:51:10.737931757Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T04:31:42Z",
"versions": [
"2.0.2"
],
"id": "IN-MAL-2026-003719"
},
{
"sha256": "860095d96c5af01bd44465a5a25b5e5aff0fa2866538e4ff175c8f0f8a74d5af",
"import_time": "2026-05-26T05:51:41.912298308Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T18:18:29Z",
"versions": [
"3.1.0"
],
"id": "IN-MAL-2026-003979"
},
{
"sha256": "89d532468dc77b379200a8b5432ace7d361832aad726a184c2052cd70910f450",
"id": "IN-MAL-2026-003980",
"source": "amazon-inspector",
"modified_time": "2026-05-21T18:18:29Z",
"versions": [
"3.1.1"
],
"import_time": "2026-05-26T05:51:42.034609184Z"
},
{
"sha256": "9b39d35b90259b2d3875f044b01492edc2459676c7e067d6fd89d0d650845d8e",
"import_time": "2026-05-26T05:51:54.097118162Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T23:12:25Z",
"versions": [
"3.1.9"
],
"id": "IN-MAL-2026-004082"
},
{
"sha256": "0915fa25fc7e78c33546453787e2cb27755f80e3fce3cbd5410e82af446f4265",
"import_time": "2026-05-26T05:51:34.207605873Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T16:41:00Z",
"versions": [
"3.0.2"
],
"id": "IN-MAL-2026-003910"
},
{
"sha256": "3193f5f3842d4e362d37bede52fec0ed16abefd8434988a23b14822035e81b9b",
"import_time": "2026-05-26T05:51:08.712510539Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T02:53:45Z",
"versions": [
"2.0.1"
],
"id": "IN-MAL-2026-003704"
},
{
"sha256": "8f1b1f0d15a06850de8546c9ff3ed0a70632b4a8c1fd33241a7a4f1e0bcfd833",
"id": "IN-MAL-2026-003994",
"source": "amazon-inspector",
"modified_time": "2026-05-21T18:49:36Z",
"versions": [
"3.1.2"
],
"import_time": "2026-05-26T05:51:43.702686622Z"
},
{
"sha256": "c0967fda3b36c7b5368755bf2fee6fe726c94f4e8f5f6d1d7e3507b69ebfd018",
"id": "IN-MAL-2026-003822",
"source": "amazon-inspector",
"modified_time": "2026-05-21T13:44:47Z",
"versions": [
"2.0.3"
],
"import_time": "2026-05-26T05:51:23.311017184Z"
},
{
"sha256": "d03018d126298173652e07307c1f3c92eefa7b6932ba3468d76d3505c6aa9813",
"import_time": "2026-05-26T05:51:50.389779749Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T22:32:34Z",
"versions": [
"3.1.6"
],
"id": "IN-MAL-2026-004048"
},
{
"sha256": "dccbfb4cd365c723c01ae35f9e037d43e3236846b7807a54b65fbb9a4ae8f93f",
"import_time": "2026-05-26T05:51:53.3999058Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T23:00:38Z",
"versions": [
"3.1.8"
],
"id": "IN-MAL-2026-004076"
},
{
"sha256": "571445c5acacfd83a8e3d075051e038d6666ccb35b4f793fa9a7e462340ec536",
"import_time": "2026-05-26T05:51:10.846547513Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T04:31:43Z",
"versions": [
"2.0.2"
],
"id": "IN-MAL-2026-003720"
},
{
"sha256": "8bef0d99c836a9d8e620670103c58c78db58e51d417fe52513bad85264792a19",
"import_time": "2026-05-26T05:51:37.061586596Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T17:23:29Z",
"versions": [
"3.0.3"
],
"id": "IN-MAL-2026-003935"
},
{
"sha256": "9fc8922d5c9b81e30c5a39baa284f33a7bfd4dd2d9e94eb924b6535cb96c44d4",
"import_time": "2026-05-26T05:51:31.569052611Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T16:19:25Z",
"versions": [
"3.0.1"
],
"id": "IN-MAL-2026-003891"
},
{
"sha256": "12f958d9eb57c9408dc3e3dbbfd4c0811afe5b05ce12f58399b83cef37fd3b46",
"id": "IN-MAL-2026-003823",
"source": "amazon-inspector",
"modified_time": "2026-05-21T13:44:47Z",
"versions": [
"2.0.3"
],
"import_time": "2026-05-26T05:51:23.417567992Z"
},
{
"sha256": "1bab42de6e4fabfcab5a096f1c6bc7c5da9f3f92d148175e5543a6d90927397f",
"import_time": "2026-05-26T05:51:26.159500278Z",
"source": "amazon-inspector",
"modified_time": "2026-05-21T14:08:21Z",
"versions": [
"3.0.0"
],
"id": "IN-MAL-2026-003846"
}
]
}"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/crypto-credential-scanner/MAL-2026-4203.json"
[
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
}
]
{
"domains": [
"ddjidd564.github.io"
],
"evidence_files": [
{
"sha256": "bd290adf2688d8b7fb65b63a7d08dbf59b500338c297259a9cbe146c8852d52f",
"tlsh": "b63166e299e8d9b703cd04defa734205ea16a943fa407c84f36d044f5b9c4179a7996c",
"path": "package.json"
},
{
"sha256": "933c65d178c376e61fc4eb47e4b4f45bd36b7532ce0cf4e89db9ee5abf17d0cc",
"tlsh": "e312f79b26f9606083c3e1e58a87d025663bf6523546dfd0b74ca238af5183853e3bdc",
"path": "scanner.js"
}
],
"package_integrity": [
{
"filename": "crypto-credential-scanner-3.0.0.tgz",
"hashes": {
"sha1": "83918609edb0f4f0b2dec838321f493fcd795e67",
"sha512_sri": "sha512-0HRkvQGBFtIHW4BwETcINT0QNjsCjkPHDxx60VLg/PKuMPiKi52dwBciIvITPYYjXF9OFjdtGz9i7ELVe2wnww=="
}
}
]
}