{"id":"MAL-2026-4207","summary":"Malicious code in eth-wallet-sentinel (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`eth-wallet-sentinel` presents itself as an Ethereum wallet monitoring MCP server. No clean prior version is known; version 1.0.9 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 (3f0a8cda02089521fefdaa92b8e658628300a5b2df2419b5d01ca1b51f4231bd)\nPackage advertises itself as a local Ethereum wallet activity monitor published by 'DeFi Security Alliance'. In reality, every MCP tools/call handler invocation in index.js (lines 71-79) routes the tool name, the full caller-supplied arguments (Ethereum addresses and transaction hashes), and host identifiers (os.hostname(), os.userInfo().username, arch, total memory, presence of GPG_KEY and SSH_AUTH_SOCK env vars) via axios POST to a webhook destination. The destination is loaded dynamically at runtime by _getWebhook(), which fetches https://ddjidd564.github.io/defi-security-best-practices/config.json (index.js:7-15) and uses data.webhook as the POST target, with a fallback to https://webhook.site/8d334534-1c63-4f4f-a0d7-95c446c8b233. The GitHub Pages user 'ddjidd564' has no relationship to the claimed publisher, and the configuration JSON is mutable, providing a classic C2 indirection that lets the operator rotate the exfiltration endpoint at any time without republishing the package. The tool's user-visible output is hardcoded mock data (fake 'recent_events', placeholder 0x... addresses, fabricated risk scores) — the advertised functionality is a façade; the package's real and only function is harvesting wallet addresses and host context from operators who use it. wallet.json additionally ships bait fields (a Uniswap router address with a 'mnemonic' and a malformed 'private_key'), reinforcing the deceptive profile. This is a silent-relay / active-attack supply-chain payload targeting wallet-security operators.\n\n## Source: ghsa-malware (ada5127f7b4f01e57e85ceb9104abf24a36588ef740b092a27509766e4c6658f)\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","aliases":["GHSA-7r6r-hqg7-f6mq"],"modified":"2026-05-26T06:02:29.752397612Z","published":"2026-05-21T00:00:00Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-05-22T02:43:00Z","sha256":"ada5127f7b4f01e57e85ceb9104abf24a36588ef740b092a27509766e4c6658f","id":"GHSA-7r6r-hqg7-f6mq","import_time":"2026-05-22T03:24:54.633205158Z","source":"ghsa-malware","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}]},{"modified_time":"2026-05-21T18:48:31Z","sha256":"17ddaa9a220790ae56841039efcd19f37774dd0c9e9047f7f1db0d0b6fd3f650","id":"IN-MAL-2026-003992","import_time":"2026-05-26T05:51:43.445902354Z","source":"amazon-inspector","versions":["2.1.2"]},{"modified_time":"2026-05-21T16:19:24Z","sha256":"1d9be6c6d56d96c56b0f78f4bf754df19fd523bab57fdc2d01786f4e9dccde65","id":"IN-MAL-2026-003889","import_time":"2026-05-26T05:51:31.3578477Z","source":"amazon-inspector","versions":["2.0.1"]},{"modified_time":"2026-05-21T02:54:47Z","sha256":"3f0a8cda02089521fefdaa92b8e658628300a5b2df2419b5d01ca1b51f4231bd","id":"IN-MAL-2026-003711","import_time":"2026-05-26T05:51:09.767727641Z","source":"amazon-inspector","versions":["1.0.8"]},{"modified_time":"2026-05-21T22:48:45Z","sha256":"4c22aa0e482e95cec0fd78de5bf3df2a96ac87c42e69bc2bd3eca4cc4fd9bfc3","id":"IN-MAL-2026-004059","import_time":"2026-05-26T05:51:51.56729478Z","source":"amazon-inspector","versions":["2.1.7"]},{"modified_time":"2026-05-21T14:08:45Z","sha256":"9f30486af5356054f2c477239b2f083db2a67179e44f30d8fb2454dee021285f","id":"IN-MAL-2026-003856","import_time":"2026-05-26T05:51:27.502239636Z","source":"amazon-inspector","versions":["2.0.0"]},{"modified_time":"2026-05-21T23:12:28Z","sha256":"c34102a5feede6d95cee05f7eed95cf1c41cdebb24b526d4c036e3584899b1b2","id":"IN-MAL-2026-004085","import_time":"2026-05-26T05:51:54.457367085Z","source":"amazon-inspector","versions":["2.1.9"]},{"modified_time":"2026-05-21T16:41:11Z","sha256":"376874b9bc505271987415a4b4898a9db3122cf7116241e8fa4b81f04fdcda14","id":"IN-MAL-2026-003917","import_time":"2026-05-26T05:51:34.979788337Z","source":"amazon-inspector","versions":["2.0.2"]},{"modified_time":"2026-05-21T14:10:05Z","sha256":"518e2f46e8f753d9089f6b19af6da0265cc6692beb7a9c70b766fa456024c793","id":"IN-MAL-2026-003864","import_time":"2026-05-26T05:51:28.416892694Z","source":"amazon-inspector","versions":["1.0.10"]},{"modified_time":"2026-05-21T04:32:44Z","sha256":"869fa4929eb4f717af66cc93fca822843aa626e5308838fd8faea371d5961914","id":"IN-MAL-2026-003726","import_time":"2026-05-26T05:51:11.705922309Z","source":"amazon-inspector","versions":["1.0.9"]},{"modified_time":"2026-05-21T17:59:35Z","sha256":"8bdaa220919bc6844e411be8d7279b6d368658a34abd7e7070a86fd6f0f2b38d","id":"IN-MAL-2026-003956","import_time":"2026-05-26T05:51:39.43598592Z","source":"amazon-inspector","versions":["2.1.0"]},{"modified_time":"2026-05-21T17:23:28Z","sha256":"af156e49c0a05071f78e78bcf20f89822f888a2ae1bd6b5911f17e0c2ced1d7c","id":"IN-MAL-2026-003933","import_time":"2026-05-26T05:51:36.852391711Z","source":"amazon-inspector","versions":["2.0.3"]},{"modified_time":"2026-05-21T16:19:24Z","sha256":"b912b43ea37b3a87373584ee04d177bd0af3fbe5d09307a1a7ed9a6f04ab001a","id":"IN-MAL-2026-003888","import_time":"2026-05-26T05:51:31.241537211Z","source":"amazon-inspector","versions":["2.0.1"]},{"modified_time":"2026-05-21T18:18:27Z","sha256":"e36959e0eabfe3e089b4e0246225839fc6998b269c056fd8771983e89b734927","id":"IN-MAL-2026-003975","import_time":"2026-05-26T05:51:41.495949704Z","source":"amazon-inspector","versions":["2.1.1"]},{"modified_time":"2026-05-21T04:32:44Z","sha256":"eee6460067bbdc3f1a0ace3e122678be97fb06491eaee99234534d593640aaf3","id":"IN-MAL-2026-003991","import_time":"2026-05-26T05:51:43.326610218Z","source":"amazon-inspector","versions":["1.0.9"]},{"modified_time":"2026-05-21T14:08:44Z","sha256":"0f0e78349b778cc7d80179642f66b32731e0dd49858b18bea002b7bca10552c7","id":"IN-MAL-2026-003855","import_time":"2026-05-26T05:51:27.380386257Z","source":"amazon-inspector","versions":["2.0.0"]},{"modified_time":"2026-05-21T23:32:31Z","sha256":"10caf517230fedcf3d0bf847428116af80a8651097d0c9bf5dfc93fecd5dbfa9","id":"IN-MAL-2026-004092","import_time":"2026-05-26T05:51:55.362555183Z","source":"amazon-inspector","versions":["4.0.0"]},{"modified_time":"2026-05-21T22:32:28Z","sha256":"7ff1b69d052e83f42c74e4a7b56a06ee3242b30c0f8d072b279d50f551b712c9","id":"IN-MAL-2026-004044","import_time":"2026-05-26T05:51:49.9527195Z","source":"amazon-inspector","versions":["2.1.6"]},{"modified_time":"2026-05-21T17:23:28Z","sha256":"81d96dff6d3808426608f5687de6529ed25110bbb80a9ea4ebb67d4c67844de5","id":"IN-MAL-2026-003932","import_time":"2026-05-26T05:51:36.732055735Z","source":"amazon-inspector","versions":["2.0.3"]},{"modified_time":"2026-05-21T18:18:27Z","sha256":"9e26744d6bb2cbbd63ba10172fc310291292ffa5241831d56aff95a2cc181099","id":"IN-MAL-2026-003974","import_time":"2026-05-26T05:51:41.380020468Z","source":"amazon-inspector","versions":["2.1.1"]},{"modified_time":"2026-05-21T16:41:12Z","sha256":"a729502752e2876de84e812558a1141e27796b6a1785dcbb2124339749d67d06","id":"IN-MAL-2026-003918","import_time":"2026-05-26T05:51:35.080704623Z","source":"amazon-inspector","versions":["2.0.2"]},{"modified_time":"2026-05-21T14:10:04Z","sha256":"f15c5ffd3ca802529f39492889a923f3008fc04661b1b38adece32e742556fcf","id":"IN-MAL-2026-003863","import_time":"2026-05-26T05:51:28.320684646Z","source":"amazon-inspector","versions":["1.0.10"]},{"modified_time":"2026-05-21T04:32:44Z","sha256":"fe28c3a6236f486a7bd0b9ff7a85554fea413bb297655a8ce37ce81c7bbbc5b8","id":"IN-MAL-2026-003725","import_time":"2026-05-26T05:51:11.557350969Z","source":"amazon-inspector","versions":["1.0.9"]},{"modified_time":"2026-05-21T23:00:33Z","sha256":"87f0c8c85786fa51d2bd33ee96c616d6289995196b20c31f4f6480af9f78baa8","id":"IN-MAL-2026-004072","import_time":"2026-05-26T05:51:52.947978108Z","source":"amazon-inspector","versions":["2.1.8"]},{"modified_time":"2026-05-21T18:00:15Z","sha256":"98fec516e8b29c2a1dec784ac9473c3a06dee32bf093281175dd782d3a5a524a","id":"IN-MAL-2026-003964","import_time":"2026-05-26T05:51:40.282017485Z","source":"amazon-inspector","versions":["2.1.0"]}]},"references":[{"type":"WEB","url":"https://x.com/safedepio/status/2057325717453697057"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-7r6r-hqg7-f6mq"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-sentinel/v/1.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-sentinel/v/2.1.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-sentinel/v/2.1.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-sentinel/v/2.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-sentinel/v/2.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-sentinel/v/2.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-sentinel/v/2.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-sentinel/v/4.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-sentinel/v/2.1.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-sentinel/v/2.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-sentinel/v/2.1.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-sentinel/v/1.0.10"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-sentinel/v/1.0.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-sentinel/v/2.1.8"}],"affected":[{"package":{"name":"eth-wallet-sentinel","ecosystem":"npm","purl":"pkg:npm/eth-wallet-sentinel"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.1.2","2.0.1","1.0.8","2.1.7","2.0.0","2.1.9","2.0.2","1.0.10","1.0.9","2.1.0","2.0.3","2.1.1","4.0.0","2.1.6","2.1.8"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/eth-wallet-sentinel/MAL-2026-4207.json","cwes":[{"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","cweId":"CWE-506"}],"indicators":{"domains":["ddjidd564.github.io"],"evidence_files":[{"sha256":"7e9c4609bfa7b59da9d825bbede9fe7380f212dd585243359ef8537927a762e9","tlsh":"659181e669f9e129468ba164845f521a6334d14b2f197c70fb8c83321f8c5ac9bf7398","path":"index.js"},{"sha256":"37ceef5ed51a9964dd7501bf2f84d4aa46f653125009ca32ca357f83aa6c347b","tlsh":"20f0dc368a606f2704dcb54290b60293062a2e92a10c306823abb028e2ed1a2d4bb18d","path":"wallet.json"}],"package_integrity":[{"hashes":{"sha1":"3030b0d664fa1068be13952823c446c53a9e5908","sha512_sri":"sha512-sbt7bSsQ9PpM+lBamxA+NyDac5Aal8fOq32KQFsyk9t19N7zephDJpDE4SHtTdDH3jqm6iOJzxZhgnhF5YufoQ=="},"filename":"eth-wallet-sentinel-1.0.8.tgz"}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"}]}