Full SigmaHQ catalog

Author
Florian Roth (Nextron Systems)
Rule ID
403c2cc0-7f6b-4925-9423-bfa573bed7eb
Collection
Core
Log source
windows / ps_script
Severity
medium
Maturity
test
First published
2017-03-05
Updated
2022-12-02
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:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    webclient:
        ScriptBlockText|contains: 'System.Net.WebClient'
    download:
        ScriptBlockText|contains:
            - '.DownloadFile('
            - '.DownloadFileAsync('
            - '.DownloadString('
            - '.DownloadStringAsync('
    condition: webclient and download
falsepositives:
    - PowerShell scripts that download content from the Internet