Sigma rule: DMSA Service Account Created in Specific OUs - PowerShell

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-e8d77df5eeda, updated 2025-05-24T00:00:00.000Z.

Rule

Title
DMSA Service Account Created in Specific OUs - PowerShell
Status
experimental
Level
medium
Author
Swachchhanda Shrawan Poudel (Nextron Systems)
Date
2025-05-24
File
rules/windows/powershell/powershell_script/posh_ps_create_new_dmsasvc_account.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

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.

Log source

product
windows
category
ps_script

Detection

selection:
    ScriptBlockText|contains|all:
        - 'New-ADServiceAccount'
        - '-CreateDelegatedServiceAccount'
        - '-path'
condition: selection

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.privilege-escalation
  • attack.initial-access
  • attack.persistence
  • attack.stealth
  • attack.t1078.002
  • attack.t1098

MITRE ATT&CK ids this rule names

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_create_new_dmsasvc_account.yml

Sources and licences

  • SigmaHQ

    "DMSA Service Account Created in Specific OUs - PowerShell" by Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_create_new_dmsasvc_account.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: DMSA Service Account Created in Specific OUs - PowerShell",
entity page, dataset version ref-e8d77df5eeda, updated 2025-05-24T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/02122374-b74e-495c-b285-9e4da973f3d6 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 02122374-b74e-495c-b285-9e4da973f3d6, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.