CampaignsPublisher / pipeline compromise
Mastra AI-agent framework: about 144 npm packages poisoned after a contributor was lured via LinkedIn
- Taken downas of
- Moderate confidence
- Exposure Since 17 Jun 2026
- Reach 143 packages as of 17 Jun 2026
- Indicators (4): CSV, JSON
- Seen to
Am I affected?
- easy-day-js 1.11.22 is in the dependency treeRead-only check
find . -path "*node_modules/easy-day-js/package.json" -exec grep -H version {} + - macOS: ~/Library/LaunchAgents/com.nvm.protocal.plist or ~/Library/NodePackages/protocal.cjs exists
- Linux: ~/.config/systemd/user/nvmconf.service exists
- Windows: C:\ProgramData\NodePackages or a Run key named NvmProtocal exists
Do this now
- Treat machines that installed affected versions as compromised
- Remove publish rights from inactive contributors; require trusted publishing
- Train maintainers on LinkedIn and quick-call lures
What happened
On 17 Jun 2026, after a LinkedIn lure, more than 140 @mastra npm packages shipped a RAT-dropping dependency.
Affects: JavaScript developers and CI runners that installed @mastra packages on 17 Jun 2026
- npm
Attack chain
-
Lure
LinkedIn outreach from a compromised account, then a call with a malicious link
First seen
-
Artifact
easy-day-js@1.11.22 (setup.cjs postinstall) and about 144 republished @mastra packages
-
Actor
Sapphire Sleet, DPRK (attribution: Microsoft, 19 Jun 2026, as reported by The Hacker News; basis: infrastructure and post-compromise TTPs consistent with earlier Sapphire Sleet activity)
-
Infrastructure
- Payload and C2 IPs on ports 8000/443
Last seen
Timeline
- First seen
- JFrog Security Research reports
- The Hacker News reports
- Last seen
- Status checked: Taken down
Related campaigns
| Type | Value | Copy |
|---|---|---|
| package | easy-day-js@1.11.22 | |
| ip | 23[.]254[.]164[.]92 | |
| ip | 23[.]254[.]164[.]123 | |
| url | hxxps://23[.]254[.]164[.]92:8000/update/49890878 |
Defender actions
- Treat workstations or runners that installed the affected versions as compromised
- Remove publish rights from inactive contributors and require trusted publishing
- Train maintainers on LinkedIn and 'quick call' lures
Summary
A Mastra contributor was approached from a compromised LinkedIn account and clicked a malicious link during a call, which compromised their machine. The attacker published a clean dayjs lookalike, weaponized it a day later, and within about 30 minutes republished roughly 144 packages in the @mastra scope with that dependency added. Its postinstall drops a crypto-focused RAT with persistence on all three desktop platforms.
Confidence: Moderate
Strong evidence, not yet confirmed by our own analysis. See the confidence scale for what each level requires. The sources below are the evidence.
Sources
Notes
- Package count varies by source (143-145). Also relevant to ai-plugin-mcp (AI agent framework). Microsoft's own report was not fetched directly; attribution is cited through THN.
Corrections
No corrections.
See the corrections policy. Spotted an error? Tell us.