Threat reportSupply ChainTL-2026-4427
Mastra npm Packages Trojanized with Malicious easy-day-js Dependency (UNC1069)
On 2026-06-17 the @mastra npm scope was republished with a typosquatted dependency, easy-day-js (impersonating dayjs), whose obfuscated postinstall dropper downloads a cross-platform infostealer targeting browser data and 160+ cryptocurrency wallet extensions with persistence and C2. Wiz attributes the activity to UNC1069; other reporting cites Microsoft linking it to Sapphire Sleet, and some vendors treat attribution as unconfirmed. First disclosed .
Key facts
| Identifiers | TL-2026-4427 |
|---|---|
| Also known as | easy-day-js supply chain attack, Mastra npm scope takeover |
| Severity | HIGH |
| First disclosed | |
| Affected products | Mastra @mastra/* npm packages (incl. @mastra/core, @mastra/schema-compat, mastra, create-mastra); easy-day-js (attacker) easy-day-js npm package |
| Weaknesses (CWE) | CWE-506, CWE-1357 |
| Attribution | UNC1069 (medium confidence) |
| Nation-state nexus | North Korea |
| Malware | protocal.cjs |
| MITRE ATT&CK techniques | T1005 Data from Local System, T1027 Obfuscated Files or Information, T1036.005 Match Legitimate Resource Name or Location, T1055 Process Injection, T1059.001 PowerShell, T1059.007 JavaScript, T1070.004 File Deletion, T1071.001 Web Protocols, T1078 Valid Accounts, T1082 System Information Discovery, T1195.002 Compromise Software Supply Chain, T1217 Browser Information Discovery and 5 more in the attack flow |
| Motivation | FINANCIAL |
| Target sectors | technology, software development, artificial intelligence, cryptocurrency, finance |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 8 cited sources |
Detection coverage
As of 2026-10-26, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-4427 across Splunk SPL, Microsoft KQL and Sigma, covering 22 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: NVM-Masquerading Persistence (NvmProtocal Run Key, com.nvm.protocal.plist, nvmconf.service, NodePackages)
Detects persistence artifacts dropped by the stage-2 implant of the easy-day-js / Mastra npm compromise (TL-2026-4427), all disguised as Node Version Manager components. Windows uses the HKCU Run value NvmProtocal and C:\ProgramData\NodePackages; macOS uses the LaunchAgent com.nvm.protocal.plist and ~/Library/NodePackages with the implant protocal.cjs; Linux uses the systemd user unit nvmconf.service and ~/.config/NodePackages.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1547.001, T1543.001, T1543.002, T1036.005
- Data sources: sysmon, linux_audit, osquery, defender_endpoint
- Severity: high
- Confidence: high
Splunk SPL
(index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" ((EventCode=13 TargetObject="*CurrentVersion*Run*NvmProtocal*") OR (EventCode=11 (TargetFilename="*ProgramData*NodePackages*" OR TargetFilename="*protocal.cjs"))))
OR (index=linux sourcetype=linux_audit type=PATH (name="*nvmconf.service" OR name="*/.config/NodePackages/*"))
OR (index=osquery sourcetype="osquery:results" (columns.target_path="*com.nvm.protocal.plist" OR columns.target_path="*Library/NodePackages/*"))
| eval platform=case(index="sysmon","windows",index="linux","linux",index="osquery","macos",true(),"unknown")
| eval artifact=coalesce(TargetObject,TargetFilename,name,'columns.target_path')
| stats count min(_time) as first_seen max(_time) as last_seen values(artifact) as artifacts values(Image) as process by host platform
| convert ctime(first_seen) ctime(last_seen)Microsoft KQL
union
(DeviceRegistryEvents
| where Timestamp > ago(24h)
| where ActionType == 'RegistryValueSet'
| where RegistryKey contains 'CurrentVersion' and RegistryKey contains 'Run' and RegistryValueName =~ 'NvmProtocal'
| project Timestamp, DeviceName, Platform = 'windows', Artifact = strcat(RegistryKey, ' :: ', RegistryValueName), ArtifactData = RegistryValueData, InitiatingProcessFileName, InitiatingProcessCommandLine),
(DeviceFileEvents
| where Timestamp > ago(24h)
| where ActionType in ('FileCreated', 'FileModified', 'FileRenamed')
| where FileName in~ ('com.nvm.protocal.plist', 'nvmconf.service', 'protocal.cjs') or FolderPath contains 'NodePackages'
| project Timestamp, DeviceName, Platform = iff(FolderPath startswith '/Users', 'macos', iff(FolderPath startswith '/', 'linux', 'windows')), Artifact = FolderPath, ArtifactData = SHA256, InitiatingProcessFileName, InitiatingProcessCommandLine)
| order by Timestamp descSigma
title: NVM-Masquerading Persistence Files from easy-day-js Implant
id: d4a6e9c1-2b85-4d73-9f06-5e7b8c9dad04
status: experimental
description: Detects creation of persistence files used by the easy-day-js stage-2 implant that masquerade as Node Version Manager components, namely com.nvm.protocal.plist (macOS LaunchAgent), nvmconf.service (Linux systemd user unit), protocal.cjs and the NodePackages directory (TL-2026-4427). The HKCU Run value NvmProtocal is covered by the companion SPL and KQL queries.
references:
- https://www.kodemsecurity.com/resources/mastra-npm-packages-compromised-easy-day-js-supply-chain-attack-iocs-and-response-runbook
- https://snyk.io/blog/a-forgotten-contributor-account-compromised-the-entire-mastra-npm-package-scope/
author: Threadlinqs Team
date: 2026/10/26
tags:
- attack.persistence
- attack.t1547.001
- attack.t1543.001
- attack.t1543.002
- attack.defense_evasion
- attack.t1036.005
logsource:
category: file_event
detection:
selection_name:
TargetFilename|endswith:
- 'com.nvm.protocal.plist'
- 'nvmconf.service'
- 'protocal.cjs'
selection_dir:
TargetFilename|contains: 'NodePackages'
condition: selection_name or selection_dir
falsepositives:
- Internal tooling that legitimately uses a directory named NodePackages
level: highKnown false positives:
- Internal developer tooling or build systems that create a folder literally named NodePackages
- Legitimate software that happens to ship a file named protocal.cjs
Tuning notes: The NvmProtocal value, com.nvm.protocal.plist and nvmconf.service names are unique to this campaign and need no tuning. Only the generic NodePackages directory match may need a path allowlist. Index and sourcetype names (sysmon, linux/linux_audit, osquery/osquery:results) must match your deployment; the osquery branch needs a file_events (FIM) pack covering LaunchAgents and home directories, and Linux needs auditd watches on ~/.config/systemd/user.
- Node.js Stage-2 Implant Launch with UNC1069 C2 Argument or 24-Hex Script Name · unlock with TL Creds
- Node.js Reading Browser Credential Stores and Crypto Wallet Extension Data · unlock with TL Creds
- Node.js Stage-2 Download ([indicator]:8000) and C2 Channel ([indicator]:443) · unlock with TL Creds
- easy-day-js Package Files and Installation Beacon Markers Written to Disk · unlock with TL Creds
- Reflective .NET Loading into cmd.exe by easy-day-js Windows Implant · unlock with TL Creds
- Node.js Self-Deletion of [indicator] Dropper Inside node_modules · unlock with TL Creds
- easy-day-js Postinstall Dropper Execution (node [indicator] --no-warnings) — Mastra npm Supply Chain · unlock with TL Creds
- Beaconing to Hostwinds C2 Range [indicator] (~10 Minute Implant Cadence) · unlock with TL Creds
Indicators of compromise
As of 2026-10-26, Threadlinqs Intelligence tracks 22 indicators of compromise for TL-2026-4427.
Sample indicators (3 of 22)
- IP address:
23.254.164[.]92 - Domain:
www[.]wolfssl[.]com - File hash:
221c45a790dec2a296af57969e1165a16f8f49733aeab64c0bbd768d9943badf
Defanged, TLP:CLEAR. Full set of 22 indicators: unlock with TL Creds.
Community OSINT corroboration
3 of this threat's indicators have also been reported by the open-source security community. Community sightings are unverified and are kept separate from Threadlinqs' curated indicators. Indicator values, reporters and campaign linkage are available to authenticated Red-tier users.
Technical analysis
A dormant npm contributor account (ehindero) that still held unrevoked publish rights to the @mastra scope was taken over (Snyk reports an email change to a tutamail address; Mastra later told reporters that an active employee's machine was compromised through social engineering via a suspicious link sent during a call from a compromised LinkedIn account). On 2026-06-16 07:05 UTC a separate npm account, sergey2016, published a clean 'bait' easy-day-js@1.11.21, a typosquat of the popular dayjs date library. On 2026-06-17 at 01:01 UTC sergey2016 published easy-day-js@1.11.22 tagged latest, containing a malicious postinstall hook.
Between roughly 01:12 and 02:39 UTC on 2026-06-17 the attacker ran an automated, ~88-minute mass-republish of @mastra packages, each with the injected dependency pinned as "easy-day-js": "^1.11.21", so fresh installs resolved to the armed 1.11.22. Package counts differ by source: Wiz reports 116 packages; StepSecurity 140+; Orca and Snyk 142-143 (all @mastra/* plus mastra and create-mastra); The Hacker News 145. Examples include @mastra/core@1.42.1, @mastra/schema-compat@1.2.12 and mastra@1.13.1; combined weekly downloads exceeded 1.1 million. Clean versions such as @mastra/core@1.42.0 and later forward-rolled releases are the remediation target.
The dropper (setup.cjs, 4,572 bytes, run via "postinstall": "node setup.cjs --no-warnings") is obfuscated with a custom-alphabet Base64 scheme and a rotated 40-element string array with a checksum check (0x4c11d). It sets NODE_TLS_REJECT_UNAUTHORIZED=0, writes beacon markers (.pkg_history with the absolute package path and an XOR-encoded .pkg_logs) to the temp directory, spawns a detached unref'd background process, downloads a stage-2 payload from https://23.254.164.92:8000/update/49890878 into a <24-hex>.js file, launches it with the C2 address 23.254.164.123:443, and then deletes itself with fs.rmSync. The C2 URL appears in plaintext within the obfuscated source. Both IPs are Hostwinds (AS54290) in 23.254.164.0/24.
The stage-2 implant (SHA256 221c45a7...badf) is a cross-platform infostealer/RAT. Per Kodem, Snyk and Orca it targets 160+ (166 recovered) wallet extensions (MetaMask, Phantom, Solflare, Coinbase, Binance, OKX, Keplr, TronLink) in Chrome, Edge and Brave, harvests browser history, profiles the host, harvests credentials and API keys (LLM keys, cloud credentials), beacons about every 10 minutes using a self-signed wolfSSL certificate (CN=www.wolfssl.com, expired January 2018), and polls for operator-controlled code execution. On Windows it uses reflective .NET assembly injection into cmd.exe. Persistence masquerades as NVM components: macOS LaunchAgent com.nvm.protocal.plist (implant protocal.cjs) and ~/Library/NodePackages/; Linux systemd user unit nvmconf.service and ~/.config/NodePackages/; Windows HKCU Run key NvmProtocal and C:\ProgramData\NodePackages\.
Attribution is contested: Wiz names UNC1069; The Hacker News reports Microsoft attributed the campaign to Sapphire Sleet (BlueNoroff, North Korea; overlapping with UNC1069) on 2026-06-19 citing tradecraft similar to the earlier Axios compromise (maintainer compromise, clean-then-armed typosquat dependency, postinstall dropper, crypto-stealing payload); Snyk explicitly leaves attribution unconfirmed. No CVE or CVSS is assigned. Treat any host or CI runner that installed an affected version as potentially compromised.
MITRE ATT&CK techniques by tactic:
Collection
Defense Evasion
T1027 Obfuscated Files or Information; T1036.005 Match Legitimate Resource Name or Location; T1055 Process Injection; T1070.004 File Deletion
Execution
T1059.001 PowerShell; T1059.007 JavaScript
Command and Control
Initial Access
T1078 Valid Accounts; T1195.002 Compromise Software Supply Chain; T1566.003 Spearphishing via Service
Discovery
T1082 System Information Discovery; T1217 Browser Information Discovery
Persistence
T1543.001 Launch Agent; T1543.002 Systemd Service; T1547.001 Registry Run Keys / Startup Folder
Credential Access
Remediation
Patches
- Upgrade to clean Mastra releases (e.g., @mastra/core@1.42.0 or later forward-rolled versions) that no longer depend on easy-day-js
Immediate actions
- Run 'npm ls easy-day-js' and grep all lockfiles and CI caches for easy-day-js 1.11.21/1.11.22
- Block egress to 23.254.164.92, 23.254.164.123 and 23.254.164.0/24
- Hunt for and remove persistence: com.nvm.protocal.plist, nvmconf.service, NvmProtocal Run key, NodePackages directories; kill detached node processes
- Rotate all credentials reachable from affected hosts: npm tokens, GITHUB_TOKEN, cloud keys, LLM API keys, SSH keys, CI/CD secrets
- Move cryptocurrency from wallet extensions present on affected hosts to wallets created on clean devices
- Prioritize reimaging of CI runners and developer workstations that installed affected versions
Workarounds
- Remove easy-day-js from dependency trees and pin known-good versions via overrides/resolutions until upgraded
Longer-term hardening
- Set 'npm config set ignore-scripts true' by default and allow install scripts only by exception
- Commit lockfiles and use 'npm ci' to prevent silent re-resolution of caret ranges
- Require SLSA provenance attestations for consumed packages
- Enforce MFA and remove token-based publish bypass on npm accounts; audit and expire stale scope maintainers
- Deploy runtime egress controls on CI runners (e.g., StepSecurity Harden Runner in block mode)
Affected and fixed versions
- Mastra — @mastra/* npm packages (incl. @mastra/core, @mastra/schema-compat, mastra, create-mastra)
Vulnerable versions: @mastra/core@1.42.1; @mastra/schema-compat@1.2.12; mastra@1.13.1; all versions published 2026-06-17 01:12-02:39 UTC depending on easy-day-js
Fixed in: @mastra/core@1.42.0 and later clean forward-rolled releases - easy-day-js (attacker) — easy-day-js npm package
Vulnerable versions: 1.11.22
Timeline
- npm account sergey2016 publishes clean bait package easy-day-js@1.11.21 (07:05 UTC), a typosquat of dayjs, to establish a benign history.
- Mastra forward-rolls clean releases (e.g., @mastra/core@1.42.0 and later) that drop the easy-day-js dependency and begins incident response.
- Wiz Threat Center and StepSecurity publish analyses; StepSecurity Harden Runner blocks the stage-2 download from locked-ioc-13:8000 in block mode and the IP is added to its global block list.
- Automated campaign ends around 02:36-02:39 UTC after ~88 minutes; counts reported range from 116 (Wiz) to 145 packages (The Hacker News), exceeding 1.1 million combined weekly downloads.
- Using the hijacked dormant contributor account ehindero, the attacker begins republishing @mastra packages with easy-day-js ^1.11.21 injected (01:12 UTC).
- easy-day-js@1.11.22 with the obfuscated locked-ioc-14 postinstall dropper is published and tagged latest (01:01 UTC).
- The Hacker News reports Microsoft attributed the campaign to Sapphire Sleet (BlueNoroff, overlapping UNC1069) citing similarity to the earlier Axios compromise; Wiz also attributes it to UNC1069.
Sources cited
- Mastra Packages Trojanized with Malicious Dependency - Wiz Threat Center Wiz · Research · 2026-06-17
- Mastra npm Compromise: easy-day-js Attack & Response - Kodem Security kodemsecurity.com · Research
- Mastra npm Packages Compromised Using easy-day-js - StepSecurity stepsecurity.io · Blog · 2026-06-17
- A Forgotten Contributor Account Compromised the Entire Mastra npm Package Scope - Snyk snyk.io · Blog
- 144 Mastra npm Packages Compromised via Supply Chain Attack - Orca Security orca.security · Blog
- 145 Mastra npm Packages Compromised via Hijacked Contributor Account - The Hacker News The Hacker News · News
- Mastra npm packages compromised in 'easy-day-js' supply chain attack - SC Media scworld.com · News
- Hijacked Mastra npm Account Spread easy-day-js Info-Stealer to 144 Packages - Mallory mallory.ai · News
More from UNC1069
- ClickFix Copy-Paste Terminal Campaigns Targeting macOS and Windows: MacSync Stealer Lures and DPRK UNC1069 Multi-Stage Intrusions (Objective-See: Stopped at ⌘+V)
- Malicious open-source packages: axios npm account hijack (plain-crypto-js / WAVESHAPER.V2), tensorflow-opt PyPI miner, and Contagious Interview multi-ecosystem campaign
- Evolution of Web3 in Cloud Supply Chain Attacks: Blockchain Smart-Contract C2 (EtherHiding, TxDataHiding, NullReceiver) in DPRK-Linked npm/Go/Packagist/Rust Campaigns
- Google Cloud Threat Intelligence: Supply Chain Compromise Campaigns and Mitigation Guidance (2025-2026)
- Hackers poison arrayref Rust crate (0.3.10) via proc-macro1 typosquat to push DPRK-linked cross-platform infostealer backdoor at compile time
- Rust Supply Chain Attack on arrayref: Malicious Crate Versions with DPRK-Linked Backdoor
Previous and next in supply chain
Further reading
Drafted by the Threadlinqs research pipeline from 8 sources; published ; last updated —.