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

Event ID 5841: The Netlogon service denied a client using RC4 due to the 'RejectMd5Clients' setting

Written by a domain controller that has RejectMD5Clients on when it refuses a Netlogon secure channel from a client that uses RC4. Each event is a device that lost its secure channel and needs an update.

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 5841 when it refuses a Netlogon secure channel from a client that uses RC4 because the Netlogon setting RejectMD5Clients is on. Microsoft added the event with the November 8, 2022 updates for CVE-2022-38023, and notes that finding it means the setting is set to TRUE. Without the setting, the same client gets its channel and the domain controller writes 5840.

The refusal comes from RejectMD5Clients alone. Microsoft states that the enforcement of RPC sealing does not reject clients for the encryption type they use, does not change RejectMD5Clients, and recommends enabling it.

How to turn it on

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

The event needs the November 8, 2022 or later updates and RejectMD5Clients set to TRUE on the domain controller. The Netlogon protocol specification (MS-NRPC) places the value under HKLM\SOFTWARE\Policies\Microsoft\Netlogon\Parameters and notes that a change is applied only when the Netlogon service restarts; Windows Server 2008 R2 and later domain controllers support it. Read it without changing anything:

reg query "HKLM\SOFTWARE\Policies\Microsoft\Netlogon\Parameters" /v RejectMD5Clients

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. Check the events your domain controllers write to see which client details follow that sentence before relying on them.

Volume and noise

None where RejectMD5Clients is off. Where it is on, the event lists the clients that could not get a secure channel: older domain members and third-party devices that support only RC4. A refused device that keeps trying is reported again once the hourly duplicate window has passed.

Keeping it manageable

  • Keep every 5841: the volume is low and the rule matches only the event ID and the NETLOGON provider. Each event is a device that has lost its secure channel to that domain controller, which is an outage as much as a security finding.
  • Before turning RejectMD5Clients on, work through the clients reported by 5840, which are the ones that will be refused.
  • Microsoft documents only the first sentence. Read the full message your domain controllers write to identify the client.

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

Why does event 5841 appear on some domain controllers and not on others?

It is written only by domain controllers where RejectMD5Clients is set to TRUE, which Microsoft calls the sign behind every 5841. The setting is per domain controller and is read when the Netlogon service starts, so check it on each one.

Is RejectMD5Clients part of the CVE-2022-38023 enforcement?

No. Microsoft states that the enforcement phase only rejects clients that sign instead of seal and leaves RejectMD5Clients unchanged. RejectMD5Clients is an older Netlogon setting; the protocol specification describes it as rejecting clients that use MD5 encryption, and Microsoft's article ties it to clients using RC4. Microsoft recommends enabling it.

What should I do with the client in event 5841?

Update or replace it so that it supports stronger cryptography for the Netlogon secure channel. Until then it has no secure channel to that domain controller. Turning RejectMD5Clients off again restores it at the cost of accepting RC4 for every client.

References