Windows File Creation: __PSScriptPolicyTest_ PowerShell Test Script Written by Uncommon Process

Alert on __PSScriptPolicyTest_ PowerShell script file creation when the writing process is not an expected PowerShell component.

FreeReviewedSigma · Medium · v4
Product
windows
Category
file_event
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2023-06-01
Updated
2026-10-21

What it detects

This rule flags file creation events where the target filename contains "__PSScriptPolicyTest_", indicating creation of a PowerShell Applocker policy test script. Because this is typically generated by specific PowerShell binaries, an uncommon generating process may indicate evasive scripting or abnormal tooling. It relies on Windows file event telemetry, matching the target filename pattern and excluding several known PowerShell and related help/utility executables.

Changelog

v4
  1. v4
    Candidate ingested via manual entry.2026-10-21
  2. v2
    Candidate ingested via manual entry.2026-07-31
  3. 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.