DMSA Service Account Created in Specific OUs - PowerShell

 Original Source: [Sigma source]
Title: DMSA Service Account Created in Specific OUs - PowerShell
Status: experimental
Description: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.
References:
  -https://www.akamai.com/blog/security-research/abusing-bad-successor-for-privilege-escalation-in-active-directory
Author: Swachchhanda Shrawan Poudel (Nextron Systems)
Date: 2025-05-24
modified:None
Tags:
  • -'attack.privilege-escalation'
  • -'attack.initial-access'
  • -'attack.persistence'
  • -'attack.stealth'
  • -'attack.t1078.002'
  • -'attack.t1098'
Logsource:
  • category: ps_script
  • product: windows
Detection:
  selection:
    ScriptBlockText|contains|all:
      -'New-ADServiceAccount'
      -'-CreateDelegatedServiceAccount'
      -'-path'

  condition:selection
Falsepositives:
  -Unknown
Level: medium