Password Policy Discovery With Get-AdDefaultDomainPasswordPolicy

 Original Source: [Sigma source]
Title: Password Policy Discovery With Get-AdDefaultDomainPasswordPolicy
Status: test
Description:Detetcts PowerShell activity in which Get-Addefaultdomainpasswordpolicy is used to get the default password policy for an Active Directory domain.
References:
  -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: frack113
Date: 2022-03-17
modified:None
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:
  -Legitimate PowerShell scripts
Level: low