Skip to navigation

Threat reportSupply ChainTL-2026-4427

Mastra npm Packages Trojanized with Malicious easy-day-js Dependency (UNC1069)

highACTIVE

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

IdentifiersTL-2026-4427
Also known aseasy-day-js supply chain attack, Mastra npm scope takeover
SeverityHIGH
First disclosed
Affected productsMastra @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
AttributionUNC1069 (medium confidence)
Nation-state nexusNorth Korea
Malwareprotocal.cjs
MITRE ATT&CK techniquesT1005 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
MotivationFINANCIAL
Target sectorstechnology, software development, artificial intelligence, cryptocurrency, finance
Target regionsGlobal
Detection rules9 (1 shown free)
Sources8 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 desc

Sigma

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: high

Known 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.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • 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.

22 indicators of compromise · unlock with TL Creds. Compare plans

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

T1005 Data from Local System

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

T1071.001 Web Protocols

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

T1555.003 Credentials from Web Browsers

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

More from UNC1069

Previous and next in supply chain

Further reading

Drafted by the Threadlinqs research pipeline from 8 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats