PowerShell AD Account Creation Library Usage via AccountManagement Namespace on Windows

Alert on PowerShell Script Block content referencing System.DirectoryServices.AccountManagement, indicating potential AD principal manipulation.

FreeReviewedSigma · Medium · v2
Product
windows
Category
ps_script
Author
frack113 (SigmaHQ), DRL 1.1
Published
2021-12-28
Updated
2026-07-31

ATT&CK techniques

Persistence
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags PowerShell scripts that reference the System.DirectoryServices.AccountManagement namespace, which is commonly used to create or manage Active Directory accounts and related security principals. Attackers may use this capability to establish domain accounts for persistence and access across systems within an AD domain. The detection relies on PowerShell Script Block Logging telemetry capturing the script contents.

Related detections3 linkedT1136.002 — drag to rearrange
Malicious User Creation via Commandline (via process_creation)
Windows PsExec Remote Execution Creates PSEXEC-*.key File Artefact
Windows Security: Suspicious Local Account Created with ANONYMOUS LOGON SamAccountName
PowerShell AD Account Creation Library Usage via AccountManagement Namespace on Windows
Pivot detection · T1136.002 · 3 related

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.