Malicious code in mangomind-agent (npm)
The npm package mangomind-agent contained malicious code that established a persistent WebSocket connection to a hardcoded relay server, enabling remote code execution and AI-agent-driven filesystem access on any host running the package. The vulnerability was discovered and reported by the OpenSSF.
- Disclosed
- Last updated
- Blast radius
- All hosts running affected versions of mangomind-agent
- Ecosystems
- Attack vectors
- Affected entities
- mangomind-agentnpm package with malicious code in src/index.js
The npm package mangomind-agent contained embedded malicious code in src/index.js that opened a persistent WebSocket connection to a hardcoded relay at wss://relay.mangomindbd.com. The package accepted remote commands from the relay operator without meaningful authentication beyond an initial token handshake.
The malicious functionality included two primary attack vectors: (1) On receipt of 'diagnosis' messages with autoFix enabled, the handler passed attacker-controlled fixCommand strings directly to child_process.execSync with a 120-second timeout, yielding arbitrary command execution under the user running the agent; (2) On 'opencode_request' messages, the handler proxied attacker-chosen HTTP method, path, and body to a locally-spawned AI coding agent bound on 127.0.0.1, granting the remote party indirect access to the agent's file and shell tool capabilities.
The package also made cross-platform curl, http.get, and os.hostname calls consistent with host-context reporting back to the relay. Control of the relay.mangomindbd.com domain would grant an attacker arbitrary remote code execution and AI-agent-driven filesystem access on every installation.
The vulnerability was identified and credited to the OpenSSF malicious-packages project.
Indicators of compromise
- Packages
- mangomind-agent
- Domains
- relay.mangomindbd.com
- api.mangomindbd.com
Remediation
- Immediately uninstall mangomind-agent from all systems
- Audit command execution logs and filesystem access on affected hosts for signs of compromise
- Revoke any credentials or tokens that may have been exposed to the compromised package
- Monitor network traffic for connections to relay.mangomindbd.com and related domains
- Review and update any AI agent configurations or integrations that may have been accessed via the package
Sources
- GitHub Advisory GHSA-34vp-2pw6-g7f3 · GitHub Advisory Database
Cite this entry
"Malicious code in mangomind-agent (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 7, 2026; last updated August 7, 2026. https://supplychainattack.org/incident/malicious-code-in-mangomind-agent-npm-4di8oy
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 zyr-agent (npm)
zyr-agent (npm) shipped with malicious code that enables remote command execution through a hardcoded preview-slug endpoint controlled by the package author. The AI agent auto-executes tool calls (including bash commands) returned by the remote endpoint without user confirmation.
npmAI agents & skillsMalicious commitCompromised package - activecritical
Malicious code in @vanexalabs-ai/vanexa-agent (npm)
The npm package @vanexalabs-ai/vanexa-agent contains malicious code that implements a WebRTC daemon capable of executing arbitrary shell commands received from remote peers or signaling relay operators. The package uses obfuscated V8 bytecode to hide its pairing/authorization logic and includes a socket.json configuration that suppresses security scanning for malware, obfuscation, shell access, and network access.
npmAI agents & skillsCompromised packageMalicious commit - containedcritical
Malicious code in @yancyyu/agentcli (npm)
The npm package @yancyyu/agentcli contains malicious code that extracts OAuth credentials and API keys for Lark/Feishu from the system keychain (macOS) and credential store (Windows), then exfiltrates them to a hardcoded remote IP address over plaintext HTTP. A persistent launchd agent ensures the exfiltration loop survives reboots.
npmAI agents & skillsCompromised packageMalicious commit - resolvedcritical
Malicious code in rust-testing-utils (npm)
The npm package rust-testing-utils contained malicious code that impersonates the pino logger and executes remotely-fetched code with arbitrary privileges. The package spawns a child process that decodes a hardcoded URL, fetches attacker-controlled content, and executes it via Function constructor with full module-loading capability.
npmCompromised packageMalicious commit