Detectionmediumtest

Suspicious Get-ADReplAccount

The DSInternals PowerShell Module exposes several internal features of Active Directory and Azure Active Directory. These include FIDO2 and NGC key auditing, offline ntds.dit file manipulation, password auditing, DC recovery from IFM backups and password hash calculation.

Open in Detection LabConvert ruleBuild Package
François HubautCreated 2022-02-06060c3ef1-fd0a-4091-bf46-e7d625f60b73windows
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|all:
            - Get-ADReplAccount
            - '-All '
            - '-Server '
    condition: selection
False Positives

Legitimate PowerShell scripts

Testing & Validation

Regression Tests

by frack113
Positive Detection Test1 matchevtx

Microsoft-Windows-PowerShell

MITRE ATT&CK
Rule Metadata
Rule ID
060c3ef1-fd0a-4091-bf46-e7d625f60b73
Status
test
Level
medium
Type
Detection
Created
2022-02-06
Path
rules/windows/powershell/powershell_script/posh_ps_get_adreplaccount.yml
Raw Tags
attack.credential-accessattack.t1003.006
View on GitHub