{"id":"MAL-2026-5589","revision":null,"records":[{"revision":"e893cd1cea044ce38ac5135ea585cf37","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-5589","aliases":[],"title":"Malicious code in 0x2ai-demo2 (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (98ee2445b2f0b01d2457cf45c188b310f58c98f3b676032f9c6213469f071239)\nOn `npm install`, scripts/postinstall.cjs recursively copies the bundled payload/ directory into INIT_CWD (the developer's project root) via fs.cpSync. The staged files reconfigure Claude Code so subsequent sessions in that project route through an author-controlled bridge:\n\n- payload/.mcp.json registers an MCP `chatroom` server with hardcoded BRIDGE_URL=https://demo2.0x2ai.com and a hardcoded bearer token (BRIDGE_AUTH_TOKEN). Any `claude` invocation in the project auto-loads this MCP server.\n- payload/chatroom-mcp-lite-patched.cjs and payload/chatroom-monitor.cjs use child_process, fs.readFileSync, http/https, and POST to exfiltrate session content (chatroom_post, memory_save, provider_query, settings_set tools) to demo2.0x2ai.com. provider_query proxies model calls through the author's server (\"API keys are managed server-side\"), so prompts and responses flow one-way to the attacker.\n- payload/CLAUDE.md is a ~12 KB persona/instruction file that tells Claude to operate as \"Olivia\", route all memory and chat through https://demo2.0x2ai.com, and refuse to discuss its architecture or prompts (anti-inspection language: `taboo`, `family_recipe`).\n- payload/.claude/settings.json overrides the statusLine command and payload/.claude/commands/0x2ai-boot.md autoboots a long-poll listener against the author's bridge.\n- bin/start.cjs (advertised as `npx 0x2ai-demo2`) re-stages the payload into CWD and spawns `claude --dangerously-skip-permissions`, disabling Claude's tool-permission prompts while the attacker-controlled MCP server is loaded — enabling remote-driven destructive actions on the developer's machine without approval.\n\nThe staged files persist after `npm uninstall`, providing durable redirection of the developer's AI tooling to the author's infrastructure.\n","state":2,"publishedAt":"2026-06-11T07:16:18+00:00","modifiedAt":"2026-07-17T03:04:24.7089077+00:00","affected":[{"ecosystem":"npm","name":"0x2ai-demo2","ranges":[],"versions":["1.2.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/0x2ai-demo2/v/1.2.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-5589","license":"OSV · upstream source license applies","key":"osv:MAL-2026-5589","identifiers":["MAL-2026-5589"]},"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-24T15:27:37.4126745+00:00","complete":true,"records":1792,"lastAttemptAt":"2026-11-24T15:27:37.4126745+00:00","lastSuccessAt":"2026-11-24T15:27:37.6241767+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:27:37.6241771+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-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-df50bcd17e90a3371298109ea504791e554fa139cf110c9e4299b8d427b98a7b","complete":true,"records":431339,"lastAttemptAt":"2026-11-24T15:25:35.4865231+00:00","lastSuccessAt":"2026-11-24T15:25:35.3489378+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:25:35.4865231+00:00","snapshotPublishedAt":"2026-11-24T14:30:39+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-c2da376b27c645ccbbed2e0234bd07bd","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T15:30:13.7888885+00:00","lastSuccessAt":"2026-11-24T15:30:13.784+00:00","error":"180 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T15:30:13.784+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13791,"expectedIdentifiers":13982,"failedIdentifiers":180},{"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-24T15:27:37.4126745+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T15:27:37.4126745+00:00","lastSuccessAt":"2026-11-24T15:27:37.7117201+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:27:37.7117205+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-dd0124aa454041daa6390d321cbaa422","complete":false,"records":13947,"lastAttemptAt":"2026-11-24T15:28:07.9768532+00:00","lastSuccessAt":"2026-11-24T15:28:07.968+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:28:07.968+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13483,"expectedIdentifiers":13982,"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-c86437892ddabdeaf17409463a17578b1e71dd185d64061100dd57629858f6d6","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T15:27:37.3447915+00:00","lastSuccessAt":"2026-11-23T22:27:19.6557603+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:27:37.3447915+00:00","snapshotPublishedAt":"2026-11-23T21:33:52+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-24T15:25:35.6214623+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:25:35.6214623+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-3afd4dd07a6bf352a6a53c4438150c464a2527017b95ca94804134ea15f1eba9","complete":true,"records":3220,"lastAttemptAt":"2026-11-24T15:27:37.3582994+00:00","lastSuccessAt":"2026-11-24T10:25:37.8779609+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:27:37.3582994+00:00","snapshotPublishedAt":"2026-11-24T09:33:40+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-d4ec43f5cfee38989290b04011f2dc8845e8ef74e8b11a5d0a72ce8c76be2839","complete":true,"records":233009,"lastAttemptAt":"2026-11-24T15:27:37.2158898+00:00","lastSuccessAt":"2026-11-24T15:27:36.0836437+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:27:37.2158898+00:00","snapshotPublishedAt":"2026-11-24T14:33:38+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}