𝟭𝟰𝟰 𝗠𝗮𝘀𝘁𝗿𝗮 𝗡𝗽𝗺 𝗣𝗮𝗰𝗸𝗮𝗴𝗲𝘀 𝗖𝗼𝗺𝗽𝗿𝗼𝗺𝗶𝘀𝗲𝗱

A major software supply chain attack just hit the JavaScript ecosystem.

Attackers hijacked a single npm contributor account. They used this access to publish malicious updates to 144 different packages under the @mastra namespace.

Mastra is a popular framework for building AI applications. This means the risk spreads directly into the AI tools you build and use.

The attack, known as easy-day-js, works by poisoning trusted libraries. Because the attacker had account-level permissions, they bypassed normal reviews. When you run an install or upgrade, you might pull in malicious code without knowing it.

The risks include:

You must act fast to protect your projects. Follow these steps:

  1. Audit your dependencies immediately. Run this command to find any @mastra packages in your project: npm ls --all | grep "@mastra/"

  2. Use security scanners. Run npm audit to check for known vulnerabilities. Use tools like Socket or JFrog to monitor live alerts.

  3. Pin your versions. Do not use wildcards in your package.json. Lock your dependencies to a specific, safe version to prevent automatic updates to poisoned code.

  4. Rotate your credentials. If you suspect a breach, change your keys and secrets immediately.

  5. Enforce 2FA. If you manage npm packages, use multi-factor authentication for all contributor accounts.

The open-source trust model is fragile. One compromised account can impact thousands of developers. Do not wait. Check your dependency tree today.

Source: https://dev.to/davekurian/144-mastra-npm-packages-compromised-in-major-software-supply-chain-attack-5fif