1. Resources
  2. Detection sources
  3. Event ID 3044

Event ID 3044: The directory service denied an LDAP add request for the following object

In enforcement mode of the CVE-2021-42291 checks, a domain controller refused to create a computer object because the requester may not write some of the attributes it sent. A blocked attempt to exceed the creator's rights.

Log source
Directory Service log
Detection value
Supporting
Volume
Low (estimate)
Last updated
Log
Directory Service log (Microsoft-Windows-ActiveDirectory_DomainService, on by default)
Logged on
Domain controllers only
Event versions
Not published
Detects
1 attack (1 rule)
MITRE ATT&CK
1 technique in 2 tactics
Threat groups
6 groups that MITRE ATT&CK records using these techniques
Fields the rules read
The event ID and the provider only

When it is written

KB5008383, released with the November 9, 2021 updates for CVE-2021-42291, adds authorization checks for users who create computer objects without having domain administrator rights. A domain controller writes 3044 when the check for LDAP add operations is in enforcement mode and it denies an add request for a computer or computer-derived object because the request includes one or more attributes that the client may not write, judged against the default merged security descriptor (the one the new object would get by default). The event names the object, its class, the user, the client address and the security descriptor that was attempted. Microsoft documents it with the event type Warning, although the request was denied.

The protocol specification (MS-ADTS) gives the detail: members of Domain Admins and Enterprise Admins are not checked, only classes that are computer or derive from it are, and the attributes the class requires and the password attributes are left out of the comparison.

The event exists only on writable domain controllers with the November 9, 2021 or later updates; Microsoft notes that LDAP add and modify operations cannot target read-only domain controllers. AD LDS servers log the same events to their own log, which this page does not cover.

How to turn it on

Microsoft-Windows-ActiveDirectory_DomainService writes the event to the Directory Service log (Event Viewer > Applications and Services Logs > Directory Service), which is on by default. Microsoft

The log needs nothing to be turned on: a domain controller writes it from the moment it is promoted. What Active Directory writes there depends on its diagnostic logging levels, one REG_DWORD value per category under HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics (for example 16 LDAP Interface Events), each from 0 (None) to 5 (Internal). Microsoft's default for every category is 0, which it describes as recording only critical and error events; several warning and information events of this library are nonetheless documented as written at that level (the CVE-2021-42291 events, the daily LDAP summaries). Some events, such as the per-client LDAP signing and channel binding events, are written only at level 2 or higher of their category; their pages say so.

Microsoft recommends keeping the levels at 0 unless you investigate an issue, notes that a higher level adds detail and events, and advises against 3 or more because it costs resources and can slow the server. The levels are set per domain controller, so set them on every domain controller whose events you need. AD LDS instances write the same kind of events to their own instance log, which this library does not cover.

Show the diagnostic logging levels of this domain controller
reg query "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics"
Based on vendor documentation.
Show the log's settings (size and retention)
wevtutil gl "Directory Service"
Based on vendor documentation.

Enforcement is a forest-wide setting: character 28 of the dSHeuristics attribute on CN=Directory Service,CN=Windows NT,CN=Services in the configuration partition. KB5008383 defines 0 as audit mode (the default after the update, and the value when the character is not set), 1 as enforcement and 2 as disabled, which Microsoft does not recommend. This event appears only at 1; at 0 the same request is allowed and logged as 3047. Read the current string (read only, Active Directory module):

Get-ADObject -Identity ("CN=Directory Service,CN=Windows NT,CN=Services," + (Get-ADRootDSE).configurationNamingContext) -Properties dSHeuristics | Select-Object -ExpandProperty dSHeuristics

Microsoft's guidance is to stay in audit mode until the audit events show no unexpected privileges for a sufficient time, then set characters 28 and 29 to 1. When editing the string, keep every other character, and note the rules KB5008383 repeats: in a string of 10 characters or more the 10th must be 1, in one of 20 or more the 20th must be 2.

Fields

The template of this event is not part of client Windows and Microsoft does not publish its XML field names, so the fields are named by the labels of Microsoft’s documentation.

FieldWhat it holds
Object DNDistinguished name of the object the request would have created (Microsoft's placeholder: the created object's DN).
Object classobjectClass of that object: computer or a class derived from it, the only classes the check covers according to MS-ADTS.
UserAccount that sent the add request. Members of Domain Admins and Enterprise Admins are not checked (MS-ADTS), so they do not appear here.
Client IP AddressAddress of the computer that sent the request. Microsoft documents no format.
Security descThe security descriptor that was attempted, as Microsoft's placeholder puts it. Microsoft does not document its format.

Values to know

User

ValueMeaningSignal
A domain join, imaging or provisioning accountA process creating computer accounts with more than it may writeDelegate the missing permission on a dedicated organizational unit, as Microsoft advises, then the events stop.Noise
Any other accountA user who may create computer objects tried to set attributes beyond that rightThe precondition of CVE-2021-42291, blocked here. Look at what else the account did.Attack signal

Object class

ValueMeaningSignal
computerA computer accountExpected
msDS-GroupManagedServiceAccountA group managed service account, a class derived from computerThe check covers every class derived from computer.Worth knowing

Volume and noise

In enforcement mode the event comes from accounts that create computer objects with more than their permissions allow and were not adjusted before enforcement: domain join, imaging and provisioning tools, and third-party products. Microsoft's guidance for such a process is to read the event, find the permission it needs and delegate that limited right on a dedicated organizational unit, not to add the account to Domain Admins.

Keeping it manageable

  • Keep every 3044: the rule matches the event ID alone, and the event is rare once provisioning accounts have the rights they need.
  • Group by User: a provisioning account that produces the event repeatedly needs its permission delegated, as Microsoft recommends; an account that is not a provisioning account needs an investigation.
  • Collect the Directory Service log of every writable domain controller: the event is written only by the one that received the request.

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

Was the computer object created when event 3044 was logged?

No. 3044 is written in enforcement mode and says that the domain controller denied the add request. The audit mode event for the same situation is 3047, after which the object does exist.

Why is a denied request logged as a warning?

That is the event type Microsoft documents for 3044, 3045 and 3046. Filter on the event ID, not on the level.

A provisioning tool fails with event 3044 since enforcement. Should its account become a domain administrator?

Microsoft advises against it. Read the event to see which attributes the request tried to write, then delegate that limited permission to the account on a separate organizational unit set aside for it.

References