Windows PowerShell dropping a .ps1 script from powershell.exe or pwsh.exe

Alerts when PowerShell creates a dropped .ps1 script file on Windows, excluding common benign temp and test outputs.

FreeReviewedSigma · Low · v2
Product
windows
Category
file_event
Author
frack113 (SigmaHQ), DRL 1.1
Published
2023-05-09
Updated
2026-07-31

What it detects

This rule identifies instances where PowerShell (powershell.exe or pwsh.exe) creates or writes a script file with a .ps1 extension. Dropping scripts onto disk can indicate staging for later execution or persistence-related workflow, even though the activity can be benign in administrative use. It relies on Windows file event telemetry capturing the executing process path and the target filename, with exclusions for specific temporary and __PSScriptPolicyTest_ paths.

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.