Detectionmediumexperimental

Potentially Suspicious Inline JavaScript Execution via NodeJS Binary

Detects potentially suspicious inline JavaScript execution using Node.js with specific keywords in the command line.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Microsoft, Swachchhanda Shrawan Poudel (Nextron Systems)Created Mon Apr 218537c866-072e-460d-bfff-aaf39cbd73d3windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
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_*
False Positives

Legitimate scripts using Node.js with these modules

MITRE ATT&CK
Rule Metadata
Rule ID
8537c866-072e-460d-bfff-aaf39cbd73d3
Status
experimental
Level
medium
Type
Detection
Created
Mon Apr 21
Path
rules/windows/process_creation/proc_creation_win_susp_inline_node_js_execution.yml
Raw Tags
attack.executionattack.t1059.007
View on GitHub