PowerShell script exfiltration using Invoke-WebRequest with POST or PUT

PowerShell scripts referencing Invoke-WebRequest with -Method POST/PUT indicate potential data upload behavior.

FreeReviewedSigma · Low · v2
Product
windows
Category
ps_script
Author
frack113 (SigmaHQ), DRL 1.1
Published
2022-01-07
Updated
2026-07-31

ATT&CK techniques

Exfiltration
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Impact

What it detects

This rule flags Windows PowerShell script content that invokes Invoke-WebRequest (or common aliases) and specifies HTTP upload semantics via POST or PUT. Attackers use these methods to send data to external endpoints, making the behavior a useful indicator of potential exfiltration or staging. It relies on ScriptBlockText telemetry capturing both the cmdlet usage and the HTTP -Method argument values.

Related detections9 linkedT1020 — drag to rearrange
Detect Email Forwarding/Redirecting via Exchange PowerShell InboxRule Cmdlets on Windows
AWS CloudTrail: RDS Cluster Modification or Deletion (ModifyDBCluster/DeleteDBCluster)
GitHub Audit Log: Repository or Organization Transfer Detected
GitHub Audit Logs: Private/Internal Forking Policy Enabled or Cleared
O365 Mail Forwarding and Redirecting Rule Changes
PowerShell Script Reading Files and Resolving DNS Host Entries
Microsoft 365 Cloud App Security Alerts on Suspicious Inbox Forwarding Rules
AWS CloudTrail RDS ModifyDBInstance Master User Password Change
AWS CloudTrail: RestoreDBInstanceFromDBSnapshot Creates Public RDS Instance
PowerShell script exfiltration using Invoke-WebRequest with POST or PUT
Pivot detection · T1020 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.