Possible Creation of PowerShell Module File (via file_event)
This rule detects the creation of a new PowerShell module ".psm1", ".psd1", ".dll", ".ps1", etc.
SigmalowWindowsv1
sigma
possible-creation-of-powershell-module-file-via-file-event
title: Possible Creation of PowerShell Module File (via file_event)
id: b746313e-6c51-5cc5-848e-051dfe17b799
status: stable
description: This rule detects the creation of a new PowerShell module ".psm1", ".psd1", ".dll", ".ps1", etc.
references:
- Internal Research
- https://learn.microsoft.com/en-us/powershell/scripting/developer/module/understanding-a-windows-powershell-module?view=powershell-7.3
author: Huntrule Team
date: 2026-06-13
tags:
- attack.persistence
- attack.t1546
logsource:
category: file_event
product: windows
detection:
selection:
Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
TargetFilename|contains:
- '\WindowsPowerShell\Modules\'
- '\PowerShell\7\Modules\'
condition: selection
falsepositives:
- Unknown
level: low
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.