Detectionmediumtest

Suspicious PowerShell Download - Powershell Script

Detects suspicious PowerShell download command

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Florian Roth (Nextron Systems)Created Sun Mar 05Updated Fri Dec 02403c2cc0-7f6b-4925-9423-bfa573bed7ebwindows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script

Definition

Requirements: Script Block Logging must be enabled

Detection Logic
Detection Logic2 selectors
detection:
    webclient:
        ScriptBlockText|contains: 'System.Net.WebClient'
    download:
        ScriptBlockText|contains:
            - '.DownloadFile('
            - '.DownloadFileAsync('
            - '.DownloadString('
            - '.DownloadStringAsync('
    condition: webclient and download
False Positives

PowerShell scripts that download content from the Internet

MITRE ATT&CK
Related Rules
Derived

65531a81-a694-4e31-ae04-f8ba5bc33759

Rule not found
Rule Metadata
Rule ID
403c2cc0-7f6b-4925-9423-bfa573bed7eb
Status
test
Level
medium
Type
Detection
Created
Sun Mar 05
Modified
Fri Dec 02
Path
rules/windows/powershell/powershell_script/posh_ps_susp_download.yml
Raw Tags
attack.executionattack.t1059.001
View on GitHub