Detectionmediumtest

Suspicious PowerShell Download - Powershell Script

Detects suspicious PowerShell download command

Open in Detection LabConvert ruleBuild Package
Florian Roth (Nextron Systems)Created 2017-03-05Updated 2022-12-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
2017-03-05
Modified
2022-12-02
Path
rules/windows/powershell/powershell_script/posh_ps_susp_download.yml
Raw Tags
attack.executionattack.t1059.001
View on GitHub