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

Event ID 5829: The Netlogon service allowed a vulnerable Netlogon secure channel connection

Written by a domain controller of the 2020 initial deployment phase when it accepts a Netlogon secure channel from a machine account without secure RPC. With the February 2021 or later updates such connections are refused instead.

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 · 1 detection logic)
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 5829 when it accepts a Netlogon secure channel from a machine account that does not use secure RPC, a vulnerable connection in Microsoft's terms, during what Microsoft calls the Initial Deployment Phase. The message warns that the connection will be denied once the enforcement phase is released.

Only domain controllers with updates released from August 11, 2020 up to the February 9, 2021 enforcement phase write it, and only while they are not in enforcement mode (the FullSecureChannelProtection registry value is not 1). In that phase the updates already enforce secure RPC for Windows devices, trust accounts and domain controllers, so the accepted connections are those of other devices. In enforcement mode, and on every domain controller with the February 9, 2021 or later updates, the same connection is refused and logged as 5827, and Microsoft removed the 5829 event.

The connection was accepted. If it was an attack, the account named in the event may now be under someone else's control.

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 whose identity was exposed by the accepted connection.
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. 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 controllerThe initial deployment phase already enforced secure RPC for domain controllers, so an accepted connection in a domain controller's name should not happen on a patched domain controller. Investigate at once.Attack signal
The account of a third-party deviceA non-compliant domain memberThe device Microsoft expects. It will be refused once the domain controller is updated.Noise

Machine Operating System

ValueMeaningSignal
A supported Windows versionThe device is recorded as WindowsThe initial deployment phase already enforced secure RPC for Windows devices. An accepted vulnerable connection for an account recorded as Windows deserves a look.Attack signal
A non-Windows systemA third-party deviceThe devices this event was meant to find before enforcement.Noise

Volume and noise

On a domain whose domain controllers are updated, the event does not appear. Where it does, the domain controller is missing more than five years of security updates, which is itself the finding. On such a domain controller the sources are the non-compliant devices Microsoft describes: third-party domain members whose Netlogon client does not support secure RPC.

Keeping it manageable

  • Keep every 5829: the rule matches only the event ID and the NETLOGON provider. Any 5829 means a domain controller without the February 2021 updates: update it before tuning anything.
  • Keep Machine SamAccountName in the collected data: the detection hypothesis joins it with the account's password change (4742) after the connection.
  • Microsoft's guidance for this event is to look at the machine name, the domain and the operating system to find each non-compliant device, and fix it before enforcement.

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

Why don't I see event 5829 any more?

Microsoft removed it with the February 9, 2021 updates, which put every domain controller in enforcement mode. Since then a vulnerable connection from a machine account is refused and logged as 5827, or accepted and logged as 5830 if the account is on the allow list policy. A domain controller that still writes 5829 is missing those updates.

What is the difference between events 5829 and 5830?

Both record a vulnerable connection that was accepted. 5829 belongs to the 2020 initial deployment phase, when a domain controller not yet in enforcement mode accepted such connections from non-Windows devices. 5830 is written by a domain controller in enforcement mode when the account is on the allow list of the Group Policy setting Domain controller Allow vulnerable Netlogon secure channel connections.

What should I do after a 5829 event?

Update the domain controller, since it lacks the 2021 enforcement updates. Then find the device behind the account and get secure RPC support for it. If the account belongs to a domain controller or an updated Windows computer, check whether its password changed outside its normal cycle and reset it, because the accepted connection may have been an attack.

References