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

Event ID 3054: The directory has been configured to allow implicit owner privileges

Written by a domain controller when the CVE-2021-42291 implicit owner check is in audit mode (character 29 of dSHeuristics at 0): owners may still rewrite a computer object's security descriptor, logged as 3049.

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, sets the mode of its implicit owner check with character 29 of the forest-wide dSHeuristics attribute: 0 audit mode, 1 enforcement, 2 disabled. Microsoft lists three mode change events written when that character changes: 3053 for enforcement, 3054 for audit mode and 3055 for disabled. 3054 says that the directory allows implicit owner privileges when the nTSecurityDescriptor attribute is first set or modified during LDAP add and modify operations, that warning events will be logged but no requests will be blocked, and that the setting is not secure and should only be a temporary troubleshooting step. Microsoft gives it the event type Warning; the text carries no values.

KB5008383 also says that domain controllers with the November 9, 2021 or later updates are in audit mode by default, and asks administrators to stay there until the audit events show no unexpected privileges for a sufficient time. It ties the mode change events to a change of character 29 and does not say whether a domain controller also writes 3054 for the default state, for example when the service starts, or whether every domain controller writes it when a change replicates to it. The event does not name who made the change.

In this mode, the owner of a computer object (usually the user who created it) who rewrites its security descriptor through the implicit owner rights is let through, and the domain controller logs 3049; Microsoft also lists 3056, a query of the effective rights on an object that returned WRITE_DAC only because implicit owner privileges are allowed. The protocol specification (MS-ADTS) adds that on Windows 11, version 26H1 and later, the owner's implicit rights are blocked at 0 as well, under finer rules; KB5008383 does not cover that version.

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 audit events 3047 to 3049 and the denials 3044 to 3046. A 3054 that follows a 3053 means enforcement was turned off: changes that were refused (3046) succeed again and show only as audit events.

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 29 at 0, or a string too short to have a 29th character, is the audit mode this event announces:

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

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 allows implicit owner privileges when the nTSecurityDescriptor attribute is first set or modified during LDAP add and modify operations, warning events will be logged but no requests blocked, and the setting is not secure and only a temporary troubleshooting step. 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 block implicit owner privilegesEvent 3053: enforcement, character 29 is 1Microsoft calls it the most secure setting.Expected
Warning events will be logged, but no requests will be blockedEvent 3054, this event: audit mode, character 29 is 0 or not set (the default after the update)After a 3053, it means enforcement was turned off.Worth knowing
No events will be logged, and no requests will be blockedEvent 3055: the check and its events are off, character 29 is 2Microsoft: not secure, only as a temporary troubleshooting step.Attack signal

Volume and noise

The event belongs to configuration work on the forest: moving into audit mode, or back from enforcement while troubleshooting a process that relies on owner rights. 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.
  • Alert on a 3054 that follows a 3053, and pair it with event 5136 on dSHeuristics to see who made the change.
  • While in audit mode, read every 3049: each one is a computer object whose permissions were rewritten by its owner. Once they are explained, Microsoft recommends moving to enforcement.

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 3054 mean?

Character 29 of the forest's dSHeuristics attribute is in audit mode. The owner of a computer object can still rewrite its security descriptor through the owner's implicit rights; the domain controller logs such changes (3049) but blocks nothing.

Event 3054 says the setting is not secure, but audit mode is the default. Which is right?

Both are Microsoft's words. KB5008383 makes audit mode the default after the November 9, 2021 updates so that administrators can find processes that rely on owner rights, and asks them to move to enforcement once the audit events show no unexpected privileges for a sufficient time. The event text reflects that audit mode lets the changes through.

Should I worry about a 3054 after the forest was in enforcement?

Yes, until it is explained. Someone set character 29 back to 0, so owners of computer objects can again rewrite their permissions, and the changes show only as 3049. Find the write in event 5136 on dSHeuristics and confirm it was a planned troubleshooting step.

References