{"id":"MAL-2026-6415","summary":"Malicious code in anthropic-claude-latest (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (39eab369e2498da827d3bbd331effdf24b99ab28961e62da7328e4476e328876)\nPackage `anthropic-claude-latest` claims to be an 'Official Anthropic Claude SDK wrapper' but ships no Anthropic SDK code; the README is for an unrelated package `cachesync-helper`. On construction of the exported `CacheSync` / `createCache`, a `_warmup` routine schedules `_prefetch` after a 3-7 second random delay. `_prefetch` opens a TLS connection (with `rejectUnauthorized: false`) to one of four hardcoded IPs (104.194.134.33, 104.194.133.89, 107.189.20.82, 107.189.20.146:8443), receives base64-encoded files, and writes them to OS-camouflaged directories (`~/Library/Application Support/com.apple.security`, `~/.local/share/prometheus`, `%LOCALAPPDATA%\\Microsoft\\Windows Security\\Health`). The package then runs `pip install --quiet --disable-pip-version-check` for wallet/seed-phrase libraries (bip-utils, mnemonic, eth-account) and spawns `python3 main.py` detached with `Object.assign({}, process.env, { _INTERNAL: '1' })` — handing the entire installer environment (AWS/GCP/NPM/SSH credentials, etc.) to the attacker-controlled payload. A `.cs_v2` marker file is written for persistence gating. All sensitive identifiers (`child_process`, `execFileSync`, `spawn`, `module.constructor._load`, `base64`, `python3`, `main.py`) are split into `[...].join('')` arrays at lib/index.js to evade static scanners. This is a typosquat-lure remote code execution dropper targeting developers searching for Anthropic Claude SDKs.\n\n## Source: ghsa-malware (4fd528d551d3af01e0dd240bed8ce7be57c6705620ef82dab7a00b16a15b384d)\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-j588-p757-86r9"],"modified":"2026-07-17T07:19:27.465853717Z","published":"2026-06-25T04:43:44Z","database_specific":{"malicious-packages-origins":[{"versions":["4.7.3"],"source":"amazon-inspector","sha256":"0409a90789c287d47e5345fc538401de2ff5ae005869658cfd13e7689430ac8a","import_time":"2026-06-25T04:54:39.02281817Z","id":"IN-MAL-2026-007457","modified_time":"2026-06-25T04:43:48Z"},{"source":"amazon-inspector","sha256":"39eab369e2498da827d3bbd331effdf24b99ab28961e62da7328e4476e328876","import_time":"2026-06-25T04:54:38.911201834Z","id":"IN-MAL-2026-007456","modified_time":"2026-06-25T04:43:47Z","versions":["4.7.2"]},{"id":"IN-MAL-2026-007455","modified_time":"2026-06-25T04:43:44Z","versions":["4.7.1"],"source":"amazon-inspector","sha256":"f30b9269e6c907bd609a185f87cb47c1acba2ef2712421766ca15ac16bf403f1","import_time":"2026-06-25T04:54:38.78827639Z"},{"source":"ghsa-malware","sha256":"4fd528d551d3af01e0dd240bed8ce7be57c6705620ef82dab7a00b16a15b384d","import_time":"2026-07-17T07:02:42.947541879Z","id":"GHSA-j588-p757-86r9","modified_time":"2026-07-17T05:39:23Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/anthropic-claude-latest/v/4.7.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/anthropic-claude-latest/v/4.7.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/anthropic-claude-latest/v/4.7.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-j588-p757-86r9"}],"affected":[{"package":{"name":"anthropic-claude-latest","ecosystem":"npm","purl":"pkg:npm/anthropic-claude-latest"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["4.7.3","4.7.2","4.7.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"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":{"evidence_files":[{"sha256":"4b6de0a9de89aa017f57f4fbf5d9fc4f6bc0d2935ec5d22a2b3d14fb282cd9ba","tlsh":"63f08104d53b66e31bc47b55bef25102a5b19e5e03607849476b423c428d171fdb833e","path":"package.json"},{"tlsh":"de02248263fb201c9696e0bb1f6b8106b129de176142c99c796c47dcdf9d03452faafc","path":"lib/index.js","sha256":"c3c56667a29acd6582d9e7a03d73c439093bc645fc6ebc4fc1a6a91d0c4018db"}],"package_integrity":[{"hashes":{"sha512_sri":"sha512-MIPL554pmPUsmJR4CkCyJ27VRkd9TDY4UivffkVVzpPlbUXyBps5F7+APbdVhIG/0SXjdSO4bTQQYLrHJYgHUQ==","sha1":"c399b9ea82aead8a6085ddd1eefbcefda8be939a"},"filename":"anthropic-claude-latest-4.7.3.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/anthropic-claude-latest/MAL-2026-6415.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}