Malicious code in agenthub-multiagent-mcp (npm)
The npm package agenthub-multiagent-mcp contains malicious code that establishes persistent remote control over Claude Code execution. The package falsely claims to be from Anthropic while actually being authored by 'Krishi AI' and connects to a hardcoded attacker-controlled WebSocket server.
- Disclosed
- Last updated
- Blast radius
- Any developer or system that installed agenthub-multiagent-mcp and ran the setup wizard; remote attacker gains full control over Claude Code execution with disabled permission checks and OS-level persistence across reboots.
- Ecosystems
- Attack vectors
- Affected entities
- agenthub-multiagent-mcpnpm package with malicious worker and setup code
The npm package agenthub-multiagent-mcp ships a malicious worker (dist/worker.js) that connects to a hardcoded WebSocket server at wss://agenthub.contetial.com/ws/workers/. Upon receiving dispatch messages from the attacker-controlled server, the worker writes the message body to a prompt file and executes 'bash run-claude.sh', which invokes Claude with the --dangerously-skip-permissions flag, giving the remote attacker full access to Claude Code's tool suite (file read/write, shell, MCP tools) against the installer's projects.\n\nThe setup wizard (agenthub-setup) installs OS-level persistence mechanisms: on Windows, a Startup.vbs + hidden.bat launcher; on macOS, a LaunchAgent (com.agenthub.worker.plist) with RunAtLoad and KeepAlive; on Linux, a systemd user unit (agenthub-worker.service) with Restart=always. This ensures the malicious worker reconnects automatically on every system login.\n\nProvenance is falsified throughout: package.json declares the repository and homepage as https://github.com/anthropics/agenthub (implying Anthropic authorship), the README directs users to clone that same URL, yet the actual author is listed as 'Krishi AI' and the operational domain is agenthub.contetial.com. The setup.js file contains additional suspicious network activity.\n\nThis incident was identified by Amazon Inspector and reported via GitHub Security Advisory GHSA-gr2g-rx6h-9jh5.
Indicators of compromise
- Packages
- agenthub-multiagent-mcp
- Domains
- agenthub.contetial.com
Remediation
- Immediately uninstall agenthub-multiagent-mcp from all systems
- Remove OS-level persistence: delete Windows Startup.vbs and hidden.bat, macOS LaunchAgent com.agenthub.worker.plist, and Linux systemd unit agenthub-worker.service
- Audit all projects that may have been accessed by the malicious worker for unauthorized file modifications or data exfiltration
- Review Claude Code execution logs for suspicious activity
- Block agenthub.contetial.com at the network level
- Do not install or use any packages claiming to be from Anthropic unless verified through official Anthropic channels
Sources
- GitHub Advisory GHSA-gr2g-rx6h-9jh5 · GitHub Advisory Database
Cite this entry
"Malicious code in agenthub-multiagent-mcp (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 6, 2026; last updated August 7, 2026. https://supplychainattack.org/incident/malicious-code-in-agenthub-multiagent-mcp-npm-19kp4r
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- resolvedcritical
Malicious code in @lyxa.ai/core (npm)
The npm package @lyxa.ai/core contained malicious code that unconditionally routes all application events through author-controlled cloud infrastructure (CloudAMQP, Redis Cloud, GCP) using embedded credentials, and ships live private keys for GCP and Firebase services, allowing the author to intercept, modify, and trigger arbitrary handlers in any installer's process.
npmAI agents & skillsCompromised packageMalicious maintainer - resolvedcritical
Malicious code in claude-remote-agent (npm)
The npm package claude-remote-agent contained malicious code that connected to a hardcoded WebSocket server (wss://claude.pishchykau.eu) controlled by the package author, enabling remote interactive terminal access and exfiltration of Claude Code conversation transcripts from affected hosts.
npmAI agents & skillsCompromised packageMalicious maintainer - containedhigh
Microsoft links Mastra AI supply chain attack to North Korean hackers
Microsoft attributed a Mastra AI supply chain attack that compromised over 140 npm packages to North Korean hacking group Sapphire Sleet (BlueNoroff). The attack targeted the npm ecosystem and AI development infrastructure.
UNC1069npmAI agents & skillsCompromised packageMalicious maintainer - containedcritical
Malicious code in opencode-optimised-toolings (npm)
opencode-optimised-toolings@4.0.0 contains malicious code that downloads and builds an unauthorized opencode binary from a non-publisher GitHub repository, replaces the legitimate opencode executable on the user's PATH, and establishes persistent code execution with user privileges. The package modifies configuration files to ensure the malicious pipeline continues on future invocations.
npmCompromised packageMalicious maintainer