1. Resources
  2. Identity Threats
  3. Active Directory

Netlogon Secure Channel Weaknesses (RPC Signing, CVE-2022-38023)

Also known as: Netlogon RPC signing instead of sealing, CVE-2022-38023, RequireSeal, Netlogon RC4 secure channel

A Netlogon secure channel that is only signed, or that uses RC4, lets an attacker in the network path tamper with Netlogon traffic and gain administrator rights (CVE-2022-38023).

Platform
Active Directory
Impact
High
Last updated
Attack difficulty
High
Detection difficulty
Medium
Privileges required: Any authenticated identity
A domain account and a position in the network path between a Netlogon client and a domain controller that still accepts RPC signing without sealing.
What the attacker gains
The ability to change Netlogon traffic in transit and elevate to administrator. Legacy exemptions also keep machine and trust accounts open to takeover.
Tools
nltestreg.exe and Get-WinEvent (built in)
Threat groups
KimsukyMustang PandaSea TurtleAPT28APT29APT32APT33BITTERBlackByteCobalt GroupFIN6FIN8HAFNIUMLAPSUS$and 12 more in MITRE ATT&CKGroups that MITRE ATT&CK records using T1557, T1068.

How it works

A domain member, a domain controller or a trust partner authenticates to a domain controller with its machine or trust account and sets up a Netlogon secure channel. Pass-through authentication of users, machine password changes and trust operations all travel over that channel as RPC calls. After the session key is agreed, each call can be protected in one of two ways:

  • RPC signing adds a checksum to each message. The content is readable on the wire.
  • RPC sealing encrypts the message and protects its integrity.

For years the client decided. A client could negotiate a channel that was only signed, and could negotiate RC4 with an MD5-based checksum instead of AES. CVE-2022-38023 is Microsoft's name for the weakness in that choice: according to the advisory, where RPC signing is used instead of RPC sealing, an authenticated attacker can exploit cryptographic weaknesses in the protocol, take control of the service and modify Netlogon traffic to elevate privileges, up to administrator. Microsoft rates the attack complexity as high because the attacker has to gather information about the target environment first.

This is the third layer of Netlogon channel weaknesses, and each has its own switch:

Weakness What the domain controller accepted Control
No secure RPC at all (Zerologon, CVE-2020-1472) A channel without signing or sealing Enforced since February 2021; exceptions in "Domain controller: Allow vulnerable Netlogon secure channel connections"
Signing without sealing (CVE-2022-38023) An integrity-only channel RequireSeal; enforced for all clients since June 2023
RC4 and MD5 clients A channel protected with RC4 RejectMd5Clients, not changed by the 2022 updates

There is no single public exploit that turns CVE-2022-38023 into a shell. It matters to an attacker as a condition: a domain controller that still accepts signed-only or RC4 channels, or still holds accounts on the Zerologon allow list, is one where the Netlogon channel can be attacked from the network. The OneLogon research showed that an allow-listed account can be taken over by an unauthenticated attacker, years after the Zerologon patch.

Prerequisites

  • A domain account (the advisory describes an authenticated attacker) and a position where the attacker can intercept and change traffic between a Netlogon client and a domain controller.
  • A domain controller that accepts RPC signing without sealing: one without the November 2022 or later updates, or one kept in compatibility mode (RequireSeal 1) or disabled mode (RequireSeal 0) before those options were removed.
  • A client that negotiates signing only. Updated Windows clients always seal, so in practice this is a third-party device, an old appliance or a non-Windows Netlogon implementation.
  • For the related conditions: a machine or trust account on the vulnerable-connection allow list, or a domain controller that still accepts RC4 secure channels.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

The steps below are how an assessor or an attacker establishes that the condition exists. The tampering itself has no public tooling.

1. Read the Netlogon channel settings of each domain controller

With administrative access to a domain controller, or through a configuration export:

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

RequireSeal 0 means sealing isn't required, 1 is compatibility mode (required from Windows clients, domain controllers and trust accounts only) and 2 is enforcement for every client. The value isn't created by the update, so a missing value means the build's default applies: on a domain controller with the July 2023 or later updates that is enforcement, and values 0 and 1 are no longer honoured. The same check across all domain controllers:

Get-ADDomainController -Filter * | ForEach-Object {
    Invoke-Command -ComputerName $_.HostName -ScriptBlock {
        $p = Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters'
        [pscustomobject]@{
            DC               = $env:COMPUTERNAME
            Build            = (Get-CimInstance Win32_OperatingSystem).Version
            RequireSeal      = $p.RequireSeal
            RejectMd5Clients = $p.RejectMd5Clients
        }
    }
}

2. Find the clients that still use weak channels

The domain controllers name them in the System log. Collect events 5838 to 5841 and, for the Zerologon exemptions, 5830 and 5831:

Get-WinEvent -ComputerName DC01 -FilterHashtable @{
    LogName = 'System'; ProviderName = 'NETLOGON'; Id = 5838, 5839, 5840, 5841, 5830, 5831
} | Select-Object TimeCreated, Id, Message

Each event names the machine or trust account, which is the list of channels an attacker in the path would target.

3. Resolve the Zerologon allow list

The policy "Domain controller: Allow vulnerable Netlogon secure channel connections" holds accounts and groups. Read the effective setting on the domain controller and expand nested groups:

