Detectionmediumtest

Manipulation of User Computer or Group Security Principals Across AD

Adversaries may create a domain account to maintain access to victim systems. Domain accounts are those managed by Active Directory Domain Services where access and permissions are configured across systems and services that are part of that domain..

Open in Detection LabConvert ruleBuild Package
François HubautCreated 2021-12-28b29a93fb-087c-4b5b-a84d-ee3309e69d08windows
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: System.DirectoryServices.AccountManagement
    condition: selection
False Positives

Legitimate administrative script

Testing & Validation

Regression Tests

by frack113
Positive Detection Test1 matchevtx

Microsoft-Windows-PowerShell

MITRE ATT&CK
Rule Metadata
Rule ID
b29a93fb-087c-4b5b-a84d-ee3309e69d08
Status
test
Level
medium
Type
Detection
Created
2021-12-28
Path
rules/windows/powershell/powershell_script/posh_ps_directoryservices_accountmanagement.yml
Raw Tags
attack.persistenceattack.t1136.002
View on GitHub