When it is written
KB5008383, released with the November 9, 2021 updates for CVE-2021-42291, describes the vulnerability as an LDAP add that creates a computer account with overly permissive access to its security descriptor. In audit mode, the default after the update, a domain controller writes 3048 when an LDAP add request for a computer or computer-derived object includes an nTSecurityDescriptor attribute and the client has no explicit permission to write one or more parts of that new security descriptor, judged against the default merged security descriptor. The request is allowed to proceed: the object exists with the security descriptor that was asked for. The event names the object, its class, the user and the client address, but not the security descriptor itself (unlike 3047).
"Explicit" is defined in the protocol specification (MS-ADTS): WRITE_DAC granted by an access control entry, not merely by being the owner. Members of Domain Admins and Enterprise Admins are not checked, and only computer and its derived classes are.
The event exists only on writable domain controllers with the November 9, 2021 or later updates; domain controllers without the update log nothing for these requests and read-only domain controllers cannot receive them.
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"Audit mode is the default after the update: characters 28 and 29 of the dSHeuristics attribute on CN=Directory Service,CN=Windows NT,CN=Services in the configuration partition at 0 or not set. KB5008383 does not tie 3048 to one of the two characters; in enforcement (both at 1) the same request is denied and logged as 3045, and at 2 the checks and their events are off. 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
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 |
|---|---|
| Object DN | Distinguished name of the object that was created (Microsoft's placeholder: the created object's DN). Read its security descriptor there, since the event does not carry it. |
| Object class | objectClass of that object: computer or a class derived from it, the only classes the check covers according to MS-ADTS. |
| User | Account 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 Address | Address of the computer that sent the request. Microsoft documents no format. |
Values to know
User
| Value | Meaning | Signal |
|---|---|---|
A domain join, imaging or provisioning account | A process that sets its own security descriptor on new computer objectsDelegate the missing permission on a dedicated organizational unit before you enforce. | Noise |
Any other account | A user who may create computer objects gave one a security descriptor of its choice, and succeededWhat CVE-2021-42291 allowed. Read the object's security descriptor and owner now. | Attack signal |
Object class
| Value | Meaning | Signal |
|---|---|---|
computer | A computer account | Expected |
msDS-GroupManagedServiceAccount | A group managed service account, a class derived from computer | Worth knowing |
Volume and noise
The event comes from accounts that create computer objects with a security descriptor of their own: provisioning and deployment processes and third-party products. Microsoft wants these found before enforcement and fixed by delegating the missing permission on a dedicated organizational unit, not by granting domain administrator rights.
Keeping it manageable
- Keep every 3048: the rule matches the event ID alone, and each event is a request that succeeded.
- The event does not include the security descriptor: read it on the new object (Object DN) and compare it with that of a computer account created the normal way.
- Group by User: a known provisioning account needs its permission delegated before you enforce; any other account needs an investigation.
Attacks this event reveals
Detection rules that read this event:
Frequently asked questions
Was the request in event 3048 blocked?
No. It is an audit event: the object was created with the security descriptor that was asked for. Event 3045 is the denial, in enforcement mode.
Why does event 3048 not show the security descriptor while 3047 does?
Microsoft's event text for 3047 and 3044 ends with the attempted security descriptor; the text of 3048 does not include it. Read the security descriptor on the object named in the event.
What makes the security descriptor in the request a problem?
Microsoft's fix requires a user without domain administrator rights to hold an explicit permission, granted by an access control entry, to write the parts of the new security descriptor. Being the creator, and so the owner, is no longer enough; a request that relies on it would be refused under enforcement.