Detectionlowtest

Password Policy Discovery With Get-AdDefaultDomainPasswordPolicy

Detetcts PowerShell activity in which Get-Addefaultdomainpasswordpolicy is used to get the default password policy for an Active Directory domain.

Open in Detection LabConvert ruleBuild Package
François HubautCreated 2022-03-17bbb9495b-58fc-4016-b9df-9a3a1b67ca82windows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script

Definition

Requirements: Script Block Logging must be enabled

Detection Logic
Detection Logic1 selector
detection:
    selection:
        ScriptBlockText|contains: Get-AdDefaultDomainPasswordPolicy
    condition: selection
False Positives

Legitimate PowerShell scripts

Rule Metadata
Rule ID
bbb9495b-58fc-4016-b9df-9a3a1b67ca82
Status
test
Level
low
Type
Detection
Created
2022-03-17
Path
rules/windows/powershell/powershell_script/posh_ps_susp_get_addefaultdomainpasswordpolicy.yml
Raw Tags
attack.discoveryattack.t1201
View on GitHub