Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons

Social Media

Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons
Search the Site
Popular Searches:
technology Amazon AI
Recent Posts
F5 Patches NGINX Vulnerability That Enables Code Execution and DoS
June 18, 2026
Evilginx AiTM Attack Captures Microsoft Cred Credentials Tokens
June 18, 2026
Hackers Use PowerShell to Deliver SmartRAT via Abuse Commands
June 18, 2026
Home/CyberSecurity News/Hackers Compromised 140+ Mastra npm Packages to Deploy
CyberSecurity News

Hackers Compromised 140+ Mastra npm Packages to Deploy

A sophisticated supply chain attack has compromised over 141 packages within the Mastra-AI npm ecosystem. Identified by researchers at Microsoft and Socket, these packages silently deploy an...

David kimber
David kimber
June 17, 2026 3 Min Read
9 0

A sophisticated supply chain attack has compromised over 141 packages within the Mastra-AI npm ecosystem. Identified by researchers at Microsoft and Socket, these packages silently deploy an infostealer payload on developer machines, CI/CD runners, and build environments.

Table Of Content

  • Mastra npm Packages Compromise Chain
  • Mitigations
  • IoCs

The campaign, detected on June 17, 2026, exploited a typosquatting dependency to deliver multi-stage malware capable of stealing cryptocurrency wallet data, browser history, and sensitive credentials.

Between 01:15 and 02:36 UTC on June 17, a single npm account identified as ehindero mass-published malicious versions of 141 @mastra/* packages in a tight window.

Critically, the compromised package code itself was byte-for-byte identical to legitimate builds; the only change was a single injected dependency in each manifest:

json"easy-day-js": "^1.11.21"

easy-day-js is a deliberate typosquat of the popular dayjs library, published the day prior by a separate account (sergey2016). Version 1.11.21 was a clean copy of dayjs to establish a benign history.

Version 1.11.22, however, added a weaponized postinstall hook running node setup.cjs, executing the malicious payload automatically during npm install — before any developer imports or uses the package.

The affected packages include @mastra/core, which receives over 918,000 weekly npm downloads, giving this campaign a substantial potential blast radius.

Mastra npm Packages Compromise Chain

Stage 1 — The Loader (setup.cjs): Obfuscated using obfuscator.io, the loader disables TLS certificate verification (NODE_TLS_REJECT_UNAUTHORIZED=0), writes tracking files (~/.pkg_history, ~/.pkg_logs) to fingerprint the victim machine, fetches a second-stage payload from 23[.]254[.]164[.]92:8000/update/49890878, and spawns it as a detached, hidden background process pointing to C2 server 23[.]254[.]164[.]123:443. The loader then self-deletes to eliminate forensic traces.

Stage 2 — The Implant (protocal.cjs): A ~41 KB cross-platform Node.js tasking client, the implant installs login persistence across all major operating systems a Windows Registry Run key (NvmProtocal), a macOS LaunchAgent (com.nvm.protocal.plist), and a Linux systemd user unit (nvmconf.service). All persistence mechanisms are disguised as legitimate Node.js tooling to blend into developer environments.

Once persistent, the implant beacons to the operator’s C2 and awaits arbitrary follow-on commands. Built-in collection capabilities include inventorying 166 cryptocurrency wallet browser extensions (MetaMask, Phantom, Coinbase Wallet, Binance Wallet, TronLink, and others), exfiltrating Chrome, Edge, and Brave browser history via Node’s built-in SQLite module, and conducting host reconnaissance, including running processes and installed applications.

Mitigations

Any system that ran npm install on affected @mastra/* versions should be treated as compromised. Developers should immediately run npm ls easy-day-js to check for exposure, remove affected versions, and pin to [email protected] using lockfiles.

Remove persistence artifacts manually from all affected platforms and rotate all credentials that may have been present in the installation environment including npm tokens, GitHub tokens, cloud provider keys, and CI/CD secrets.

For high-value cryptocurrency wallets, migrate funds to a new wallet generated from a fresh seed phrase on a clean device.

Going forward, organizations should run npm install --ignore-scripts by default in CI pipelines, enforce lockfiles, implement package cooldown periods for newly published versions, and monitor for outbound connections to raw IP addresses during build processes.

IoCs

Network Indicators

Type Indicator Description
IP Address 23.254.164[.]92 Stage-2 payload delivery server
URL https://23.254.164[.]92:8000/update/49890878 Stage-2 download endpoint
IP Address 23.254.164[.]123 C2 exfiltration server
URL https://23.254.164[.]123:443/49890878 C2 exfiltration endpoint
ASN AS54290 Hostwinds LLC (attacker-controlled infrastructure)
Domain hwsrv-1327786.hostwindsdns[.]com Associated attacker domain
Domain hwsrv-1327785.hostwindsdns[.]com Associated attacker domain

Code & String Indicators

Type Indicator Description
Registry Key NvmProtocal Windows HKCU...CurrentVersionRun persistence value
LaunchAgent Label com.nvm.protocal macOS login persistence agent
Systemd Unit nvmconf.service Linux systemd user-level persistence unit
Filename protocal.cjs Dropped Stage-2 implant filename
Directory NodePackages Drop directory name across Windows, macOS, and Linux
File .pkg_history Loader beacon file written to temp directory
File .pkg_logs XOR-encoded campaign marker file
URL Path /update/49890878 Stage-2 download path and bot identifier

Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.

Tags:

AttackExploitHackerMalware

Share Article

David kimber

David kimber

David is a penetration tester turned security journalist with expertise in mobile security, IoT vulnerabilities, and exploit development. As an OSCP-certified security professional, David brings hands-on technical experience to his reporting on vulnerabilities and security research. His articles often feature detailed technical analysis of exploits and provide actionable defense recommendations. David maintains an active presence in the security research community and has contributed to multiple open-source security tools.

Previous Post

AIRecon: AI-Powered Penetration Testing Tool with Kali Linux Sandbox

Next Post

US Commerce Dept Imposes Export Controls on Anth Anthropic’s Claude

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts
Hackers Abuse Script Files to Deliver Xctdoor Back
June 18, 2026
Hackers Actively Exploit WordPress SMTP Plugin for Data Access
June 18, 2026
Windows 11 June Update: Microsoft Office Apps Fail to
June 18, 2026
Top Authors
Marcus Rodriguez
Marcus Rodriguez
Jennifer sherman
Jennifer sherman
Emy Elsamnoudy
Emy Elsamnoudy
Let's Connect
156k
2.25m
285k

Related Posts

Jennifer sherman
By Jennifer sherman
Threats

GlassWorm Attacks macOS via Malicious VS Code…

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Attacks

ClickFix Attack Hides Malicious Code via Stegan Security

January 1, 2026
Sarah simpson
By Sarah simpson
Vulnerabilities

MongoBleed Detector Tool Detects Critical MongoDB CVE-

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Breaches

Conti Ransomware Gang Leaders & Infrastructure Exposed

January 1, 2026
Hackers News Hackers News
  • [email protected]

Quick Links

  • Contact Us
  • Privacy Policy
  • Terms of service

Categories

Attacks
Breaches
Comparisons
CyberSecurity News
Threats
Vulnerabilities

Let's keep in touch

receive fresh updates and breaking cyber news every day and week!

All Rights Reserved by HackersRadar ©2026

Follow Us