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

Event ID 3050: The directory has been configured to enforce per-attribute authorization during LDAP add operations

Written by a domain controller when the CVE-2021-42291 check for LDAP add operations on computer objects is set to enforcement (character 28 of dSHeuristics at 1). From then on, add requests beyond the creator's rights are refused.

Log source
Directory Service log
Detection value
Context
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
Not read by our detection rules yet

When it is written

KB5008383, released with the November 9, 2021 updates for CVE-2021-42291, adds authorization checks for users without domain administrator rights who create computer objects, or objects of a class derived from computer, with an LDAP add operation. Character 28 of the forest-wide dSHeuristics attribute sets the mode of that check: 0 audit mode (the default after the update), 1 enforcement, 2 disabled. Microsoft lists three mode change events written when that character changes: 3050 for enforcement, 3051 for audit mode and 3052 for disabled. 3050 says that the directory now enforces per-attribute authorization during LDAP add operations, that this is the most secure setting and that no further action is required. Microsoft gives it the event type Informational; the text carries no values.

From then on, an add request that includes attributes the requester may not write is denied and logged as 3044 instead of being allowed and logged as 3047. A security descriptor included in the add request is refused (3045 instead of 3048) when implicit owner rights are blocked as well, which the protocol specification (MS-ADTS) ties to character 29.

KB5008383 does not say whether every domain controller writes the event when the change replicates to it, or whether it is repeated, for example when the service starts. The event does not name who made the change. Microsoft notes that AD LDS writes 3050, 3051, 3053 and 3054 as well, to its own log, which this library does not cover.

Why a defender reads it next to the events the rules read: the library's rules for computer objects created with unauthorized attributes read the denials 3044 to 3046, the audit events 3047 to 3049 and the switch-off events 3052 and 3055. 3050 marks the moment the add check started to block, which tells you which of those events to expect from that domain controller afterwards.

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.

The event is written by domain controllers with the November 9, 2021 or later updates; nothing else needs to be turned on. To see the current state of the forest, read dSHeuristics (read only, Active Directory module); character 28 at 1 is the state this event announces:

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

MS-ADTS now also lists a value 3 for character 28 (Windows 11, version 26H1 and later) and treats any character other than 0 to 3 as 1; KB5008383 documents no mode change event for 3. To learn who changed the attribute, the domain controller that received the write logs event 5136 with the old and new string when an audit entry (SACL) on the CN=Directory Service object covers writes to dSHeuristics, and Audit Directory Service Changes is on.

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
Event TextFixed text with no inserted values: the directory enforces per-attribute authorization during LDAP add operations, this is the most secure setting, and no further action is required. It does not say who changed the setting or when; read that from event 5136 on the dSHeuristics attribute.

Values to know

Event Text

ValueMeaningSignal
to enforce per-attribute authorizationEvent 3050, this event: enforcement, character 28 is 1Microsoft calls it the most secure setting.Expected
Warning events will be logged, but no requests will be blockedEvent 3051: audit mode, character 28 is 0 or not set (the default after the update)Worth knowing
No events will be logged, and no requests will be blockedEvent 3052: the check and its events are off, character 28 is 2Microsoft: not secure, only as a temporary troubleshooting step.Attack signal

Volume and noise

The event belongs to a planned change: the forest moves from audit mode to enforcement once the audit events show no unexpected privileges, as Microsoft recommends. It should be rare and match a change record.

Keeping it manageable

  • Keep every mode change event (3050 to 3055): they are rare, and each one changes what the CVE-2021-42291 events of that domain controller mean.
  • Pair it with event 5136 on dSHeuristics to see who made the change and from which session.
  • After 3050, a provisioning process that fails shows up as 3044. Microsoft's guidance is to delegate the specific permission it needs on a dedicated organizational unit, not to lower the setting or to add the account to Domain Admins.

Attacks this event reveals

No detection rule or detection logic in our library reads this event yet. It is documented here because it sits next to the events they read: it explains them, follows from them or is the trace a defender looks for around them (see Related events).

Frequently asked questions

What does event 3050 mean?

Character 28 of the forest's dSHeuristics attribute is now 1. The CVE-2021-42291 check for LDAP add operations on computer objects is enforced: users without domain administrator rights can no longer create a computer object with attributes they may not write. Microsoft calls it the most secure setting.

Do I need to do anything after event 3050?

Microsoft's event text says no further action is required. Watch event 3044 afterwards: a provisioning or domain join process that relied on more rights than it has is now refused, and Microsoft advises delegating the specific permission it needs rather than turning enforcement off.

How do I find out who enabled enforcement?

Event 3050 does not say. With an audit entry on the Directory Service object of the configuration partition and Audit Directory Service Changes turned on, the domain controller that received the write logs event 5136 with the old and new dSHeuristics string and the account.

References