Trapdex Subscribe

CampaignsPublisher / pipeline compromise

Mastra AI-agent framework: about 144 npm packages poisoned after a contributor was lured via LinkedIn

Am I affected?

  • easy-day-js 1.11.22 is in the dependency treeRead-only checkfind . -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

  1. Treat machines that installed affected versions as compromised
  2. Remove publish rights from inactive contributors; require trusted publishing
  3. 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
  • LinkedIn

Attack chain

  1. Lure

    LinkedIn outreach from a compromised account, then a call with a malicious link

    First seen

  2. Artifact

    easy-day-js@1.11.22 (setup.cjs postinstall) and about 144 republished @mastra packages

  3. 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)

  4. Infrastructure

    • Payload and C2 IPs on ports 8000/443

    Last seen

Indicators

CSVJSON

All values are defanged (how to read them).

TypeValueCopy
packageeasy-day-js@1.11.22
ip23[.]254[.]164[.]92
ip23[.]254[.]164[.]123
urlhxxps://23[.]254[.]164[.]92:8000/update/49890878

Defender actions

  1. Treat workstations or runners that installed the affected versions as compromised
  2. Remove publish rights from inactive contributors and require trusted publishing
  3. 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.