Skip to content
Threat Feed
high threat

PowerShell Download and Execution Cradles

This brief documents common PowerShell patterns used by threat actors, including FIN7, to download and execute arbitrary payloads directly into memory using download cradles.

Threat actors, including groups like FIN7, frequently employ PowerShell download cradles to facilitate the delivery and execution of malicious code in memory. These techniques bypass traditional file-based antivirus solutions by fetching remote content - often second-stage backdoors or beacons - and piping it directly into the Invoke-Expression (IEX) cmdlet. These commands are often obfuscated to hinder signature-based detection. This method is a hallmark of initial access and secondary infection stages across various targeted campaigns, particularly against high-value infrastructure like Veeam backup servers. Defenders must monitor process command lines for the combination of download cmdlets and execution primitives to identify these potentially malicious memory-only execution chains.

Attack Chain

  1. Attacker gains initial access or escalation, dropping a short PowerShell stubs.
  2. The stubs use cmdlets such as 'Invoke-WebRequest' or 'irm' to initiate a web request.
  3. The request targets an attacker-controlled URI to download a remote payload.
  4. The downloaded string or file content is passed via the pipeline to 'IEX' or 'Invoke-Expression'.
  5. The 'IEX' alias (including obfuscated variations like 'IEX') executes the payload content in memory.
  6. The payload, often an obfuscated script, initiates a C2 connection or performs credential harvesting.
  7. Final objective (exfiltration, ransomware deployment, or secondary persistence) is achieved in the context of the running PowerShell process.

Impact

Successful execution of these cradles allows for fileless malware deployment, enabling attackers to maintain persistence, escalate privileges, and exfiltrate data while minimizing their footprint on the target disk. Observed targets include enterprise infrastructure and backup systems.

Recommendation

  1. Deploy the Sigma rule below to detect the concatenation of download cmdlets and execution primitives.
  2. Baseline your environment for legitimate PowerShell installers that may use similar syntax and add them to a strict allowlist.
  3. Enable Enhanced PowerShell Logging (Script Block Logging) to capture the de-obfuscated content of these execution cradles.
  4. Monitor for PowerShell instances originating from non-administrative contexts or uncommon parent processes.

Immediate actions

Deploy the Sigma rule to detect PowerShell download and execution cradles.

Detection Engineering 48h

Threat Hunt

Search for process creation events where PowerShell command lines include both download cmdlets and 'IEX'.

T1059.001 high high confidence hunt now

Data: CommandLine

Detection coverage 1

Detect PowerShell Download and Execution Cradles

high

Detects the use of PowerShell cmdlets to download remote content combined with execution via Invoke-Expression.

sigma tactics: execution techniques: T1059.001 sources: process_creation, windows

Detection queries are available on the platform. Get full rules →