Suspicious Inline JavaScript Execution by Node.js (node.exe) on Windows

Flags Windows command lines where node.exe is used with JavaScript execution indicators and module keywords consistent with malicious activity.

FreeReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
Microsoft (idea), Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2025-04-21
Updated
2026-07-30

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 flags Windows process executions of node.exe that include inline JavaScript-related activity indicated by a set of command-line keywords. Attackers can use Node.js to execute code and interact with network and local resources in a single command, which may help deliver or run malicious payloads. Detection relies on process creation telemetry, matching the node binary and the presence of specific command-line strings such as http, execSync, spawn, and file/crypto-related modules (fs, path, zlib).

Related detections9 linkedT1059.007 — drag to rearrange
Suspicious npm Postinstall Node Execution From Fixtures Path (BeaverTail OtterCookie)
Suspicious Script Host Execution of Decoy-Named JavaScript Dropper (PS1Bot)
Malicious Emmenhtal JavaScript Loader Spawning Encoded PowerShell
Suspicious Script Host Spawning PowerShell With Bypass And Hidden Execution
Possible React2Shell CVE-2025-55182 Prototype Pollution Exploitation
Suspicious Node.js Script Execution from AppData Roaming
Possible Reflected XSS via cPanel cpanelwebcall Endpoint CVE-2023-29489
SocGholish Fake Browser Update Script Execution (via process_creation)
Suspicious Contagious Interview Disk Enumeration via Node Spawning Wmic
Suspicious Inline JavaScript Execution by Node.js (node.exe) on Windows
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.