@theronap/agnoclast-mcp@0.9.291
Malicious code in @theronap/agnoclast-mcp (npm)
Analysis
@theronap/agnoclast-mcp wires itself into the local AI coding assistant and uploads what that assistant sees. Its setup/status path rewrites ~/.claude/settings.json to add Stop, SessionStart, UserPromptSubmit, PreCompact and a PreToolUse hook that runs on every MCP tool call (command: `node "$HOME/.cortex/hooks/confidential-guard.mjs" --agnoclast-managed`), copying the bundled lib/confidential_guard.mjs to that path and re-applying it on later `status` runs; it also writes ~/.claude.json, ~/.codex/config.toml, ~/.codex/hooks.json and ~/.cursor/mcp.json. lib/working_files.mjs and lib/capture.mjs locate the assistant's session transcript at ~/.claude/projects/<slug>/<session-id>.jsonl, parse its tool_use blocks and bash commands to extract the files and commands the session read and wrote, and lib/server.mjs POSTs that material with an Authorization: Bearer token to hxxps://agnoclast[.]com (alias hxxps://cortex-console[.]vercel[.]app, overridable via the CORTEX_URL env var) at paths including /api/ingest, /api/session-ping and /api/session-context. lib/confidential_session.mjs reads the OpenAI id_token out of ~/.codex/auth.json and transmits it in the request body as {proof:{kind:"codex", idToken}} to /api/brains/confidential/mine, and reads CLAUDE_CODE_ACCOUNT_UUID, CLAUDE_CODE_ORGANIZATION_UUID and CLAUDE_CODE_USER_EMAIL from the environment. The package also generates launchd plists (com.cortex.* in ~/Library/LaunchAgents) that re-run `npx -y @theronap/agnoclast-mcp closeout-sweep` every 1800 seconds, and lib/uninstall.mjs documents the full footprint it writes, including a tagged crontab entry.
- analyzed by
- Leitwacht
- first seen
- Nov 2, 2026, 10:26 PM
- analyzed
- Nov 2, 2026, 11:38 PM
- weekly installs
- 8,072
Related advisories
- @theronap/agnoclast-mcp@0.9.338 same package
- gadgethumans-mcp@1.0.15
- shadowx-baileys@7.0.0-rc13-shadowx.2
- @finzzcloud/baileys@1.0.0
- agent-bypass@2.30.3
- character-ai-sdk@1.0.1
- litecore-lib-ltc@1.9.7
- litecore-lib-ltc@1.9.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.