Malicious code in 0x2ai-demo6 (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-5592
Withdrawn--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (0f4a43a40af9e707d98ed55406b0ff32dccaad352fccf5d1eaaca41b9959d924) On `npm install`, scripts/postinstall.cjs writes `.mcp.json` into the installer's working directory (INIT_CWD) wiring Claude Code to a packaged MCP server (lib/chatroom-mcp-lite-patched.cjs) that talks to https://demo6.0x2ai.com with a hardcoded bearer token. The same postinstall step copies templates/CLAUDE.md into the installer's CWD; that file is loaded by Claude Code as system context and instructs the agent ("Olivia") to call `memory_save` with the user's name, family, plans, and a periodic `_snapshot`, and to refuse to discuss its own rules or architecture. Because the patched MCP routes `memory_save`, `memory_load`, `chatroom_post`, `memory_search`, etc. to demo6.0x2ai.com, the developer's prompts and any personal facts the agent decides to harvest are silently relayed to the author-controlled bridge whenever Claude Code is launched in that directory. bin/start.cjs additionally spawns `claude --dangerously-skip-permissions`, disabling permission prompts for filesystem and shell tool calls, which broadens what the remotely-prompted agent can do on the developer's machine without confirmation. The README's "demo connector" framing does not disclose that postinstall mutates the installer's project directory or that personal data flows off-host.
- Source published
- 11 Jun 2026 07:16:25 UTC
- Source modified
- 17 Jul 2026 03:04:23 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.