Skip to navigationSkip to main content
Mastra logoOpens in new tab
|
Mastra's Trust Center

Mastra

The TypeScript Agent Framework

We are happy to share that we received our SOC 2 Type II Report in October 2025.

Resources

View all

Other resources

Controls

Updated 2 minutes ago

View all

Infrastructure security

  • Unique production database authentication enforced
  • Encryption key access restricted
  • Unique account authentication enforced
View 13 more Infrastructure security controls

Organizational security

  • Asset disposal procedures utilized
  • Portable media encrypted
  • Employee background checks performed
View 9 more Organizational security controls

Product security

  • Data encryption utilized
  • Control self-assessments conducted
  • Penetration testing performed
View 2 more Product security controls

Internal security procedures

  • Continuity and Disaster Recovery plans established
  • Continuity and Disaster Recovery plans tested
  • Cybersecurity insurance maintained
View 32 more Internal security procedures controls

Data and privacy

  • Data retention procedures established
  • Customer data deleted upon leaving
  • Data classification policy established

Subprocessors

View all
Logo for Clickhouse
Clickhouse • Data storage and processing
GitHub • Version control
Logo for Google Cloud Platform
Google Cloud Platform • Cloud provider
Logo for Incident.io
Incident.io

Updates

View all

Incident Report - Supply Chain Attack on June 16, 2026

Incident

· Published Wed, Jun 17, 2026

Yesterday, June 16th, Mastra was hit by a supply chain attack. A malicious postinstall script that exfiltrated credentials and then self-deleted was added to specific versions of our npm packages. Most importantly: the incident is over. All relevant package versions are unpublished.

The root cause is that one of our maintainers was compromised. Between 6:12 PM and 6:37PM PT yesterday, a token associated with their account published 116 malicious NPM packages, almost all in the @mastra namespace. We became aware of this at 8:45pm PT. We immediately contacted npm as well as trusted third parties (e.g. SocketSecurity).

We also began unpublishing, and unpublished 59 packages. As part of the attack, we lost access to some packages. Around 10:15pm PT, we were able to re-add our accounts to those packages. We began unpublishing the rest. In total, we unpublished 110 packages, and deprecated 6. By 11:57pm PT, all affected packages were unpublished or deprecated.

At around 1am PT, we also published new, safe versions of each package affected (https://github.com/mastra-ai/mastra/pull/18056), so that installs would resolve We have always required MFA on NPM for maintainers, but we also allowed (mistakenly) token bypass. Also around 1am PT, we removed token bypass across all packages.

At 2:25am PT, we established contact with the compromised maintainer. He is a current, active Mastra employee. His machine was compromised via a social phishing attack. A compromised LinkedIn account reached out to him as well as maintainers of other prominent TypeScript open source packages. He was on a call and clicked a suspicious link. This was the same attack vector as other open-source maintainers have reported (e.g. https://x.com/aidenybai/status/2066738254993621087).

Around 4:40am, npm responded to the security ticket we'd filed and confirmed the breach. They unpublished the last 6 affected packages. For a third-party report on the incident / malware, including a list of package versions affected, and the mechanisms of the RAT: https://socket.dev/blog/mastra-npm-packages-compromised. We're continuing to keep reducing scope of sensitive credentials and enhance our use of MFA. Security is an ongoing process of review and hardening.

We will provide additional updates when they are available.

Opens in new tab