Skip to main content
Mallory
Back to intelligence
package-repository-poisoningdependency-confusion-typosquatcredential-stealer-activityextension-plugin-hijack

Hijacked Mastra npm Account Spread easy-day-js Info-Stealer to 144 Packages

Updated 12h agoFirst seen Jun 17, 202620 sources

A software supply chain attack compromised up to 144 @mastra/* npm packages after an attacker abused lingering publish access on a former contributor account and pushed tainted releases into the widely used JavaScript and TypeScript AI framework ecosystem. The malicious package versions did not contain the payload directly; instead, they added a dependency on easy-day-js, a typosquatted package impersonating the legitimate dayjs library. Investigators said the attacker first published a benign-looking easy-day-js@1.11.21, then followed with malicious easy-day-js@1.11.22 before releasing compromised Mastra packages that referenced the permissive version range ^1.11.21, allowing the harmful dependency to be pulled in during installation.

Share:
Hijacked Mastra npm Account Spread easy-day-js Info-Stealer to 144 Packages
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

6 events from the most recent confirmed update back to the earliest known activity.

6 EVENTS
Jun 17, 20263d ago

npm removes malicious package versions and reverts latest tags

Following the discovery, npm removed malicious versions from the most prominent affected packages and reverted their latest tags. Defenders advised users who installed the affected versions to treat hosts as potentially compromised, roll back packages, rotate credentials, and investigate for artifacts.

144 Mastra npm Packages Compromised via Hijacked Contributor Account

Mastra disables token publishing and mandates MFA for npm publishes

In response to the npm compromise, Mastra disabled token-based npm publishing and required multi-factor authentication for all publishes. The change was announced alongside guidance for users to audit dependencies, inspect logs, update to clean versions, and rotate credentials on affected systems.

Mastra AI Hit By npm Compromise - Decipher

Mastra removes unauthorized owner and publishes clean replacement releases

After the @mastra npm scope compromise, Mastra removed the unauthorized owner account used in the attack and published clean forward-rolled package releases to replace the compromised versions. The report also noted the source repository was not modified and the malicious dependency was inserted during package publishing.

Mastra npm Scope Takeover | Snyk

Researchers disclose the easy-day-js supply chain attack

Researchers reported a software supply chain attack dubbed easy-day-js affecting up to 144 npm packages in the @mastra/* namespace. Their analysis described the malicious dependency chain, the obfuscated loader behavior, and the final payload's information-stealing capabilities.

144 Mastra npm Packages Compromised via Hijacked Contributor Account

Malicious easy-day-js and compromised @mastra packages are published

On 2026-06-17, an attacker using access to the @mastra npm organization published malicious Mastra package versions that added a dependency on easy-day-js@1.11.22. The malicious package used a postinstall hook to fetch and run a second-stage payload, and the activity was tied to a hijacked contributor account with lingering publish access.

Mastra npm Supply Chain Attack: 140+ Packages Backdoored via easy-day-js Typosquat - StepSecurity
Jun 16, 20264d ago

Attacker publishes benign easy-day-js@1.11.21 to npm

The attacker first published a benign-looking easy-day-js version 1.11.21, apparently to establish credibility before the malicious stage of the campaign. This package later served as the dependency name used in compromised Mastra releases.

Mastra npm Supply Chain Attack: 140+ Packages Backdoored via easy-day-js Typosquat - StepSecurity
LINKED ENTITIES

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

66 LINKEDOpen in app
Threat actors
4 linked
Affected products
14 linked
Brave BrowserNpmMetamaskMicrosoft Defender For EndpointGithubSemgrepBraveRed Hat Enterprise LinuxNodejsNpmNxChromeBunNx
Organizations
39 linked
Microsoft CorporationMastraGuruculSocketGitHubStepSecurityJfrognpm, Inc.HostwindsSafeDepGoogleRed HatSemgrepBinanceCoinbaseDeep Specter ResearchCheckmarxFlareMercorMastra AIdayjsOpenJS FoundationLinkedinSonatypeBrave SoftwareMeta PlatformsSnykPhantom TechnologiesXApplePayPalOrca SecurityUpwindMetamaskSecurityOnline.infoThe Hacker NewsTuta MailTutao GmbHTutamail
Breaches
4 linked
MASTRA-2026-06EUROPEANCOMMISSION-2026-06MASTRAAI-2026-06MASTRAAIFRAMEWORK-2026-06
The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.