malware npm

easy-day-js

discovered 2026-06-17

A dayjs clone used as the dropper in the @mastra scope-takeover attack. Published by npm account sergey2016. v1.11.21 (2026-06-16) is clean; v1.11.22 (2026-06-17, tagged latest) adds a postinstall hook (setup.cjs) that downloads and runs a multi-platform cryptocurrency-stealing RAT. Caret range ^1.11.21 injected into 143 @mastra packages resolves to the armed 1.11.22.

Threat types

rat c2_agent crypto_drainer credential_stealer persistence typosquat

Malicious versions

  • 1.11.21 · 4a8860240e4231c3…
  • 1.11.22 · ae70dd4f6bc0d1c8…

Campaigns

Indicators

Techniques

Read the full analysis →