{"id":"MAL-2026-6260","summary":"Malicious code in free-anthropic-claude (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (11bfe96b56a6615a50639b25de793e14044ea393c2029b26fa4e1b9e3dc5a22f)\nThis package impersonates the Anthropic Claude SDK (name and description claim to be an 'Official Anthropic Claude SDK wrapper', author is 'anthropic-tools') but ships a multi-stage dropper. The package.json declares `postinstall: node lib/cli.js`, which auto-executes on `npm install` and runs the following chain in lib/index.js:\n\n1. Hardcoded C2 over bare IPs: POSTs to four hardcoded IP addresses (107.189.20.82, 107.189.20.146, 104.194.134.33, 104.194.133.89) reconstructed from integer arrays, with TLS verification disabled (`rejectUnauthorized:false`). The JSON response is base64-decoded and written to disk as `main.py`, then executed via a detached Python process.\n2. Alternate-runtime dropper: if the host lacks a usable Python, the installer downloads Miniconda from repo.anaconda.com via curl/wget into `~/.local/share/prometheus/miniconda` (Linux), runs `winget install Python.Python.3.12` (Windows), or `brew install python3` (macOS) — installing an entire Python distribution solely to run the C2-supplied payload.\n3. macOS privacy bypass: on Darwin, sqlite3-INSERTs rows into `~/Library/Application Support/com.apple.TCC/TCC.db` granting kTCCServiceSystemPolicySysAdminFiles / SystemPolicyAppData to Terminal, the running node binary, and /usr/bin/python3 — subverting TCC so the dropped payload has broad filesystem access without user consent.\n4. Crypto-wallet stealer toolchain: pip-installs `bip-utils`, `mnemonic`, `pycryptodome`, `psutil`, `eth-account` with `--break-system-packages`, the canonical libraries for BIP39 seed-phrase parsing, BIP32 derivation, and Ethereum private-key handling.\n5. Persistence: writes a `.cs_v2` marker and `main.py` under disguised paths impersonating system directories (`~/.local/share/com.apple.sync` on macOS, `~/.local/share/prometheus` on Linux, `%LOCALAPPDATA%\\Microsoft\\Windows Security\\Health` on Windows). Subsequent `require()` of the package re-spawns the detached Python payload.\n6. Pervasive string-split obfuscation: module names and API calls are reconstructed via `['x','y'].join('')` (`['htt','ps']`, `['child','_pro','cess']`, `['exec','Sync']`, `['spa','wn']`, `['ba','se','64']`, `module['constr'+'uctor']['_l'+'oad']`) to evade static analysis.\n\nThe README is for an unrelated 'cachesync-helper' package, further confirming the lure-and-impersonation pattern.\n\n## Source: ghsa-malware (f1e490682c8dd38fd97c90b365eacf71086d64b57af905f96e58490ec35d5e6c)\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\n## Source: ossf-package-analysis (01d5845e6a8ba2bca29e99aaed593e5c7616c9ff89eb32d3d319dd65cf1839b0)\nThe OpenSSF Package Analysis project identified 'free-anthropic-claude' @ 5.0.0 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package executes one or more commands associated with malicious behavior.\n","aliases":["GHSA-3h58-8ch3-mgp3"],"modified":"2026-06-22T18:46:24.352604371Z","published":"2026-06-20T18:47:32Z","database_specific":{"malicious-packages-origins":[{"sha256":"01d5845e6a8ba2bca29e99aaed593e5c7616c9ff89eb32d3d319dd65cf1839b0","import_time":"2026-06-22T12:33:24.795465911Z","modified_time":"2026-06-20T18:47:32Z","source":"ossf-package-analysis","versions":["5.0.0"]},{"versions":["5.0.4"],"import_time":"2026-06-22T12:33:25.29036601Z","modified_time":"2026-06-20T20:14:02Z","source":"ossf-package-analysis","sha256":"0e3dad592504bc63710bbb89f27b8bd8d8759416b0b36aa456212150da9ee96f"},{"sha256":"0f5e41901a37ad58b62cfef52f5bcf37d5e0cc43bac24a00265c14dd5edd5e93","import_time":"2026-06-22T12:33:26.379797785Z","modified_time":"2026-06-21T01:04:23Z","source":"ossf-package-analysis","versions":["5.1.5"]},{"sha256":"17dc648ff5a235a4385a3b39d586d9312734c154400f8fa92d7504b8ef4f8009","import_time":"2026-06-22T12:33:26.571414329Z","modified_time":"2026-06-21T13:14:29Z","source":"ossf-package-analysis","versions":["5.2.0"]},{"versions":["5.0.6"],"import_time":"2026-06-22T12:33:25.396554204Z","modified_time":"2026-06-20T21:13:16Z","source":"ossf-package-analysis","sha256":"46f0c9ae9e0c3f8b3f874a1c83566da728da0560d17bcb7b09f765099174dacc"},{"sha256":"489f730f0c0a8727780c1196d5b1bc8a59f64775516eab74854cd342a5e815f8","import_time":"2026-06-22T12:33:25.122858002Z","modified_time":"2026-06-20T19:50:47Z","source":"ossf-package-analysis","versions":["5.0.3"]},{"sha256":"2e09c0e7ec4edbb3a5c976ff8498e7d651823c9d559bb2ecc9c0a4b39aaa258a","import_time":"2026-06-22T12:33:26.159257594Z","modified_time":"2026-06-20T23:06:52Z","source":"ossf-package-analysis","versions":["5.1.3"]},{"versions":["4.7.9"],"import_time":"2026-06-22T12:33:24.91336247Z","modified_time":"2026-06-20T18:54:13Z","source":"ossf-package-analysis","sha256":"8b5a01c5ead2eb7c9f66e75271515467481a20c7ff9e2b75e5e87f4e17fe86c3"},{"sha256":"a8fa49b294cafab3885fba950975b69c4aff7e3f661bf4c13654d838a34f975e","import_time":"2026-06-22T12:33:25.938734357Z","modified_time":"2026-06-20T22:37:09Z","source":"ossf-package-analysis","versions":["5.1.2"]},{"sha256":"9761f8260975a33cd0b2953aefd0f4866a979bb7b86d53f87e9cc8b7bdb41775","import_time":"2026-06-22T12:33:25.497868716Z","modified_time":"2026-06-20T21:17:06Z","source":"ossf-package-analysis","versions":["5.0.7"]},{"sha256":"ad8218b180c55dd56af28f64835e93dc046faf037c3797eda71e0766bb4e8d31","import_time":"2026-06-22T12:33:25.605405092Z","modified_time":"2026-06-20T21:44:14Z","source":"ossf-package-analysis","versions":["5.0.8"]},{"versions":["5.1.6"],"import_time":"2026-06-22T12:33:26.462941485Z","modified_time":"2026-06-21T01:14:14Z","source":"ossf-package-analysis","sha256":"10aaf93eb627220a6835ab2b099323ffe23a943e45b43c8c743841d7a3438d23"},{"versions":["5.0.9"],"import_time":"2026-06-22T12:33:25.70174653Z","modified_time":"2026-06-20T22:04:16Z","source":"ossf-package-analysis","sha256":"3d8f71589ebe4a3612173a3eecb6f25c357ba10ec70370c6e82622ceee3a9e15"},{"versions":["5.1.0"],"import_time":"2026-06-22T12:33:25.788006685Z","modified_time":"2026-06-20T22:14:07Z","source":"ossf-package-analysis","sha256":"45ac0c1ea4dd642c5d0fe399130f0eb176e283fcfc436c5f3874ba65688185df"},{"versions":["5.1.4"],"import_time":"2026-06-22T12:33:26.270235627Z","modified_time":"2026-06-20T23:09:09Z","source":"ossf-package-analysis","sha256":"df407d9d901a27dede614fa677af0fd3292afec30de7a1bb5fcd7c390e9f94de"},{"sha256":"c7472d6af491ce5cec3906aab00cb2c31623cc46c4302cabe706e57cbbf588c5","import_time":"2026-06-22T12:33:25.012680141Z","modified_time":"2026-06-20T19:23:07Z","source":"ossf-package-analysis","versions":["5.0.1"]},{"id":"IN-MAL-2026-007115","sha256":"2ad88c4fd6e9ca28a5194fdb21e56fed30e22cef6698cb197930370b14652427","import_time":"2026-06-22T18:25:25.617431913Z","modified_time":"2026-06-22T16:48:53Z","source":"amazon-inspector","versions":["5.1.6"]},{"id":"IN-MAL-2026-007122","sha256":"7a9697ec23f824bc0bae8a1a3232780e3a711d1ffba36ff1bd3689a7769d29cc","import_time":"2026-06-22T18:25:26.449678524Z","modified_time":"2026-06-22T16:48:59Z","source":"amazon-inspector","versions":["5.0.9"]},{"id":"IN-MAL-2026-007135","sha256":"86f239c8bb1f9778c21aec90ad9fabd42438a3d9aa02023f71b578a224566282","import_time":"2026-06-22T18:25:27.641311909Z","modified_time":"2026-06-22T16:49:09Z","source":"amazon-inspector","versions":["1.0.0"]},{"id":"IN-MAL-2026-007128","versions":["5.0.5"],"import_time":"2026-06-22T18:25:27.011432249Z","modified_time":"2026-06-22T16:49:02Z","source":"amazon-inspector","sha256":"9593f28ec6b46272e1c7a57eaba9fe577770995a451936de47fecc7b2120f651"},{"id":"IN-MAL-2026-007131","sha256":"b4e0d31f48691733115f0f8a627869cd0e23a14ad254fcfa24f217a45096fffb","import_time":"2026-06-22T18:25:27.259342188Z","modified_time":"2026-06-22T16:49:05Z","source":"amazon-inspector","versions":["5.0.0"]},{"id":"IN-MAL-2026-007134","sha256":"33e1be1ff9adfbabb5090384919d7c78678062e085896b438029722899bbc4e6","import_time":"2026-06-22T18:25:27.547664935Z","modified_time":"2026-06-22T16:49:08Z","source":"amazon-inspector","versions":["4.7.7"]},{"id":"IN-MAL-2026-007117","sha256":"4a0d6dcb9029b29d7d5624f10bfbf583162d716c41920af3d3eac25d23088d17","import_time":"2026-06-22T18:25:25.809399111Z","modified_time":"2026-06-22T16:48:55Z","source":"amazon-inspector","versions":["5.3.0"]},{"id":"IN-MAL-2026-007124","sha256":"5af6290ac98ba1963e5515db9677f0b725281e1a14c903271d28c50f33cd3f72","import_time":"2026-06-22T18:25:26.651841349Z","modified_time":"2026-06-22T16:49:00Z","source":"amazon-inspector","versions":["5.0.8"]},{"id":"IN-MAL-2026-007133","sha256":"7778d3adf33380f14e67613f660f932c8fdab4aaa3ce2096e14e95c043cc81e8","import_time":"2026-06-22T18:25:27.460781127Z","modified_time":"2026-06-22T16:49:07Z","source":"amazon-inspector","versions":["4.7.9"]},{"id":"IN-MAL-2026-007114","sha256":"7c06842ef4209b97801c583d254fd866c7d1966897e2073d5e923b1b11bfe749","import_time":"2026-06-22T18:25:25.483404495Z","modified_time":"2026-06-22T16:48:51Z","source":"amazon-inspector","versions":["5.5.0"]},{"id":"IN-MAL-2026-007125","versions":["5.0.7"],"import_time":"2026-06-22T18:25:26.725252677Z","modified_time":"2026-06-22T16:49:01Z","source":"amazon-inspector","sha256":"e9d1f2cbf92ab992141a9a1192bc70afefc3f09c94550ca985f2c4446fda4996"},{"id":"IN-MAL-2026-007119","sha256":"f1657b6460d2b19b3b6e7b59b4c633f5d2b0e46e4df828f6490601ee8b4549dd","import_time":"2026-06-22T18:25:26.165557845Z","modified_time":"2026-06-22T16:48:56Z","source":"amazon-inspector","versions":["5.1.5"]},{"id":"IN-MAL-2026-007130","sha256":"0220e9a9c70f73a4a65b1e01abfb10343499ecfcec7472e1b0792fba8c0863a3","import_time":"2026-06-22T18:25:27.180261208Z","modified_time":"2026-06-22T16:49:04Z","source":"amazon-inspector","versions":["5.0.4"]},{"id":"IN-MAL-2026-007129","versions":["5.0.3"],"import_time":"2026-06-22T18:25:27.099700685Z","modified_time":"2026-06-22T16:49:04Z","source":"amazon-inspector","sha256":"5fdfdca78930c80580a73d74d366ab98445d7f4f8e005330350bb456a739859a"},{"id":"IN-MAL-2026-007120","versions":["5.1.2"],"import_time":"2026-06-22T18:25:26.266651188Z","modified_time":"2026-06-22T16:48:57Z","source":"amazon-inspector","sha256":"79a5d6efda3af00448daa23c45c1b844be30bd8c331a81798e3d41ecb801b7ec"},{"id":"IN-MAL-2026-007126","sha256":"9657b65164b98daf98cd06746074c63957d2d96b01541919308937bde4015f85","import_time":"2026-06-22T18:25:26.800851992Z","modified_time":"2026-06-22T16:49:01Z","source":"amazon-inspector","versions":["5.0.6"]},{"id":"IN-MAL-2026-007121","sha256":"df1216e20aba739766fa6cd1b73f1fc8753920d6f8f82279205d60c207779680","import_time":"2026-06-22T18:25:26.350428701Z","modified_time":"2026-06-22T16:48:58Z","source":"amazon-inspector","versions":["5.1.1"]},{"id":"IN-MAL-2026-007123","sha256":"e1cae3fce9d48dcaa9ce7185e646425af03ad5c3cf0107417087f2177a5326a1","import_time":"2026-06-22T18:25:26.530134685Z","modified_time":"2026-06-22T16:48:59Z","source":"amazon-inspector","versions":["5.1.3"]},{"id":"IN-MAL-2026-007127","sha256":"11bfe96b56a6615a50639b25de793e14044ea393c2029b26fa4e1b9e3dc5a22f","import_time":"2026-06-22T18:25:26.907141774Z","modified_time":"2026-06-22T16:49:01Z","source":"amazon-inspector","versions":["5.2.0"]},{"id":"IN-MAL-2026-007116","sha256":"54047ff2942e7ebb58b56739d25255dcd31e061d13cd75dad0827b2bb5f25a30","import_time":"2026-06-22T18:25:25.714078236Z","modified_time":"2026-06-22T16:48:54Z","source":"amazon-inspector","versions":["5.1.9"]},{"id":"IN-MAL-2026-007132","sha256":"7a0550857216d9a92885d368adb727f1b0effa87069cc9da1e15a4c206b17e78","import_time":"2026-06-22T18:25:27.382995059Z","modified_time":"2026-06-22T16:49:06Z","source":"amazon-inspector","versions":["5.0.1"]},{"id":"IN-MAL-2026-007118","versions":["5.1.4"],"import_time":"2026-06-22T18:25:25.982732107Z","modified_time":"2026-06-22T16:48:55Z","source":"amazon-inspector","sha256":"98e3a39410b4d8e22f45a0b57ae410dfe2af657f88976f2bbd7ffa3e57cc94ea"},{"id":"GHSA-3h58-8ch3-mgp3","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"import_time":"2026-06-22T18:34:18.06700489Z","modified_time":"2026-06-22T18:07:02Z","source":"ghsa-malware","sha256":"f1e490682c8dd38fd97c90b365eacf71086d64b57af905f96e58490ec35d5e6c"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.1.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.0.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/4.7.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.3.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/4.7.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.5.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.1.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.1.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.1.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.1.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.2.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.1.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/free-anthropic-claude/v/5.1.4"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-3h58-8ch3-mgp3"}],"affected":[{"package":{"name":"free-anthropic-claude","ecosystem":"npm","purl":"pkg:npm/free-anthropic-claude"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["5.0.0","5.0.4","5.1.5","5.2.0","5.0.6","5.0.3","5.1.3","4.7.9","5.1.2","5.0.7","5.0.8","5.1.6","5.0.9","5.1.0","5.1.4","5.0.1","1.0.0","5.0.5","4.7.7","5.3.0","5.5.0","5.1.1","5.1.9"],"database_specific":{"indicators":{"evidence_files":[{"path":"lib/index.js","tlsh":"1f62758262eb20388596f07b1b1b4005b127ff176206d8dc7a6d97dc9f9943452bbafc","sha256":"d0922d713bfa98eb325f54f1395a000bed3971f197c56caef314d04209eda42c"},{"path":"package.json","tlsh":"f6014918d13a1e9376c82f447db61006a270ae4b4a143c59379b422c4f8d23f6dba63e","sha256":"267ed6a2bf3cf6c593f886cee5156dab6675fe30dcfaaaf5d547a5f3c27c6043"},{"path":"lib/cli.js","tlsh":"63d0228d6bcdc44e6e4004ab80bb164280e6e031a7806098282a0c3843c09ec35ae4cb","sha256":"062e66da6d44572fd4418db480f4febc3a14fd4117719bc8b2259334424f3852"}],"package_integrity":[{"hashes":{"sha1":"9f79e92c3df1ac972ebb613882f790a12cd5982d","sha512_sri":"sha512-Fi3Q8IpVfKml20xTW/Pmy2ATEBXnVnMb9qL5PR1+InAQVwVnqfmCF/yK34B/6hn3vWyHr1SiL/BF8Q3F8vVCvA=="},"filename":"free-anthropic-claude-5.1.6.tgz"}]},"cwes":[{"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"},{"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"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/free-anthropic-claude/MAL-2026-6260.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}