Skip to content
supplychainattack.orgSupply chain attack incident catalog
activecritical

Malware in @mastra/agent-browser

Malware was discovered in the npm package @mastra/agent-browser. Systems with this package installed or running should be considered fully compromised and require immediate remediation.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any system with the package installed or running
Ecosystems
Attack vectors
Affected entities
  • @mastra/agent-browser

A critical malware incident was identified in the npm package @mastra/agent-browser. According to the GitHub Security Advisory (GHSA-ph9v-3f5h-hg6p), any computer with this package installed or running should be considered fully compromised.\n\nThe advisory indicates that all secrets and keys stored on affected computers should be rotated immediately from a different, uncompromised system. While the package should be removed, the advisory notes that full control of the computer may have been given to an outside entity, meaning removal of the package alone may not eliminate all malicious software that resulted from the installation.\n\nThis represents a critical supply chain attack through a compromised npm package affecting the AI agents ecosystem.

Indicators of compromise

Packages
  • @mastra/agent-browser

Remediation

  • Immediately isolate any computer with @mastra/agent-browser installed from the network
  • Rotate all secrets, API keys, and credentials from a different, uncompromised computer
  • Remove the @mastra/agent-browser package from all systems
  • Perform a full security audit and malware scan on affected systems
  • Review all access logs and activity on affected systems for signs of unauthorized access
  • Consider full system reimaging if the package was installed on production or sensitive systems
  • Update npm dependencies to remove @mastra/agent-browser and verify no malicious replacements are installed

Sources

  1. GitHub Advisory GHSA-ph9v-3f5h-hg6p · GitHub Advisory Database

Cite this entry

"Malware in @mastra/agent-browser." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed June 17, 2026; last updated June 20, 2026. https://supplychainattack.org/incident/malware-in-mastra-agent-browser-ecfqq7

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. 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
  2. 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
  3. resolvedcritical

    Malicious code in @aster110/cc2wechat (npm)

    The npm package @aster110/cc2wechat contains malicious code that establishes a remote shell interface via WeChat messages. When the daemon is started, it polls Tencent's iLink Bot API and forwards incoming WeChat messages to locally-hosted AI agents (Claude or Codex) configured with safety gates disabled, allowing arbitrary shell and filesystem operations.

    npmAI agents & skillsCompromised package
  4. resolvedcritical

    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.

    npmAI agents & skillsCompromised packageMalicious commit