Attackers used a hijacked maintainer account to publish poisoned versions of more than 140 Mastra npm packages, including @mastra/core 1.42.1, on 17 June 2026.
Each poisoned release gained one new dependency named easy-day-js, a look-alike of the dayjs date library. Microsoft links the attack to the North Korean group Sapphire Sleet.
What happened
The attacker published a fake dependency, then used a maintainer's npm account to add it to 140 or more @mastra packages.
- The account
sergey2016published easy-day-js 1.11.21, a clean bait release. Version 1.11.22 with a malicious install hook followed on 17 June 2026 at 01:01 UTC. - The hijacked account
ehinderopublished the poisoned packages from about 01:20 UTC. Each lists easy-day-js with the range^1.11.21, which resolves to 1.11.22. - The hook runs
node setup.cjs --no-warnings. The dropper downloads an implant from23.254.164.92and runs it as a hidden Node.js process. - The implant collects host data and browser history. It checks for 166 crypto wallet extension IDs.
- It adds login persistence on Windows, macOS and Linux. On Windows, a later backdoor installs a service named
scdevthat runs as SYSTEM.
The Hacker News reports that the publishing took 88 minutes. It names a LinkedIn attack on a maintainer as the root cause. Source counts run from 80 to 145 packages.
Affected versions
- mastra 1.13.1. Version 1.13.0 and earlier are not affected.
- @mastra/core 1.42.1. Version 1.42.0 and earlier are not affected.
- create-mastra 1.13.1
- easy-day-js 1.11.22, the malicious dependency. Version 1.11.21 is the clean bait release.
- Any @mastra package that lists easy-day-js in its dependencies is poisoned. The full list of 140 or more packages is in the Microsoft and Hacker News reports.
Indicators of compromise
- Dependency name:
easy-day-js(version 1.11.22, range^1.11.21). - npm accounts:
ehindero(hijacked maintainer),sergey2016(easy-day-js publisher) - Install command:
node setup.cjs --no-warnings. - Dropper SHA-256 (setup.cjs):
B122A9873BEDF145AE2A7FD024B5F309007DBB025149F4DC4AC3F7E4F32A36A4. - easy-day-js-1.11.22.tgz SHA-256:
AE70DD4F6BC0D1C8C2848E4E6B51934626C4818DCB5AF99D080DDBD7DC337185. - mastra-1.13.1.tgz SHA-256:
B73DE25C053C3225A077738A1FCBD9CA6966D7B3CD6F5494A30F0AA0EAE55C7E. - C2 IP addresses:
23.254.164.92and23.254.164.123. - Payload URL:
https://23.254.164.92:8000/update/49890878. - Domains:
teams.onweblive.organdmaskasd.com. - Marker files:
$TMPDIR/.pkg_historyand$TMPDIR/.pkg_logs. - Persistence: Windows Run key value
NvmProtocal, macOScom.nvm.protocal.plistin~/Library/NodePackages/, Linuxnvmconf.servicein~/.config/systemd/nvmconf/. - Implant file name:
protocal.cjs(spelled this way). - Windows service:
scdevwith DLL pathC:\windows\system32\scdev.dll.
How to check
Search for easy-day-js. Any hit means a poisoned package resolved on that machine.
npm ls easy-day-js
Check for the marker files from the dropper.
ls -la "${TMPDIR:-/tmp}"/.pkg_history "${TMPDIR:-/tmp}"/.pkg_logs
What to do now
- Pin mastra to 1.13.0 or earlier and @mastra/core to 1.42.0 or earlier. Remove
node_modulesand reinstall withnpm install --ignore-scripts. - Treat any workstation, CI runner or build agent that resolved easy-day-js as compromised. Rotate its credentials, tokens and API keys, and move crypto assets from its wallets.
- Block
23.254.164.92,23.254.164.123,teams.onweblive.organdmaskasd.comat the network edge. - On Windows, check for the
scdevservice and the Defender exclusion forC:\Windows\System32. Rebuild the machine if you find them.
What Vigilance would show
These examples show an install hold and the corresponding owner report.
Example install message
Vigilance blocked `@mastra/`. This version is too new or changed in a way Vigilance must check first.
Example owner report
Bad update
@mastra/
An AI toolkit gained a new hidden helper that installs remote-control software and hunts for cryptocurrency wallets.
No security team? See who reads the alert.
Frequently asked questions
Who is behind the Mastra npm attack?
Microsoft attributes it to Sapphire Sleet, also tracked as BlueNoroff, with high confidence. The group targets crypto wallets.
How popular is @mastra/core?
BleepingComputer reports about 918,000 weekly downloads at the time.
Is this linked to the Axios attack?
BleepingComputer reports that the same group is linked to the April 2026 Axios compromise.
Sources
Send this page to the person who looks after AI at your company.