When it is written
KB5008383, released with the November 9, 2021 updates for CVE-2021-42291, controls the temporary removal of implicit owner rights with character 29 of the forest-wide dSHeuristics attribute: 0 audit mode (the default), 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. 3055 says that the directory allows implicit owner privileges when the nTSecurityDescriptor attribute is first set or modified during LDAP add and modify operations, that no events will be logged and 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 Error.
From then on, the owner of a computer object (usually the user who created it) can again rewrite its security descriptor through the implicit READ_CONTROL and WRITE_DAC rights that MS-ADTS describes, and the modify events 3046 and 3049 stop.
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.
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.
reg query "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics"wevtutil gl "Directory Service"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 2 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
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.
| Field | What it holds |
|---|---|
| Event Text | Fixed text with no inserted values: implicit owner privileges are allowed when the nTSecurityDescriptor attribute is set or modified, no events will be logged and no requests blocked, and the setting is not secure. It does not say who changed the setting or when; read that from event 5136 on the dSHeuristics attribute. |
Values to know
Event Text
| Value | Meaning | Signal |
|---|---|---|
to block implicit owner privileges | Event 3053: enforcement, character 29 is 1Microsoft calls it the most secure setting. | Expected |
Warning events will be logged, but no requests will be blocked | Event 3054: audit mode, character 29 is 0 or not set (the default after the update) | Worth knowing |
No events will be logged, and no requests will be blocked | Event 3055, this event: the check and its events are off, character 29 is 2Microsoft: not secure, only as a temporary troubleshooting step. | Attack signal |
Volume and noise
Microsoft accepts value 2 only as a temporary troubleshooting step, so the event should be rare and explained by a change record. A forest administrator who disables the check to unblock a process that relies on owner rights is the ordinary cause; the setting should then be restored.
Keeping it manageable
- Keep every 3055 and alert on it: the rule matches the event ID alone, and the event is rare.
- Pair it with event 5136 on
dSHeuristics(the dSHeuristics Modification rule) to see who made the change and from which session. - Once the troubleshooting is over, check that character 29 is back at 1 (or 0), and expect event 3053 or 3054 when it changes.
Attacks this event reveals
Detection rules that read this event:
Frequently asked questions
What does event 3055 mean?
Character 29 of the forest's dSHeuristics attribute was set to 2. The CVE-2021-42291 protection that removes the implicit rights of the owner of a computer object is switched off: nothing is blocked and no audit event is written. Microsoft calls the setting not secure and acceptable only as a temporary troubleshooting step.
Which events stop after event 3055?
The events of the implicit owner check for modify requests, 3046 (denied) and 3049 (audited). Microsoft's text names add operations as well, and by the protocol specification the refusal of a security descriptor in an add request (3045) also depends on blocked owner rights. The add check for attributes depends on character 28 and is announced separately (3050, 3051, 3052).
How do I find out who switched the check off?
Event 3055 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.
How do I turn the check back on?
Set character 29 of dSHeuristics to 1 for enforcement (or 0 for audit mode), keeping every other character of the string. KB5008383 also repeats that in a string of 10 characters or more the 10th must be 1, and in one of 20 or more the 20th must be 2.