Skip to content
Threat Feed
medium advisory

Detection of Suspicious Web Request Execution via PowerShell and CLI

This brief documents detection logic for identifying potential malicious file downloads and C2 communication using native Windows command-line tools and PowerShell cmdlets.

Attackers frequently leverage built-in Windows utilities and PowerShell cmdlets to download secondary payloads, fetch malicious configurations, or establish command-and-control (C2) channels. These tools are often preferred because they are natively present in the operating system, allowing attackers to perform network requests while blending in with legitimate administrative activity. Common utilities include curl, wget, and various PowerShell cmdlets such as Invoke-WebRequest and Start-BitsTransfer. Monitoring the execution of these commands is essential for detecting the initial stage of payload delivery or subsequent exfiltration attempts. This brief provides a detection capability for these patterns, focusing on command-line arguments that indicate external data retrieval.

Impact

Successful abuse of these techniques enables attackers to transition from initial access to full payload execution, facilitate lateral movement, or exfiltrate sensitive data. If these activities are not detected, adversaries may maintain persistence and perform data theft undetected for extended periods.

Recommendation

Deploy the provided Sigma rule to your SIEM to monitor for the use of web request-related command-line arguments. Prioritize alerts from servers and endpoints that do not typically require external connectivity or the use of automated download utilities.


Immediate actions

Deploy the Sigma rule to the SIEM environment

Detection Engineering 48h

Threat Hunt

Search for historical execution of Invoke-WebRequest or curl in process logs

T1059.001 medium medium confidence hunt now

Data: CommandLine

Detection coverage 1

Detect Usage of Web Request Commands and Cmdlets

medium

Detects the use of various web request commands with command-line tools and Windows PowerShell cmdlets via CommandLine.

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

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