# mastra

Mastra is an open-source TypeScript framework for building AI-powered applications and agents.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## AI-generated software can introduce malicious dependencies without human review

DevFeed: [AI-generated software can introduce malicious dependencies without human review](<https://devfeed.tech/articles/everybody-s-shipping-code-they-can-t-read-51653.md>)

Original publisher: [Read original article](<https://www.aikido.dev/blog/shipping-code-they-cant-read>)

Author: Samuel Vandamme

Published: 2026-06-25T03:32:00Z

Content type: news

Language: en

Sources: [Aikido Security's Blog](<https://devfeed.tech/sources/aikido-security-s-blog.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [Malware](<https://devfeed.tech/topics/malware.md>), [npm](<https://devfeed.tech/topics/npm.md>), [mastra](<https://devfeed.tech/topics/mastra.md>), [Code](<https://devfeed.tech/topics/code.md>), [Library](<https://devfeed.tech/topics/library.md>), [Persistence](<https://devfeed.tech/topics/persistence.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [developer](<https://devfeed.tech/tags/developer.md>), [malware](<https://devfeed.tech/tags/malware.md>), [mastra](<https://devfeed.tech/tags/mastra.md>), [npm](<https://devfeed.tech/tags/npm.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [software](<https://devfeed.tech/tags/software.md>)

### AI overview

The article examines how AI coding agents can produce working software without users reviewing the underlying code or dependencies. It highlights an attack in which malicious packages entered the @mastra AI-agent ecosystem, downloaded additional payloads, and targeted browser crypto wallets across multiple operating systems.

### Source excerpt

With AI, everyone's a developer now, and a lot of code gets shipped without a careful review from trained eyes. Category: News

## Over 140 popular Mastra npm Packages Hit by Supply Chain Attack

DevFeed: [Over 140 popular Mastra npm Packages Hit by Supply Chain Attack](<https://devfeed.tech/articles/over-140-popular-mastra-npm-packages-hit-by-supply-chain-attack-51641.md>)

Original publisher: [Read original article](<https://www.aikido.dev/blog/over-140-popular-mastra-npm-packages-hit-by-supply-chain-attack>)

Author: Ilyas Makari

Published: 2026-06-17T08:43:00Z

Content type: news

Language: en

Sources: [Aikido Security's Blog](<https://devfeed.tech/sources/aikido-security-s-blog.md>)

Topics: [npm packages](<https://devfeed.tech/topics/npm-packages.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [npm](<https://devfeed.tech/topics/npm.md>), [mastra](<https://devfeed.tech/topics/mastra.md>), [C2](<https://devfeed.tech/topics/c2.md>), [Extension](<https://devfeed.tech/topics/extension.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Persistence](<https://devfeed.tech/topics/persistence.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [browser](<https://devfeed.tech/tags/browser.md>), [c2](<https://devfeed.tech/tags/c2.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [extensions](<https://devfeed.tech/tags/extensions.md>), [install](<https://devfeed.tech/tags/install.md>), [mastra](<https://devfeed.tech/tags/mastra.md>), [npm](<https://devfeed.tech/tags/npm.md>), [npm-packages](<https://devfeed.tech/tags/npm-packages.md>), [packages](<https://devfeed.tech/tags/packages.md>), [payload](<https://devfeed.tech/tags/payload.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [supply-chain](<https://devfeed.tech/tags/supply-chain.md>), [supply-chain-attack](<https://devfeed.tech/tags/supply-chain-attack.md>), [threats](<https://devfeed.tech/tags/threats.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

A supply chain attack compromised 141 Mastra npm packages by injecting a malicious dependency that downloaded and executed a payload during installation. The payload collected system information, targeted browser-based crypto wallet extensions, established persistence across macOS, Windows, and Linux, and used infrastructure resembling an earlier axios compromise.

### Source excerpt

141 Mastra npm packages were compromised in a supply chain attack that injected a malicious dependency to silently download and execute a payload at install time. Category: Vulnerabilities & Threats

## @mastra npm scope takeover: 143 packages backdoored via compromised contributor account

DevFeed: [@mastra npm scope takeover: 143 packages backdoored via compromised contributor account](<https://devfeed.tech/articles/mastra-npm-scope-takeover-143-packages-backdoored-via-compromised-contributor-account-13149.md>)

Original publisher: [Read original article](<https://www.chainguard.dev/unchained/mastra-npm-scope-takeover-143-packages-backdoored-via-compromised-contributor-account>)

Published: 2026-06-17T00:00:00Z

Content type: news

Language: en

Sources: [Chainguard: Unchained](<https://devfeed.tech/sources/chainguard-unchained.md>)

Topics: [software supply-chain attack](<https://devfeed.tech/topics/software-supply-chain-attack.md>), [mastra](<https://devfeed.tech/topics/mastra.md>), [npm security](<https://devfeed.tech/topics/npm-security.md>), [malicious packages](<https://devfeed.tech/topics/malicious-packages.md>), [account takeover](<https://devfeed.tech/topics/account-takeover.md>), [npm packages](<https://devfeed.tech/topics/npm-packages.md>), [npm](<https://devfeed.tech/topics/npm.md>), [Remote Access Trojan](<https://devfeed.tech/topics/remote-access-trojan.md>), [infection chain](<https://devfeed.tech/topics/infection-chain.md>), [C2](<https://devfeed.tech/topics/c2.md>), [slsa levels](<https://devfeed.tech/topics/slsa-levels.md>), [chainguard](<https://devfeed.tech/topics/chainguard.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [account](<https://devfeed.tech/tags/account.md>), [all](<https://devfeed.tech/tags/all.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [attack](<https://devfeed.tech/tags/attack.md>), [audit](<https://devfeed.tech/tags/audit.md>), [c2](<https://devfeed.tech/tags/c2.md>), [chainguard](<https://devfeed.tech/tags/chainguard.md>), [chainguard-customers](<https://devfeed.tech/tags/chainguard-customers.md>), [chainguard-libraries](<https://devfeed.tech/tags/chainguard-libraries.md>), [chainguard-packages](<https://devfeed.tech/tags/chainguard-packages.md>), [command](<https://devfeed.tech/tags/command.md>), [command-and-control](<https://devfeed.tech/tags/command-and-control.md>), [contributor](<https://devfeed.tech/tags/contributor.md>), [control](<https://devfeed.tech/tags/control.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [customers](<https://devfeed.tech/tags/customers.md>), [malware](<https://devfeed.tech/tags/malware.md>), [mastra](<https://devfeed.tech/tags/mastra.md>), [npm](<https://devfeed.tech/tags/npm.md>), [npm-takeover](<https://devfeed.tech/tags/npm-takeover.md>), [packages](<https://devfeed.tech/tags/packages.md>), [scope](<https://devfeed.tech/tags/scope.md>), [secure-packages](<https://devfeed.tech/tags/secure-packages.md>), [software-packages](<https://devfeed.tech/tags/software-packages.md>)

### AI overview

On June 17, 2026, an attacker using a compromised former contributor's npm account republished all 143 packages in the @mastra scope with a malicious dependency. The stated exposure window was 01:15-02:00 UTC; fresh installs during that period could receive versions designed to disable TLS verification, download and run a cryptocurrency wallet stealer and remote access trojan, then self-delete. The excerpt says the attacker's command-and-control server was active at analysis time. It advises auditing dependency trees and lockfiles for @mastra packages and, if found, treating the host as compromised and rotating credentials. Malicious versions lacked SLSA provenance attestations, unlike legitimate releases described in the excerpt; signature-verifying installs or attestation policies would have rejected them. Chainguard customers are reported as unaffected.

### Source excerpt

A supply chain attack compromised all 143 @mastra packages. Chainguard customers stayed protected through malware blocking and source-built libraries.

## Gremlin: turning open tasks into pull requests

DevFeed: [Gremlin: turning open tasks into pull requests](<https://devfeed.tech/articles/gremlin-turning-open-tasks-into-pull-requests-47631.md>)

Original publisher: [Read original article](<https://www.prisma.io/blog/gremlin-turning-open-tasks-into-pull-requests>)

Author: Tyler Hogarth

Published: 2026-06-09T00:00:00Z

Content type: opinion

Language: en

Sources: [Prisma](<https://devfeed.tech/sources/prisma-blog.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Automation](<https://devfeed.tech/topics/automation.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>), [Orchestration](<https://devfeed.tech/topics/orchestration.md>), [mastra](<https://devfeed.tech/topics/mastra.md>), [CASE](<https://devfeed.tech/topics/casejs.md>), [bug](<https://devfeed.tech/topics/bug.md>), [Code](<https://devfeed.tech/topics/code.md>), [Linear](<https://devfeed.tech/topics/linear.md>), [Slack](<https://devfeed.tech/topics/slack.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [autonomous](<https://devfeed.tech/tags/autonomous.md>), [bug](<https://devfeed.tech/tags/bug.md>), [context-switch](<https://devfeed.tech/tags/context-switch.md>), [cost](<https://devfeed.tech/tags/cost.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [flaky](<https://devfeed.tech/tags/flaky.md>), [gremlin](<https://devfeed.tech/tags/gremlin.md>), [linear](<https://devfeed.tech/tags/linear.md>), [mastra](<https://devfeed.tech/tags/mastra.md>), [opencode](<https://devfeed.tech/tags/opencode.md>), [orchestration](<https://devfeed.tech/tags/orchestration.md>), [product](<https://devfeed.tech/tags/product.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [pull-requests](<https://devfeed.tech/tags/pull-requests.md>), [regression](<https://devfeed.tech/tags/regression.md>), [sandbox](<https://devfeed.tech/tags/sandbox.md>), [sentry](<https://devfeed.tech/tags/sentry.md>), [slack](<https://devfeed.tech/tags/slack.md>)

### AI overview

Gremlin is an autonomous engineering agent designed to handle small, well-scoped tasks. It uses Mastra for orchestration and OpenCode in a sandbox to investigate Sentry issues, Linear tasks, and Slack instructions, make targeted code changes, run available checks, and open reviewable pull requests.

### Source excerpt

Gremlin is an autonomous engineering agent for small, well-scoped tasks. It uses Mastra for orchestration and OpenCode in a sandbox to turn Sentry issues, Linear tasks, and Slack instructions into reviewable pull requests.

## Reimplementing Mastra Workflows: Lessons Learned

DevFeed: [Reimplementing Mastra Workflows: Lessons Learned](<https://devfeed.tech/articles/reimplementing-mastra-workflows-lessons-learned-81435.md>)

Original publisher: [Read original article](<https://stack.convex.dev/reimplementing-mastra-regrets>)

Author: Stack

Published: 2025-03-28T16:00:00Z

Content type: article

Language: en

Sources: [Stack](<https://devfeed.tech/sources/stack.md>)

Topics: [experience report](<https://devfeed.tech/topics/experience-report.md>), [mastra](<https://devfeed.tech/topics/mastra.md>), [agentic workflows](<https://devfeed.tech/topics/agentic-workflows.md>), [Developer experience](<https://devfeed.tech/topics/developer-experience.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [article](<https://devfeed.tech/tags/article.md>), [coding](<https://devfeed.tech/tags/coding.md>), [learnings](<https://devfeed.tech/tags/learnings.md>), [perspectives](<https://devfeed.tech/tags/perspectives.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [strategies](<https://devfeed.tech/tags/strategies.md>)

### AI overview

An engineer recounts reimplementing Mastra Workflows on Convex and stopping after recognizing the maintenance and coupling costs. The article compares reimplementation, API wrapping, and a supported integration path, then recommends assessing integration boundaries and risks, testing real scenarios, and prototyping sooner.

### Source excerpt

I reimplemented Mastra's agentic workflows with durable functions in Convex, and it was the wrong decision. Look at three common strategies (reimplementation, API wrapping, and "blessed" plugin paths), along with learnings along the way and reflections on what I'd do differently next time. TL;DR: Do less, do it smarter, and prototype faster.