Windows File Download Via PowerShell
The following analytic detects the use of PowerShell's download methods such as "DownloadString" and "DownloadData" from the WebClient class or Invoke-WebRequest and it's aliases "IWR" or "Curl". It leverages data…
Description
The following analytic detects the use of PowerShell's download methods such as "DownloadString" and "DownloadData" from the WebClient class or Invoke-WebRequest and it's aliases "IWR" or "Curl". It leverages data from Endpoint Detection and Response (EDR) agents, focusing on process execution logs that include command-line details. This activity can be significant such methods and functions are commonly used in malicious PowerShell scripts to fetch and execute remote code. If confirmed malicious, this behavior could allow an attacker to download and run arbitrary code, potentially leading to unauthorized access, data exfiltration, or further compromise of the affected system.
Detection logic
Detection requirements
- Platform
- ESXiLinuxmacOSNetwork DevicesWindows
The rule states no platform. This is derived from the 2 ATT&CK techniques it maps to.
Known benign triggers
- False positives may be present and filtering will need to occur by parent process or command line argument. It may be required to modify this query to an EDR product for more granular coverage.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| blog.malwarebytes.com/malwarebytes-news/2021/02/lazyscripter-from-empire-to-double-rat/ | 11from 2 sources |
| github.com/redcanaryco/atomic-red-team/blob/388942adbd9641f4dfdcf079d7efe9a75ec0ac43/atomics/T1105/T1105.yaml#L816 | 10 |
| github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1059.001/T1059.001.md | 4 |
| learn.microsoft.com/en-us/dotnet/api/system.net.webclient?view=net-9.0#methods | Only this detection cites it |
| thedfirreport.com/2023/05/22/icedid-macro-ends-in-nokoyawa-ransomware/ | 12 |
From the source
- At source
- Open at source
- Upstream identifier
- 58c4e56c-b5b8-46a3-b5fb-6537dca3c6de
- Tagged by the source as
- APT37 Rustonotto and FadeStealerCisco Network Visibility Module AnalyticsData DestructionGhostRedirector IIS Module and Rungan BackdoorHAFNIUM GroupHermetic WiperIcedIDIngress Tool TransferMalicious PowerShellMicrosoft WSUS CVE-2025-59287NetSupport RMM Tool AbuseNPM Supply Chain CompromisePhemedrone StealerPHP-CGI RCE Attack on Japanese OrganizationsSolarWinds WHD RCE Post ExploitationStealC StealerSysAid On-Prem Software CVE-2023-47246 VulnerabilityTuoniWinter VivernXWormEndpointendpointSplunk CloudSplunk EnterpriseSplunk Enterprise Securityendpoint
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Published
- Oct 13, 2026
- Version
- 2