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

Event ID 5840: The Netlogon service created a secure channel with a client with RC4

Written by a domain controller when it sets up a Netlogon secure channel with a client that uses RC4. Microsoft calls it a sign of a client using weak cryptography. The channel was created: only RejectMD5Clients refuses such clients.

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 5840 when it creates a Netlogon secure channel with a client that uses RC4. Microsoft added the event with the November 8, 2022 updates for CVE-2022-38023 to find older clients that do not use the strongest cryptography available, and describes it as a sign that a client in the domain is using weak cryptography.

The channel was created. The enforcement of RPC sealing that the same updates rolled out does not refuse a client for using RC4; only the Netlogon setting RejectMD5Clients does. When that setting is on, the domain controller refuses such clients and writes 5841 instead.

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 for clients that use RC4, as long as RejectMD5Clients is not set. With RejectMD5Clients on, those clients are refused and reported by 5841.

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

Low on a current domain. The sources are older domain members and third-party devices whose Netlogon client supports only RC4 for the secure channel. They are the devices the event is meant to find, and each keeps appearing until it is updated or replaced, at most once an hour per domain controller for the same content.

Keeping it manageable

  • Keep every 5840: the volume is low and the rule matches only the event ID and the NETLOGON provider.
  • Use the events as a work list before you turn on RejectMD5Clients: every client still reported here will be refused once the setting is on.
  • Microsoft documents only the first sentence. Read the full message your domain controllers write to identify the client, and suppress per device only while its update or replacement is planned.

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

Does the RPC sealing enforcement refuse the RC4 clients of event 5840?

No. Microsoft states that the enforcement phase for CVE-2022-38023 rejects clients that sign instead of seal, not clients that use RC4. Only the RejectMD5Clients setting refuses RC4 clients, and the enforcement phase does not change it.

Should I turn on RejectMD5Clients?

Microsoft recommends enabling it for higher security. First fix or replace the clients that event 5840 reports, since they will be refused afterwards and the domain controller will report them with event 5841.

Is event 5840 an attack?

It records a weak but accepted secure channel, usually an old or third-party device. Its value is the device to update. A client you expect to use stronger cryptography showing up here deserves a closer look.

References