Detectionmediumexperimental
DMSA Service Account Created in Specific OUs - PowerShell
Detects the creation of a dMSA service account using the New-ADServiceAccount cmdlet in certain OUs. The fact that the cmdlet is used to create a dMSASvc account in a specific OU is highly suspicious. It is a pattern trying to exploit the BadSuccessor privilege escalation vulnerability in Windows Server 2025. On top of that, if the user that is creating the dMSASvc account is not a legitimate administrator or does not have the necessary permissions, it is a strong signal of an attempted or successful abuse of the BaDSuccessor vulnerability for privilege escalation within the Windows Server 2025 Active Directory environment.
Swachchhanda Shrawan Poudel (Nextron Systems)Created 2025-05-2402122374-b74e-495c-b285-9e4da973f3d6windows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script
Detection Logic
Detection Logic1 selector
detection:
selection:
ScriptBlockText|contains|all:
- 'New-ADServiceAccount'
- '-CreateDelegatedServiceAccount'
- '-path'
condition: selectionFalse Positives
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
References
MITRE ATT&CK
Rule Metadata
Rule ID
02122374-b74e-495c-b285-9e4da973f3d6
Status
experimental
Level
medium
Type
Detection
Created
2025-05-24
Path
rules/windows/powershell/powershell_script/posh_ps_create_new_dmsasvc_account.yml
Raw Tags
attack.privilege-escalationattack.initial-accessattack.persistenceattack.stealthattack.t1078.002attack.t1098