Windows PowerShell: ScriptBlock using security descriptor (Win32_Trustee/Win32_Ace) and LSA data strings

Alerts on PowerShell ScriptBlock text that manipulates security descriptors and LSA-related identifiers, indicating possible persistence behavior.

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

What it detects

This rule flags PowerShell ScriptBlock content that includes multiple Win32 security descriptor elements (Win32_Trustee and Win32_Ace fields like AccessMask, AceType, and SetSecurityDescriptor) along with specific LSA-related string patterns. Attackers can use these combinations to modify security descriptor data in ways that may support stealthy persistence or defense-impairment objectives. Detection relies on Script Block logging telemetry that captures ScriptBlockText for these keywords and substrings.

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.