Possible Password Policy Enumeration With Get-AdDefaultDomainPasswordPolicy (via ps_script)
This rule detects PowerShell behavior in which Get-Addefaultdomainpasswordpolicy is leveraged to get the default password policy for an Active Directory domain.
SigmalowWindowsv1
sigma
possible-password-policy-enumeration-with-get-addefaultdomainpasswordpolicy-via-ps-script
title: Possible Password Policy Enumeration With Get-AdDefaultDomainPasswordPolicy (via ps_script)
id: a741caaa-65a4-5fe8-b57c-b426a638c742
status: stable
description: This rule detects PowerShell behavior in which Get-Addefaultdomainpasswordpolicy is leveraged to get the default password policy for an Active Directory domain.
references:
- https://attack.mitre.org/techniques/T1201/
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1201/T1201.md#atomic-test-9---enumerate-active-directory-password-policy-with-get-addefaultdomainpasswordpolicy
- https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-addefaultdomainpasswordpolicy?view=windowsserver2022-ps
author: Huntrule Team
date: 2026-05-16
tags:
- attack.discovery
- attack.t1201
logsource:
product: windows
category: ps_script
definition: 'Requirements: Script Block Logging must be enabled'
detection:
selection:
ScriptBlockText|contains: Get-AdDefaultDomainPasswordPolicy
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.