Windows PowerShell Module File Creation via PowerShell Processes

Alert when PowerShell creates module-related files under WindowsPowerShell or PowerShell 7 module directories.

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

What it detects

This rule flags file creation events where a PowerShell process (powershell.exe or pwsh.exe) writes files under Windows PowerShell module directories. Newly created module artifacts (such as .psm1, .psd1, .ps1, or .dll) can enable persistence or impact execution by introducing code that PowerShell can later load. Detection relies on file event telemetry including the creating process image path and the target filename path under Modules directories.

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.