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

Event ID 5827: The Netlogon service denied a vulnerable Netlogon secure channel connection from a machine account

Written by a domain controller when it refuses a Netlogon secure channel from a machine account that does not use secure RPC, the connection CVE-2020-1472 (Zerologon) relies on. Names the account, its domain and operating system.

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 5827 when a client asks to set up a Netlogon secure channel with a machine account (a computer account) and does not use secure RPC, and the domain controller refuses it. Microsoft calls these vulnerable Netlogon secure channel connections: they are what CVE-2020-1472 needs. The event names the account, its domain, its account type and the operating system recorded for the device.

Domain controllers, read-only ones included, write it once they have an update released on August 11, 2020 or later. Since the February 9, 2021 updates every domain controller is in enforcement mode, so every such connection is refused and logged here, unless the account is allowed by the Group Policy setting Domain controller: Allow vulnerable Netlogon secure channel connections: then the connection goes through and the domain controller writes 5830 instead. A refused connection from a trust account is 5828.

Microsoft notes that fully updated, supported versions of Windows do not use vulnerable connections. A 5827 therefore comes from a third-party or outdated device, from a Windows device whose secure channel settings were changed, or from a system that tries a vulnerable connection in the name of the account.

How to turn it on

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

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
Machine SamAccountNameAccount name (sAMAccountName) of the machine account the client used, a name ending with $. The first value of the event data. The account the vulnerable connection was for.
DomainDomain of that account. Microsoft's monitoring script treats it as the domain name.
Account TypeKind of account that set up the channel. Microsoft does not list the values.
Machine Operating SystemOperating system recorded for the device, such as a Windows edition or a third-party system. Microsoft's guidance is to use it, with the account name and domain, to find the device and decide how to fix it.
Machine Operating System BuildBuild of that operating system.
Machine Operating System Service PackService pack of that operating system, often empty for current versions.

Values to know

Machine SamAccountName

ValueMeaningSignal
A domain controller's accountThe computer account of a domain controllerMicrosoft's updates enforce secure RPC for every Windows domain controller, so a refused vulnerable connection in the name of a Windows domain controller deserves immediate attention. Microsoft notes that non-Windows devices acting as a domain controller log these events too.Attack signal
The account of a third-party deviceAn appliance or non-Windows domain memberThe expected source. Work with the vendor for secure RPC support, or retire the device.Noise

Machine Operating System

ValueMeaningSignal
A supported Windows versionThe device is recorded as WindowsFully updated, supported Windows does not use vulnerable connections. Check the device's updates and the Digitally encrypt or sign secure channel data (always) policy; if both are in order, treat the event as an attempt with that account.Attack signal
A non-Windows system or an unsupported WindowsA device that may not support secure RPCThe devices Microsoft expects in this event. They need an update from their vendor.Noise

Volume and noise

On a current domain the event is rare. The usual sources are domain-joined third-party devices (appliances and other operating systems) whose Netlogon client does not support secure RPC, and old or unpatched Windows machines. Such a device fails every time it tries, so it repeats the event for the same account until it is updated or replaced.

Microsoft's guidance for a Windows device in this event is to confirm that it runs a supported, fully updated version of Windows and that Domain member: Digitally encrypt or sign secure channel data (always) is enabled.

Keeping it manageable

  • Keep every 5827: the volume is low and the rule matches only the event ID and the NETLOGON provider. Collect the System log of every domain controller, read-only domain controllers included, since each one logs only the connections it refused.
  • Group the events by Machine SamAccountName and Machine Operating System to build the list of devices to fix. Microsoft's monitoring script for these events (KB4557233) does the same.
  • Do not silence a known device by adding it to the allow list policy: the policy turns the refusal into an accepted vulnerable connection (5830), which is the exposure. Fix or retire the device, and suppress the alert by account only while that is under way.
  • The event carries its values in the order of the labels, and Microsoft's script reads them by position: parse them the same way, or from the rendered message, in your SIEM.

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

Does event 5827 mean a Zerologon attack happened?

Not by itself. It records a refused vulnerable connection, so whatever tried it did not get a secure channel. Most 5827 events come from third-party or outdated devices that cannot use secure RPC. It deserves a closer look when the account belongs to a domain controller or to an updated Windows device, which do not use vulnerable connections.

Why do I see event 5827 for a Windows computer?

Microsoft notes that supported, fully updated Windows does not use vulnerable Netlogon connections. Confirm that the device runs a supported version, that it has all updates, and that the policy Domain member Digitally encrypt or sign secure channel data (always) is enabled, for domain controllers in the Default Domain Controllers policy as well. If all of that is in order, treat the event as an attempt made in the name of the account.

Should I add the device to the allow list policy to stop event 5827?

Only as a short-term measure for a device that cannot be fixed yet. An account on the list is allowed to use vulnerable connections, and Microsoft warns that an attacker can then take over that machine identity. Never add a device whose account has domain or enterprise administrator rights, and remove it as soon as the vendor provides secure RPC support.

What is the difference between events 5827 and 5828?

Both are refused vulnerable Netlogon connections. 5827 is for a machine account and names the device and its operating system; 5828 is for a trust account, the account that represents another domain, and names the trust and the client address.

References