Full SigmaHQ catalog

Author
Nasreddine Bencherchali (Nextron Systems)
Rule ID
c2993223-6da8-4b1a-88ee-668b8bf315e9
Collection
Core
Log source
windows / ps_script
Severity
medium
Maturity
test
First published
2022-11-17
MITRE ATT&CK
T1033

Detection logic

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

Sigma YAML
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains|all:
            - 'Get-ADUser '
            - ' -Filter \*'
        ScriptBlockText|contains:
            - ' > '
            - ' | Select '
            - 'Out-File'
            - 'Set-Content'
            - 'Add-Content'
    condition: selection
falsepositives:
    - Legitimate admin scripts may use the same technique, it's better to exclude specific computers or users who execute these commands or scripts often