Potentially Suspicious Inline JavaScript Execution through NodeJS Binary (via process_creation)

This rule detects potentially anomalous inline JavaScript execution using Node.js with specific keywords in the command line.

SigmamediumWindowsv1
sigma
title: Potentially Suspicious Inline JavaScript Execution through NodeJS Binary (via process_creation)
id: 25c54364-a0e6-54da-9809-bb344094eb2d
status: stable
description: This rule detects potentially anomalous inline JavaScript execution using Node.js with specific keywords in the command line.
references:
    - https://attack.mitre.org/techniques/T1059/007/
    - https://www.microsoft.com/en-us/security/blog/2025/04/15/threat-actors-misuse-node-js-to-deliver-malware-and-other-malicious-payloads/
author: Huntrule Team
date: 2026-02-09
tags:
    - attack.execution
    - attack.t1059.007
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\node.exe'
        - OriginalFileName: 'node.exe'
        - Product: 'Node.js'
    selection_cmd:
        CommandLine|contains|all:
            - 'http'
            - 'execSync'
            - 'spawn'
            - 'fs'
            - 'path'
            - 'zlib'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

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