INSPECTING ARCHIVED INTELLIGENCE (OUTDATED VERSION).

North Korea exploits Mastra AI

| 2026-06-22 11:30 CRITICAL HIGH AI-ENABLED ATTACK · AUTONOMOUS SUPPLY CHAIN STATE-SPONSORED & ESPIONAGE
Executive Summary
AI-generated
A supply chain attack targeting Mastra, an open-source typescript for building AI-powered applications and agents, was attributed to North Korean hackers by Microsoft Defender Security Research Team on June 19. The attackers compromised over 140 packages across the npm registry, with the aim of disabling Transport Layer Security (TLS) certificate verification and delivering a malware payload that could be deployed on Windows, MacOS, and Linux systems. The malware targeted cryptocurrency wallets, searching for specific browser-extension IDs to steal from them, and also gathered information on browser history and infected machine details. Microsoft assessed the activity as attributable to Sapphire Sleet, a North Korean state actor primarily targeting the financial sector, with high confidence.
Technical Mitigations AI-generated
• Review dependency trees for direct or transitive usage of affected @mastra packages at the compromised versions listed above • Check for the presence of easy-day-js in node_modules/ or <a href="/auth/login?next=/detail/jT226J4B1IjJTucQRLVw" class="ioc-censored-pill text-decoration-none" title="Protected IoC: Sign in to view" data-bs-toggle="tooltip"><span class="badge bg-black text-warning border border-warning border-opacity-75 font-monospace ioc-lock-tag align-middle"><i class="bi bi-lock-fill me-1"></i>[IOC HIDDEN &bull; LOGIN REQUIRED]</span></a> files across your projects and CI/CD environments • Pin known-good package versions where possible, specifically Mastra version 1.13.0 and earlier are unaffected
Technical Observables 1 IoCs Login Required
Indicators of Compromise (IoCs) Protected

Raw threat telemetry, malicious IP addresses, file hashes, and direct VirusTotal correlation are restricted to authenticated users.

files 1
Intelligence Metadata
Actors / Malware / CVEs / Campaigns
APT38APT38
Target & Sectors
DPRK DPRK cryptocurrencycryptocurrency technologytechnology financefinance
Incident Timeline
‎2026/06/22
North Korean state actor Sapphire Sleet used a supply chain attack to compromise over 140 npm packages, including the Mastra AI library, with the intent to steal cryptocurrency and other sensitive information.
infrastructure Windows
infrastructure Linux
infrastructure Macos
organisation Microsoft
organisation Mastra
threat_actor APT38
organisation LinkedIn
organisation CI
infrastructure 1.13.0
infrastructure 1.42.0
organisation Foz @mastra
organisation Phantom
organisation TronLink
Tactical Metrics
Metrics
infrastructure
‎1.13.0
Software Version
Metrics
infrastructure
‎1.42.0
Software Version
Metrics
infrastructure
‎Windows
Affected Product
Metrics
infrastructure
‎Linux
Affected Product
Metrics
infrastructure
‎Macos
Affected Product
Intelligence Sources
Infosecurity-Magazine 2026-06-22