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. activecritical

    Malware in @ai-agent-node/nodesql

    The npm package @ai-agent-node/nodesql contains malware that grants full system compromise to an outside entity. Any computer with this package installed or running should be considered fully compromised.

    npmAI agents & skillsCompromised package
  2. activecritical

    Malware in @ai-agent-node/createnode

    Malware discovered in the npm package @ai-agent-node/createnode. Systems with this package installed are considered fully compromised and require immediate remediation.

    npmAI agents & skillsCompromised package
  3. activecritical

    Malware in @ai-agent-node/agent-node

    Malware discovered in the npm package @ai-agent-node/agent-node. Systems with this package installed are considered fully compromised and require immediate remediation.

    npmAI agents & skillsCompromised package
  4. activecritical

    Malware in @ai-plus/de-agent-sdk

    Malware discovered in the npm package @ai-plus/de-agent-sdk. Systems with this package installed are considered fully compromised and require immediate remediation.

    npmAI agents & skillsCompromised package