惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
腾讯CDC
V
V2EX
Martin Fowler
Martin Fowler
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Check Point Blog
博客园 - 【当耐特】
Cisco Talos Blog
Cisco Talos Blog
The Hacker News
The Hacker News
K
Kaspersky official blog
Security Latest
Security Latest
H
Help Net Security
博客园_首页
美团技术团队
Spread Privacy
Spread Privacy
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
G
Google Developers Blog
NISL@THU
NISL@THU
爱范儿
爱范儿
I
Intezer
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
N
News and Events Feed by Topic
P
Privacy International News Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
雷峰网
雷峰网
人人都是产品经理
人人都是产品经理
V
Vulnerabilities – Threatpost
W
WeLiveSecurity
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Hacker News: Ask HN
Hacker News: Ask HN
I
InfoQ
The Cloudflare Blog
F
Full Disclosure
SecWiki News
SecWiki News
宝玉的分享
宝玉的分享
N
Netflix TechBlog - Medium

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
144 Mastra npm packages compromised in major software supply chain attack
Dave Kurian · 2026-06-17 · via DEV Community

Mastra npm Packages Compromised in easy-day-js Supply Chain Attack: What Developers Must Know

The Mastra npm packages compromise is one of the largest targeted software supply chain attacks seen in the JavaScript ecosystem to date. In June 2026, attackers exploited a hijacked npm contributor account — specifically ehindero — and mass-published malicious versions of 144 packages under the @mastra namespace. As Mastra serves as a popular open-source JavaScript and TypeScript framework for artificial intelligence (AI) applications, the risks extend deep into the ecosystem powering next-generation AI products. Developers and security teams using Mastra now face urgent questions about code integrity, dependency trust, and ongoing protection against similar npm security breaches in 2024 and beyond.

What happened in the Mastra npm packages compromise?

A single compromised npm contributor account (ehindero) was used to mass-publish malicious updates to 144 packages in the @mastra namespace, in an incident codenamed the easy-day-js attack. Security researchers from JFrog, SafeDep, Socket, and StepSecurity jointly uncovered and named the breach.

According to reporting from JFrog, SafeDep, Socket, and StepSecurity, the attacker gained access to the ehindero npm account — likely through credential theft or phishing (method not publicly detailed) — and then published a sudden wave of package updates under @mastra. The targeted packages belong to Mastra, which is widely adopted for AI application development in both JavaScript and TypeScript environments.

The easy-day-js supply chain attack is characterized by malicious code inserted directly into trusted open-source libraries. By using account-level permissions, attackers bypassed normal review, causing all downstream consumers of the affected packages to automatically pull poisoned logic on install or upgrade.

