Detection rules › Sigma

Process Creation Using Sysnative Folder

Status
test
Severity
medium
Log source
product windows, category process_creation
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 EscalationT1055 Process Injection
StealthT1055 Process Injection

Event coverage

Rule body yaml

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

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
ImagematchC:\Windows\Microsoft.NET\Framework64\v
ImagematchC:\Windows\Microsoft.NET\FrameworkArm64\v
ImagematchC:\Windows\Microsoft.NET\FrameworkArm\v
ImagematchC:\Windows\Microsoft.NET\Framework\v
CommandLinematchinstall
Imageends_with\ngen.exe
CommandLinematch"C:\Windows\sysnative\cmd.exe"
CommandLinematch\catalina_start.bat
CommandLinematch\xampp\

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • :\Windows\Sysnative\
Imagematch
  • :\Windows\Sysnative\