Full SigmaHQ catalog

Author
frack113
Rule ID
7d416556-6502-45b2-9bad-9d2f05f38997
Collection
Core
Log source
windows / ps_script
Severity
medium
Maturity
test
First published
2022-09-16
Updated
2026-10-14
MITRE ATT&CK
T1083

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_action:
        # Whole words only: as plain substrings, 'ls' and 'gci' also match words such as 'false' or 'credentials'
        ScriptBlockText|re|i: '\b(?:get-childitem|gci|ls|dir)\b'
    selection_recurse:
        ScriptBlockText|contains: '-recurse'
    selection_file:
        ScriptBlockText|contains:
            - '.pass'
            - '.kdbx'
            - '.kdb'
    condition: all of selection_*
falsepositives:
    - Unknown