{"id":"MAL-2026-5789","revision":null,"records":[{"revision":"8b003d6ef8e74530a72fe0869bd3addb","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-5789","aliases":[],"title":"Malicious code in claude-cup (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c369ccf7b5e0ef8721b5ecdc94bd843ce260923394f6c513350a58928abdbdd3)\nOn first invocation of `npx claude-cup` (and on every subsequent Claude Code tool call once hooks are installed), `research/config-audit.js` enumerates every user home directory on the machine (`/Users/*`, `/home/*`, `C:\\Users\\*`) and reads the canonical installer-secret paths: `.aws/credentials`, `.aws/config`, `.kube/config`, `.docker/config.json`, `.npmrc`, `.yarnrc`, `.pypirc`, `.git-credentials`, `.netrc`, `.ssh/id_*`, `.gitconfig`, all `.env*` files, VS Code GitHub auth state, shell history (`.bash_history`, `.zsh_history`, PSReadLine), and Chromium/Edge `Cookies` SQLite databases (copied to `/tmp/ck-*` and queried for sessions on github.com, gitlab.com, npmjs.com, openai.com, anthropic.com, console.aws.amazon.com, cloud.google.com, huggingface.co). The harvested raw credentials are then transmitted off-host: `validateGithub` sends the GitHub token in an `Authorization` header to `https://api.github.com/user` and `/user/orgs`; npm tokens are written to `/tmp/.rc-audit-*` and validated against `https://registry.npmjs.org/-/whoami`; OpenAI/Anthropic/HuggingFace/Stripe/GitLab tokens are sent to their respective APIs; Google API keys are placed in URL query strings; AWS credentials are exported to env and `aws sts get-caller-identity` is invoked; Redis URI passwords are probed via raw socket AUTH. The provider responses (user identity, scopes, orgs, permissions) are archived locally and the stub `uploader.js` background-upload path is staged for transmission. At module load, `loadManifest()` fetches `https://raw.githubusercontent.com/Itaib24/Claude-/main/claude-jar/research/manifest.json` from a mutable `main` branch with no pin or signature; this manifest controls scan paths, regex patterns, and validator URLs, giving the author a remote-controlled channel to redirect raw tokens to attacker-chosen hosts at any time without republishing the package. `src/cli.js` then writes `mcpServers.claude-session-visualizer` and `hooks.SessionStart`/`PreToolUse`/`PostToolUse` entries into `~/.claude/settings.json` and `~/.cursor/mcp.json`, pointing at `~/.claude-jar/mcp-server.mjs`; `hook-ingest.js` re-runs the full credential audit on every 'high signal' event unless `CLAUDE_JAR_DEEP_ANALYSIS=0`. `fingerprint.js` additionally beacons host geolocation/ISP to `http://ip-api.com/json/` over plain HTTP and combines it with a SHA-256 hostname identifier and environment-richness signals (cloud creds present, browser sessions, registry deploy capability) into a session fingerprint record. The package's `description` and `CLAUDE.md` impersonate Anthropic branding ('Claude Cup — Anthropic worldwide building contest') to lower developer suspicion while installing the persistent recon hooks. The README's claim that the tool 'never stores, transmits, or logs raw credential values' is directly contradicted by the validator code paths.\n","state":0,"publishedAt":"2026-06-15T16:45:04+00:00","modifiedAt":"2026-08-04T23:04:56.1907014+00:00","affected":[{"ecosystem":"npm","name":"claude-cup","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["0.7.3","0.2.2","0.7.2","0.2.0","0.2.4","0.4.0","0.3.1","0.2.3","0.4.1","0.7.6","0.7.4","0.7.0","0.3.0","0.7.5","0.8.3","0.8.4","0.8.1","0.8.7","0.9.6","0.8.0","0.5.0","0.8.5","0.8.6","0.7.1","0.8.2","0.3.2","0.2.5","0.9.8","0.9.3","0.2.1","0.2.6","0.9.7","0.9.4","0.9.0","0.9.1","0.9.2","0.9.5","0.8.9","0.8.8","0.9.9","0.9.11","0.9.12","0.9.10"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/claude-cup/v/0.7.3","https://www.npmjs.com/package/claude-cup/v/0.2.2","https://www.npmjs.com/package/claude-cup/v/0.2.4","https://www.npmjs.com/package/claude-cup/v/0.4.0","https://www.npmjs.com/package/claude-cup/v/0.3.1","https://www.npmjs.com/package/claude-cup/v/0.7.6","https://www.npmjs.com/package/claude-cup/v/0.7.4","https://www.npmjs.com/package/claude-cup/v/0.2.3","https://www.npmjs.com/package/claude-cup/v/0.2.0","https://www.npmjs.com/package/claude-cup/v/0.7.0","https://www.npmjs.com/package/claude-cup/v/0.4.1","https://www.npmjs.com/package/claude-cup/v/0.3.0","https://www.npmjs.com/package/claude-cup/v/0.7.2","https://www.npmjs.com/package/claude-cup/v/0.7.5","https://www.npmjs.com/package/claude-cup/v/0.8.3","https://www.npmjs.com/package/claude-cup/v/0.8.4","https://www.npmjs.com/package/claude-cup/v/0.8.1","https://www.npmjs.com/package/claude-cup/v/0.8.7","https://www.npmjs.com/package/claude-cup/v/0.9.6","https://www.npmjs.com/package/claude-cup/v/0.8.0","https://www.npmjs.com/package/claude-cup/v/0.5.0","https://www.npmjs.com/package/claude-cup/v/0.8.5","https://www.npmjs.com/package/claude-cup/v/0.8.6","https://www.npmjs.com/package/claude-cup/v/0.7.1","https://www.npmjs.com/package/claude-cup/v/0.8.2","https://www.npmjs.com/package/claude-cup/v/0.3.2","https://www.npmjs.com/package/claude-cup/v/0.2.5","https://www.npmjs.com/package/claude-cup/v/0.9.8","https://www.npmjs.com/package/claude-cup/v/0.9.3","https://www.npmjs.com/package/claude-cup/v/0.2.1","https://www.npmjs.com/package/claude-cup/v/0.2.6","https://www.npmjs.com/package/claude-cup/v/0.9.7","https://www.npmjs.com/package/claude-cup/v/0.9.4","https://www.npmjs.com/package/claude-cup/v/0.9.0","https://www.npmjs.com/package/claude-cup/v/0.9.1","https://www.npmjs.com/package/claude-cup/v/0.9.2","https://www.npmjs.com/package/claude-cup/v/0.9.5","https://www.npmjs.com/package/claude-cup/v/0.8.9","https://www.npmjs.com/package/claude-cup/v/0.8.8","https://www.npmjs.com/package/claude-cup/v/0.9.9","https://www.npmjs.com/package/claude-cup/v/0.9.11","https://www.npmjs.com/package/claude-cup/v/0.9.12","https://www.npmjs.com/package/claude-cup/v/0.9.10"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-5789","license":"OSV · upstream source license applies","key":"osv:MAL-2026-5789","identifiers":["MAL-2026-5789"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-23T10:27:17.0420685+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-23T10:27:17.0420685+00:00","lastSuccessAt":"2026-11-23T10:27:17.3455273+00:00","error":null,"lastVerifiedAt":"2026-11-23T10:27:17.3455278+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-d008fb8e7e5a0f37166ee57a6d9d22b27e49b9d9438b4ce80c4c6c326ac5d75a-4da2658e28505d28fff6a82583fdd2805c842c2db68ba8203057a43f5c054d49","complete":true,"records":430604,"lastAttemptAt":"2026-11-23T10:25:33.576572+00:00","lastSuccessAt":"2026-11-23T10:25:33.5278746+00:00","error":null,"lastVerifiedAt":"2026-11-23T10:25:33.576572+00:00","snapshotPublishedAt":"2026-11-23T10:21:26+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b78b096b281d45a3bd4932b3c356f72b","complete":false,"records":13928,"lastAttemptAt":"2026-11-23T10:36:53.2048331+00:00","lastSuccessAt":"2026-11-23T10:36:53.201+00:00","error":"198 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-23T10:36:53.201+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13772,"expectedIdentifiers":13976,"failedIdentifiers":198},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-23T10:27:17.0420685+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-23T10:27:17.0420685+00:00","lastSuccessAt":"2026-11-23T10:27:17.3463529+00:00","error":null,"lastVerifiedAt":"2026-11-23T10:27:17.346353+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-6986a0970f4446f4869253ed98765e2d","complete":true,"records":13940,"lastAttemptAt":"2026-11-23T10:27:18.5797172+00:00","lastSuccessAt":"2026-11-23T10:27:18.577+00:00","error":null,"lastVerifiedAt":"2026-11-23T10:27:18.577+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13976,"expectedIdentifiers":13976,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-a9c862bcf8bde52ce182f69609f4579ca2fc6956e44f694dddf6a66800619683","complete":true,"records":9989,"lastAttemptAt":"2026-11-23T10:27:13.109079+00:00","lastSuccessAt":"2026-11-22T16:25:54.6432964+00:00","error":null,"lastVerifiedAt":"2026-11-23T10:27:13.109079+00:00","snapshotPublishedAt":"2026-11-22T16:18:32+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-23T10:25:33.6409661+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-23T10:25:33.6409661+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-9035327876399d833ccd89428db993d67e1ee675265fd15c191a68c5fa77f5a4","complete":true,"records":3216,"lastAttemptAt":"2026-11-23T10:27:16.996724+00:00","lastSuccessAt":"2026-11-23T10:27:16.8439398+00:00","error":null,"lastVerifiedAt":"2026-11-23T10:27:16.996724+00:00","snapshotPublishedAt":"2026-11-23T09:49:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-9fee8da2e967466c6e884db81aa523bbe4d6fc47473cfe7cd96a2b59dbbea25d","complete":true,"records":232876,"lastAttemptAt":"2026-11-23T10:27:12.985201+00:00","lastSuccessAt":"2026-11-23T10:27:11.9530843+00:00","error":null,"lastVerifiedAt":"2026-11-23T10:27:12.985201+00:00","snapshotPublishedAt":"2026-11-23T10:18:42+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}