The scale is what sets this incident apart: 144 npm packages impacted in one sweep, all via a single contributor account. The unified findings from the four security firms above confirm the method — hijack, poison, publish — and the scope: any project with direct or indirect dependencies on @mastra/* may have received compromised code.

[[DIAGRAM: project dependency flow — 'trusted' Mastra → hijacked contributor → poisoned update → downstream AI app]]

How does the easy-day-js attack exploit npm package supply chains?

The easy-day-js incident is a textbook example of a modern npm supply chain attack, where the public trust model of open-source dependencies becomes the primary attack surface — not a technical exploit, but an abuse of access.

In this scenario, the attacker’s vector was to hijack the keys to the kingdom: the ehindero npm account with publish rights to @mastra namespace packages. With control over this account, the attacker unleashed mass updates, each embedding malicious payloads into legitimate distribution channels. This method sidesteps technological barriers like code review or automated scanning if those controls aren’t enabled upstream — a single trusted publisher can poison a wide swath of dependencies at speed.

The mechanics are simple, but the impact is complex:

// Example: AI app with implicit @mastra dependency
import { Model } from "@mastra/core";     // If @mastra/core is compromised...
// Downstream AI logic may inadvertently run malicious code

Because most AI apps rapidly prototype using third-party frameworks, the ease of installing from npm (npm install @mastra/core) means an attacker can silently swap trusted modules with poisoned code that runs in production workflows, CI/CD pipelines, or cloud environments.

The easy-day-js attack underscores that npm package hijacking is not theoretical. Compromise at the contributor level cascades out to all downstream consumers, making it especially dangerous for high-use frameworks like Mastra powering AI workloads. Unchecked, this supply-chain manipulation can enable credential exfiltration, code execution, or data tampering at scale.

What are the security implications for developers using Mastra framework?

The compromise of @mastra npm packages exposes developers and organizations to a broad set of risks: from the integrity of application logic to the leaking of sensitive data handled by AI models built on Mastra.

First, the fundamental risk is that AI apps using Mastra as a dependency could import and execute untrusted, malicious code — without any visible red flags in their own source tree. That hijacked code could perform actions including but not limited to:

  • Stealing API keys or credentials used by downstream apps
  • Modifying AI model behavior to produce false or unsafe outputs
  • Implanting logic for later-stage, downstream attacks (e.g., lateral movement in CI/CD)

Once the malicious code lands in the supply chain, dependency chain contamination becomes a real possibility. Any package further down the line (@mastra/utils, @mastra/ai, etc.) built atop core Mastra modules might inherit these exploits, amplifying the blast radius. This creates a downstream effect — not just those directly depending on the poisoned packages, but anyone deep in the dependency tree is at risk.

Security researchers (per JFrog, SafeDep, Socket, StepSecurity) universally recommend immediate, automated auditing of dependency trees and removal of any packages published by the affected contributor during the compromise window. Manual audits will not scale for an event of this magnitude.

For developers, the key implication is clear: trust in the open-source ecosystem is brittle at the account-level. If the AI logic, authentication flows, or infrastructure glue in your project touches @mastra, you must review, quarantine, or replace those packages now.

[[COMPARE: codebase before and after dependency audit — with/without poisoned Mastra packages]]

How to detect and mitigate risks from compromised Mastra npm packages today

To immediately reduce exposure from the Mastra npm compromise, developers need to verify project dependencies for authenticity, integrity, and clean provenance. Here’s a step-by-step mitigation flow using npm’s native tools and industry advisories:

1. Audit dependencies for @mastra packages and affected publish window.

npm ls | grep "@mastra/"
# or, for all indirect dependencies:
npm ls --all | grep "@mastra/"

Cross-reference any @mastra package versions in use with advisories or incident reports from JFrog, SafeDep, Socket, and StepSecurity.

2. Use third-party scanners and advisories.

  • Services like JFrog Xray, Socket, and SafeDep publish live alerts for compromised packages.
  • Run automated audits:
npm audit              # Built-in scan for known vulnerabilities
node --inspect script.js    # Run in debug mode if you suspect runtime exploits

  • Subscribe to updates from the official JFrog report (provided link is the canonical source for incident updates).

3. Remove or lock to safe versions.

If a package is listed as compromised, immediately remove or roll back to a known-safe version. Prefer explicit version pinning over wildcard or floating semvers:

// package.json
"dependencies": {
  "@mastra/core": "1.2.3"        // Pin to a vetted version
}

4. Monitor contributor permissions and rotate credentials.

Beyond dependency hygiene, managing publish rights is critical:

  • Audit all npm contributor accounts for your own packages.
  • Enforce strong authentication (ideally multi-factor) on all publisher credentials.
  • Use automation to detect sudden, mass publish actions or unusual version jumps.

5. Set up continuous monitoring and alerts.

Implement continuous monitoring scripts or integrate with advisory feeds. Many supply chain scanning services offer webhooks, allowing for near-real-time alerts when new threats are discovered.

Best practices for npm and open-source security, permanently relevant:

  • Regular dependency audits (scheduled, automated)
  • Enforcing 2FA and using role separation for npm publishers
  • Immediate response to third-party security advisories

For more, see How to Secure npm Packages and Avoid Supply Chain Attacks and Best Practices for Managing Open-Source Contributor Accounts.

What does this incident mean for the future of npm package security?

The easy-day-js Mastra compromise cements the reality that npm supply chain attacks are increasing in frequency and sophistication, aided by the open nature of modern JavaScript package registries.

The event demonstrates that all it takes is one credential failure — at the contributor level — to potentially compromise thousands of downstream projects, especially when trusted frameworks like Mastra are targeted. This is not an isolated occurrence, but the latest in a series of npm security breaches in 2024, pushing maintainers and registries toward more aggressive interventions.

Security researchers now call for:

  • Stricter publisher controls: Mandating multi-factor authentication (MFA/2FA) for all npm contributors, especially those with access to widely-adopted frameworks.
  • Automated provenance checks: Registry-level validation to verify that published code matches expectations (hash-based checks, signature validation).
  • Improved governance: Workflow for automated code review, mass-publish detection, and fast deprecation of compromised releases.
  • Community trust upgrades: Ongoing investment in open-source trust signals, publisher reputation systems, and down-the-chain impact analysis.

For the Mastra and npm communities, the way forward includes investing in layered review, dependency mapping, and tighter deploy processes. As supply chain risk becomes an existential threat for AI-driven, highly composable JavaScript stacks, organizations must adapt both technically and operationally to secure every link in the chain.

For a deeper dive into JavaScript supply chain attack tolerance, see Understanding JavaScript Framework Security Risks.

[[CONCEPT: supply chain trust decay — a single compromised account poisons the whole tree]]

Developers must actively audit and secure dependencies now

The Mastra npm packages compromise, enabled by a hijacked contributor account and the easy-day-js supply chain attack, is a stark warning: no JavaScript framework, however reputable, is immune from credential-driven threats. AI app builders and security teams cannot afford to ignore their dependency tree’s integrity. Regular audits, strict publisher controls, and vigilant monitoring are now baseline requirements—not optional extras. The npm ecosystem’s move into AI workloads only raises the stakes. Developers: check your dependencies today, not tomorrow.