Full SigmaHQ catalog

Author
frack113
Rule ID
34f90d3c-c297-49e9-b26d-911b05a4866c
Collection
Core
Log source
windows / ps_script
Severity
medium
Maturity
test
First published
2021-07-30
Updated
2022-07-11
MITRE ATT&CK
T1056.001

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_basic:
        ScriptBlockText|contains: 'Get-Keystrokes'
    selection_high: # want to run in background and keyboard
        ScriptBlockText|contains|all:
            - 'Get-ProcAddress user32.dll GetAsyncKeyState'
            - 'Get-ProcAddress user32.dll GetForegroundWindow'
    condition: 1 of selection_*
falsepositives:
    - Unknown