Full SigmaHQ catalog

Author
Florian Roth (Nextron Systems), Max Altgelt (Nextron Systems), Tim Shelton
Rule ID
a6a39bdb-935c-4f0a-ab77-35f4bbf44d33
Collection
Core
Log source
windows / process_creation
Severity
medium
Maturity
test
First published
2021-07-14
Updated
2026-11-04
MITRE ATT&CK
T1059.001

Detection logic

Original SigmaHQ detection and related fields from the pinned file. The source file includes its full metadata.

Sigma YAML
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith:
            - '\powershell.exe'
            - '\pwsh.exe'
        CommandLine|contains:
            - '\Windows\Temp'
            - '\Temporary Internet'
            - '\AppData\Local\Temp'
            - '\AppData\Roaming\Temp'
            - '%TEMP%'
            - '%TMP%'
            - '%LocalAppData%\Temp'
    filter_optional_vscode:
        CommandLine|contains: '-WindowStyle hidden -Verb runAs'
    filter_optional_amazon_ec2:
        CommandLine|contains: '\Windows\system32\config\systemprofile\AppData\Local\Temp\Amazon\EC2-Windows\'
    filter_optional_generic:
        CommandLine|contains:
            - ' >'
            - 'Out-File'
            - 'ConvertTo-Json'
    filter_optional_chocolatey_installer:
        ParentImage:
            - 'C:\Windows\System32\Msiexec.exe'
            - 'C:\Windows\SysWOW64\Msiexec.exe'
        Image|endswith: '\powershell.exe'
        CommandLine|contains|all:
            - '-NoProfile -ExecutionPolicy Bypass -Command'
            - 'AppData\Local\Temp\'
            - 'Install-Chocolatey.ps1'
    filter_optional_ec2launch:
        ParentImage|endswith: '\Amazon\EC2Launch\EC2Launch.exe'
        CommandLine|contains|all:
            - '\config\systemprofile\AppData\Local\Temp\EC2Launch'
            - '\UserScript.ps1'
    condition: selection and not 1 of filter_optional_*
falsepositives:
    - Administrative scripts