Detectionmediumtest

PowerShell Download Pattern

Detects a Powershell process that contains download commands in its command line string

Open in Detection LabConvert ruleBuild Package
Florian Roth (Nextron Systems), oscd.community, Jonhnathan RibeiroCreated 2019-01-16Updated 2025-10-203b6ab547-8ec2-4991-b9d2-2b06702a48d7windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_img:
        - Image|endswith:
              - '\powershell_ise.exe'
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'PowerShell_ISE.EXE'
              - 'PowerShell.EXE'
              - 'pwsh.dll'
    selection_cli:
        CommandLine|contains|all:
            - 'new-object'
            - 'net.webclient).'
            - 'download'
        CommandLine|contains:
            - 'string('
            - 'file('
    condition: all of selection_*
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Testing & Validation

Regression Tests

by frack113
Positive Detection Test1 matchevtx

Microsoft-Windows-Sysmon

MITRE ATT&CK
Rule Metadata
Rule ID
3b6ab547-8ec2-4991-b9d2-2b06702a48d7
Status
test
Level
medium
Type
Detection
Created
2019-01-16
Modified
2025-10-20
Path
rules/windows/process_creation/proc_creation_win_powershell_download_patterns.yml
Raw Tags
attack.executionattack.t1059.001
View on GitHub