Full SigmaHQ catalog

Author
Florian Roth (Nextron Systems), Wojciech Lesicki
Rule ID
d7a95147-145f-4678-b85d-d1ff4a3bb3f6
Collection
Core
Log source
windows / security
Severity
high
Maturity
test
First published
2021-05-26
Updated
2022-11-27
MITRE ATT&CK
T1021.002, T1543.003, T1569.002

Detection logic

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

Sigma YAML
logsource:
    product: windows
    service: security
    definition: The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697
detection:
    event_id:
        EventID: 4697
    selection1:
        ServiceFileName|contains|all:
            - 'ADMIN$'
            - '.exe'
    selection2:
        ServiceFileName|contains|all:
            - '%COMSPEC%'
            - 'start'
            - 'powershell'
    selection3:
        ServiceFileName|contains: 'powershell -nop -w hidden -encodedcommand'
    selection4:
        ServiceFileName|base64offset|contains: "IEX (New-Object Net.Webclient).DownloadString('http://127.0.0.1:"
    condition: event_id and 1 of selection*
falsepositives:
    - Unknown