gpresult /scope computer /h C:\Temp\dc01-rsop.html
Get-ADGroupMember -Identity 'Netlogon-Legacy-Devices' -Recursive | Select-Object SamAccountName, objectClass

4. Check a member's own channel

From a member, nltest shows which domain controller holds its secure channel and whether the channel is healthy:

nltest /sc_query:corp.example.com
nltest /sc_verify:corp.example.com

A member whose policy "Domain member: Digitally encrypt or sign secure channel data (always)" is disabled is a client that may accept a weaker channel.

Impact

Microsoft states that successful exploitation of CVE-2022-38023 gives the attacker administrator privileges. The secure channel carries authentication decisions for the member, so an attacker who can change messages on it can change the answers the member receives.

The related conditions have a more direct impact. An account on the vulnerable-connection allow list can be impersonated over a channel without secure RPC: for a member server that is control of its machine identity, for a trust account it is the trust, and for a domain controller account it is the domain. RC4 secure channels keep weak cryptography in use for the most sensitive channel in the domain.

OPSEC and artifacts

  • The attacker doesn't choose the weak channel; the client does. An attacker in the path waits for a client that negotiates signing only. That client's connection is what the domain controller logs: event 5838 for a machine account and 5839 for a trust, whether or not anyone tampered with the traffic.
  • Events are buffered. Duplicate 5838 to 5841 events are held back for one hour, so a single event can stand for many connections.
  • Getting into the path leaves its own traces. ARP or DHCPv6 spoofing, a rogue device or a compromised network device is needed first; see mitm6 for the artifacts of one such method.
  • Reading the settings. Remote registry queries and PowerShell remoting to domain controllers produce logon events (4624) and, where enabled, process creation events for reg.exe.
  • Nothing in the Security log marks tampering. The domain controller sees a validly signed message. Detection has to come from the fact that the weak channel exists.

Detection

Every weak channel the domain controllers still accept is logged in the System log under the NETLOGON source. The Netlogon secure channel rules include rules for signing without sealing and for RC4 channels.

Event Meaning
5838 A client used RPC signing instead of RPC sealing
5839 A trust used RPC signing instead of RPC sealing
5840 A secure channel was created with RC4
5841 An RC4 client was denied because of RejectMd5Clients
5830, 5831 A machine or trust account connected without secure RPC and was allowed by policy
// Weak Netlogon channels by domain controller and event
Event
| where EventLog == "System" and Source == "NETLOGON"
| where EventID in (5838, 5839, 5840, 5841, 5830, 5831)
| summarize Events = count(), LastSeen = max(TimeGenerated) by Computer, EventID, RenderedDescription
| order by Computer asc, EventID asc

Read machine and trust events separately; a query for 5838 alone misses trust partners. After enforcement, 5838 and 5839 mean a connection was refused, so date each event against the update level of the domain controller that wrote it. Also watch for changes to the RequireSeal, RejectMd5Clients and vulnerable-connection policy settings on domain controllers: weakening one of them is preparation for this attack.

Mitigation

  • Bring every domain controller to a current cumulative update. With the July 11, 2023 or later updates, sealing is required from all clients and compatibility mode can't be selected.
  • Fix or replace the clients named in events 5838 and 5839. For Windows clients, enable "Domain member: Digitally encrypt or sign secure channel data (always)". For third-party devices, get a version that supports sealing from the vendor.
  • Reject RC4 on the secure channel. Resolve the clients in event 5840, then set RejectMd5Clients so that RC4 channels are refused. The RC4 to AES migration guide covers the Kerberos side of the same clean-up.
  • Empty the Zerologon allow list. Remove every account and group from "Domain controller: Allow vulnerable Netlogon secure channel connections", per domain controller, and give each remaining entry an owner and an end date.
  • Protect the network path to domain controllers. Segmentation, DHCP snooping and dynamic ARP inspection make the on-path position harder to get.
  • Collect the System log of all domain controllers. These events aren't in the Security log, and many SIEM deployments don't collect them. The Active Directory hardening guide lists the baseline.

Detection rules for this attack

Log events to collect

FAQ

What is the difference between RPC signing and RPC sealing in Netlogon?

Signing adds an integrity check to each Netlogon message, so a change in transit should be noticed, but the content travels in the clear. Sealing encrypts the message as well. CVE-2022-38023 is a weakness in the signing-only mode: Microsoft states that where signing is used instead of sealing, an attacker could modify Netlogon traffic to elevate privileges.

Is CVE-2022-38023 still exploitable on a patched domain?

Domain controllers with the July 11, 2023 or later updates require sealing from every client, and the setting that allowed signing-only clients can no longer be chosen. A domain controller that missed those updates, or ran for years in compatibility mode with third-party clients, is the place to look. RC4 secure channels are a separate decision, controlled by RejectMd5Clients.

Which events show clients that still use weak Netlogon channels?

In the System log of domain controllers, source NETLOGON: 5838 for a client that used RPC signing instead of sealing, 5839 for a trust that did, 5840 when a secure channel was created with RC4, and 5841 when an RC4 client was denied because RejectMd5Clients is on. Duplicate events are buffered for an hour.

Does the Zerologon allow list also exempt a device from RPC sealing?

No. The policy 'Domain controller: Allow vulnerable Netlogon secure channel connections' belongs to the 2020 Zerologon hardening and decides whether an account may connect without secure RPC. The sealing requirement from 2022 is controlled separately. Review both: a device can be on the old allow list, fail the sealing requirement, or both.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.