VeriKQL by Kaushik Saha

T1136.002 Domain Account

Persistenceon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0003 T1136.002 Detection Strategy - Domain Account Creation Across Platforms

AN0006 Windows

Adversary uses built-in tools such as 'net user /add /domain' or PowerShell to create a domain user account. The behavior chain includes: (1) suspicious process execution on a domain controller followed by (2) user account creation event (Event ID 4720) on the same host.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SecurityEventCode=4720
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4720)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4720)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4720)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

WinEventLog:SysmonEventCode=1
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (1)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (1)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

AN0007 Linux

Adversary with access to domain management tools (e.g., `realmd`, `samba-tool`, `ldapmodify`) creates a new domain user via command-line utilities. Behavior chain: LDAP command or script triggers → user entry added in AD via Kerberos/LDAP traffic.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLexecution of realmd, samba-tool, or ldapmodify with user-related argumentsNot mapped to Sentinel yet.
NSM:FlowTGS-REQ and AS-REQ seen for new user shortly after domain-modifying processNot mapped to Sentinel yet.

AN0008 macOS

macOS clients joined to AD via LDAP may script account provisioning via `dsconfigad`, `dscl`, or LDAP scripts. Detection occurs when such tools run on a domain-joined system, followed by authentication attempts by a previously unseen account.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogdsconfigad or dscl with create or append options for AD-bound usersNot mapped to Sentinel yet.
macos:unifiedlogUserLoggedInNot mapped to Sentinel yet.

Content Hub rules tagged with it (2)

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

How the Content Hub rules for T1136.002 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

6 SigmaHQ community rules name it in their tags.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.