Skip to content
Threat Feed
high advisory

Suspicious PowerShell Invoke-WebRequest Usage for File Downloads

This threat brief details the detection of suspicious PowerShell Invoke-WebRequest activity used to download payloads into high-risk, world-writable directories on Windows systems.

Adversaries frequently abuse built-in Windows administrative utilities, specifically the PowerShell Invoke-WebRequest (and its aliases: iwr, curl, wget), to facilitate the download of second-stage payloads from remote infrastructure. By targeting non-standard, world-writable directories such as Temp, AppData, or the Public user profile, attackers attempt to bypass file integrity monitoring or application control policies. This activity is a known component of various campaigns, including ransomware deployments where adversaries sideload beacons or malware components via living-off-the-land techniques. Monitoring for these specific command-line flags and directory paths is essential for early detection of initial access or post-exploitation stage activities.

Impact

Successful exploitation of this technique typically precedes full system compromise, malware execution, or sensitive data exfiltration. Adversaries using these tools within common directory structures can effectively camouflage malicious file drops as legitimate system or user activity, potentially delaying detection until post-delivery stages like execution or persistence are established.

Recommendation

Deploy the provided Sigma rule to monitor for suspicious command-line patterns involving PowerShell web requests directed at high-risk file system locations.

  • Enable Sysmon or Windows Event Log (Event ID 4688) process creation logging to populate the required fields for detection.
  • Tune the detection to exclude legitimate software installers or administrative scripts that use standardized directory structures for temporary file processing.
  • Review internal scripts that automate file retrieval to ensure they use approved organizational infrastructure rather than public/temp directory locations.

Immediate actions

Deploy Sigma rule 5e3cc4d8 to monitor PowerShell downloader activity.

Detection Engineering 72h

Mitigations

Restrict write access to public/temp directories for non-service accounts.

short_term IT Operations

T1105

Detection coverage 1

Detect Suspicious Invoke-WebRequest Execution

high

Detects the use of PowerShell web request cmdlets directed at high-risk directories such as Temp, AppData, or Public.

sigma tactics: command-and-control techniques: T1105 sources: process_creation, windows

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