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

Event ID 5838: The Netlogon service encountered a client using RPC signing instead of RPC sealing

Written by a domain controller when a Netlogon client signs the secure channel without sealing (encrypting) it, the weakness behind CVE-2022-38023. Points to an outdated or third-party client. Microsoft documents only the text.

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

When it is written

A domain controller writes 5838 when a client sets up the Netlogon secure channel with RPC signing instead of RPC sealing. With signing, Netlogon signs its messages; with sealing, it signs and encrypts them. CVE-2022-38023 is a weakness of the protocol when signing is used without sealing. Domain controllers write the event once they have the Windows updates of November 8, 2022 or later. A trust that does the same is reported by 5839.

Microsoft's article gives the event text but does not say whether the domain controller accepted or refused the connection. What it does describe is the rollout: in Compatibility mode, the default from November 2022, Windows domain controllers require sealing from clients that run Windows and from domain controllers and trust accounts, and let other clients sign only; in Enforcement mode every client must seal. The June 13, 2023 updates switched domain controllers to Enforcement mode unless an administrator had chosen Compatibility mode, and the July 11, 2023 updates removed Compatibility mode. On a domain controller with those updates, a client that only signs no longer gets a secure channel.

A domain controller decides that a client runs Windows from the client's operatingSystem attribute in Active Directory: it looks for "Windows", "Hyper-V Server" or "Azure Stack HCI". Microsoft says it does not support changing that attribute to something other than the client's real operating system.

How to turn it on

NETLOGON writes the event to the System log (Event Viewer > Windows Logs > System), which is on by default. Microsoft

There is nothing to switch on: domain controllers with the November 8, 2022 or later updates write the event. The mode during the rollout came from the RequireSeal value (REG_DWORD) under HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters: 1 Compatibility mode, 2 Enforcement mode, 0 disabled (no longer accepted from the April 11, 2023 updates). Microsoft notes that the updates neither add nor remove the value; it is read only when an administrator has created it, and since the July 11, 2023 updates the value 1 can no longer be set. To see what was configured on a domain controller, read it without changing anything:

reg query "HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters" /v RequireSeal

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 TextThe message. KB5021130 documents only its first sentence (the title of this page) and no named fields, although it says the events show who is affected. Check the events your domain controllers write to see which client details follow that sentence before relying on them.

Volume and noise

Rare on an up-to-date domain. The sources Microsoft names are devices that are not on a supported or updated version of Windows, Windows devices where Domain member: Digitally encrypt or sign secure channel data (always) is not enabled, and third-party domain members whose Netlogon client does not seal the channel. A client that keeps reconnecting does not flood the log, because duplicates are discarded for an hour.

Keeping it manageable

  • Keep every 5838: the volume is low and the rule matches only the event ID and the NETLOGON provider. Collect the System log of every domain controller.
  • Microsoft documents only the first sentence of the event. Read the full message your domain controllers write to see which client details it carries, and extract them in your SIEM before you alert or suppress per device.
  • Because duplicates are discarded for an hour, count distinct clients per day rather than events when you measure how many devices still need fixing.

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

What is the difference between RPC signing and RPC sealing in event 5838?

With RPC signing, the Netlogon protocol signs the messages it sends, so changes on the way can be detected. With RPC sealing, it signs and also encrypts them. CVE-2022-38023 is a weakness of the protocol when signing is used without sealing, and the updates of November 2022 onwards move every client to sealing.

Was the connection in event 5838 refused?

Microsoft's article does not say. Going by the phases it describes, a domain controller with the July 11, 2023 or later updates requires sealing from every client, so on such a domain controller the client did not get a signed-only channel. Before that, in Compatibility mode, clients that are not Windows, not domain controllers and not trusts could still sign only.

How do I fix the client behind event 5838?

Microsoft's steps are to confirm the device runs a supported version of Windows, that it has all updates, and that Domain member Digitally encrypt or sign secure channel data (always) is enabled. For a third-party device, ask its vendor for an update that seals the Netlogon secure channel.

How does a domain controller know whether a Netlogon client runs Windows?

It reads the client's operatingSystem attribute in Active Directory and looks for Windows, Hyper-V Server or Azure Stack HCI. Microsoft does not support setting that attribute to a value that does not match the client's operating system, and says the strings it looks for may change.

References