Detection rules › Sigma

Process Creation Using Sysnative Folder

Status
test
Severity
medium
Log source
category process_creation, product windows
Author
Max Altgelt (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects process creation events that use the Sysnative folder (common for CobaltStrike spawns)

MITRE ATT&CK coverage

TacticTechniques
Privilege Escalation
Stealth

Telemetry coverage

Rule body

title: Process Creation Using Sysnative Folder
id: 3c1b5fb0-c72f-45ba-abd1-4d4c353144ab
status: test
description: Detects process creation events that use the Sysnative folder (common for CobaltStrike spawns)
references:
    - https://thedfirreport.com/2021/08/29/cobalt-strike-a-defenders-guide/
author: Max Altgelt (Nextron Systems)
date: 2022-08-23
modified: 2025-10-08
tags:
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1055
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - CommandLine|contains: ':\Windows\Sysnative\'
        - Image|contains: ':\Windows\Sysnative\'
    filter_main_ngen:
        Image|contains:
            - 'C:\Windows\Microsoft.NET\Framework64\v'
            - 'C:\Windows\Microsoft.NET\Framework\v'
            - 'C:\Windows\Microsoft.NET\FrameworkArm\v'
            - 'C:\Windows\Microsoft.NET\FrameworkArm64\v'
        Image|endswith: '\ngen.exe'
        CommandLine|contains: 'install'
    filter_optional_xampp:
        CommandLine|contains|all:
            - '"C:\Windows\sysnative\cmd.exe"'
            - '\xampp\'
            - '\catalina_start.bat'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection

selection:
    - CommandLine|contains: ':\Windows\Sysnative\'
    - Image|contains: ':\Windows\Sysnative\'

Stage 2: not filter_main_ngen

filter_main_ngen:
    Image|contains:
        - 'C:\Windows\Microsoft.NET\Framework64\v'
        - 'C:\Windows\Microsoft.NET\Framework\v'
        - 'C:\Windows\Microsoft.NET\FrameworkArm\v'
        - 'C:\Windows\Microsoft.NET\FrameworkArm64\v'
    Image|endswith: '\ngen.exe'
    CommandLine|contains: 'install'

Stage 3: not filter_optional_xampp

filter_optional_xampp:
    CommandLine|contains|all:
        - '"C:\Windows\sysnative\cmd.exe"'
        - '\xampp\'
        - '\catalina_start.bat'

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
ImagematchC:\Windows\Microsoft.NET\Framework64\vexcludes:Image field:"Image" value:"C:\Windows\Microsoft.NET\Framework64\v"
ImagematchC:\Windows\Microsoft.NET\FrameworkArm64\vexcludes:Image field:"Image" value:"C:\Windows\Microsoft.NET\FrameworkArm64\v"
ImagematchC:\Windows\Microsoft.NET\FrameworkArm\vexcludes:Image field:"Image" value:"C:\Windows\Microsoft.NET\FrameworkArm\v"
ImagematchC:\Windows\Microsoft.NET\Framework\vexcludes:Image field:"Image" value:"C:\Windows\Microsoft.NET\Framework\v"
CommandLinematchinstallexcludes:CommandLine field:"CommandLine" value:"install"
Imageends_with\ngen.exeexcludes:Image field:"Image" value:"\ngen.exe"
CommandLinematch"C:\Windows\sysnative\cmd.exe"excludes:CommandLine
CommandLinematch\catalina_start.batexcludes:CommandLine field:"CommandLine" value:"\catalina_start.bat"
CommandLinematch\xampp\excludes:CommandLine field:"CommandLine" value:"\xampp\"

Indicators

These rows show field, operator, and value matches.