Cases › security breach › LR-2026-0588
Mastra npm packages backdoored in supply chain attack attributed to North Korea
Confirmed Why: Microsoft's own report · Microsoft · 2 independent reports
Developing: a major or severe case captured in the last 72 hours. Later changes are logged on the corrections page.
Status: fix reported
No source states: loss or records, developer and model, agent tool, could do, deployer, industry.
Severity major: test: many third parties affected, a stated count of 140+ affected packages across the mastra and @mastra scopes, with combined weekly downloads above 1.1 million exposed
A Mastra npm maintainer account was taken over and used to publish poisoned versions of more than 140 packages across the mastra and @mastra scopes, adding easy-day-js, a typosquat of the dayjs library, as a dependency. The poisoned easy-day-js version ran a postinstall hook during npm install that downloaded and launched a second-stage payload. Microsoft Threat Intelligence identified the compromise through anomalous publishing patterns on the mastra package. Microsoft assesses with high confidence that the activity is attributable to Sapphire Sleet, a North Korean state actor. After the findings were shared with the npm security team, the compromised packages were removed and the attacker's publish access was revoked.
What happened
What was done
“Compromised packages removed and the attacker's publish access to the @mastra scope revoked”
Risks
Primary24 incidents
Rising: 4 vs 0.2 a week
Read from the sources; not yet reviewed by a person.
Controls
Not yet read for controls. Controls that mitigate the primary risk:
Harness ApplicationSigned and verified components · Vetting of plug-ins, skills and dependencies · AI bill of materials · Vulnerability scanning of AI components · Model provenance checks · Least-privilege access for the agent
Infrastructure / targetEvidence
- When it happened 2026-06-17
No source states: when it was found, how many records were exposed, the direct loss, any court case, the cause, what set it off.
Show the full account: 2 items from the primary sources
What happened, in order
- June 17, 2026 01:12–02:39 UTC Mass republication of 140+ Mastra packages with easy-day-js added as a dependency.
- June 19, 2026 Microsoft updated its assessment, attributing the activity to Sapphire Sleet with high confidence.
Show every field, with its source and grade
The AI system
What happened
Impact
Notes on gaps
Attribution to Sapphire Sleet is Microsoft's high-confidence assessment, not a confirmed fact. Control outcomes are limited to those the sources tie to this incident; no held controls are stated.
LR-2026-0588 · version 1 · published 2026-11-01 after automatic checks; not yet checked field by field by a person · JSON