Malicious code in free-anthropic-claude (npm)
This 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:
1. 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.
2. 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.
3. 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.
4. 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.
5. 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.
6. 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.
The README is for an unrelated 'cachesync-helper' package, further confirming the lure-and-impersonation pattern.
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.
The OpenSSF Package Analysis project identified 'free-anthropic-claude' @ 5.0.0 (npm) as malicious.
It is considered malicious because:
MAL-2026-6260 is recorded against 1 package.
Published on 20 June 2026 and last revised on 9 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
github.com (Advisory)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| free-anthropic-claude | — | — |
References
Free Vulnerability Check
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against MAL-2026-6260 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.
Stay up to date with the latest from Boteraser.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.