Suspicious npm Postinstall node Execution of setup.cjs with Warnings Suppressed

PremiumReviewedSigma · Medium · v1
Category
process_creation
Author
HuntRule
Published
2026-10-15
Updated
2026-10-15

ATT&CK techniques

Execution
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule detects node executing a setup.cjs script with the --no-warnings flag, the postinstall behavior used in the Mastra npm supply chain compromise attributed to Sapphire Sleet. A postinstall script suppressing warnings while running an installer stage is characteristic of malicious package code fetching a second stage payload.

Related detections9 linkedT1059.007 — drag to rearrange
Suspicious node.exe Executing Compiled JavaScript Bytecode File
Suspicious Chromium Browser Launch With Remote Debugging for DRILLAPP (via process_creation)
Suspicious node.exe Execution From LocalAppData Directory
Suspicious Script Host Spawned by cmd for DarkGate Execution
Suspicious Script Interpreter Executing JavaScript from Temp Folder
Suspicious FrostyNeighbor WinDataScope JavaScript Dropper Artifact
Malicious Nimbus RAT Java Archive Execution From ProgramData
Suspicious node.exe Spawning PowerShell Get-Clipboard
Suspicious Script Host Launching PowerShell from Fattura Named JScript File (via process_creation)
Suspicious npm Postinstall node Execution of setup.cjs with Warnings Suppressed
Pivot detection · T1059.007 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.