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

Event ID 5828: The Netlogon service denied a vulnerable Netlogon secure channel connection using a trust account

Written by a domain controller when it refuses a Netlogon secure channel that a trust account sets up without secure RPC. Names the trust and the client address. A trust exposed this way puts the forest at risk.

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 5828 when a client sets up a Netlogon secure channel with a trust account and does not use secure RPC, and the domain controller refuses it. A trust account is the account that stands for another domain in a trust: Microsoft's example is the account domain-b$ that a domain controller of domain-a holds for its trust with domain-b. The channel is normally set up by a domain controller of the other domain.

Domain controllers write it once they have an update released on August 11, 2020 or later. From those updates on, domain controllers require secure RPC from trust accounts, so the refusal does not depend on the 2021 enforcement phase. The connection is allowed, and 5831 written instead, only when the trust account is on the allow list of the Group Policy setting Domain controller: Allow vulnerable Netlogon secure channel connections. A refused connection from a machine account is 5827.

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
Account TypeKind of account that set up the channel. The first value of the event data. Microsoft does not list the values.
Trust NameTrust account used, which stands for the other domain (Microsoft's example: domain-b$). Microsoft's monitoring script treats it as the name of the account.
Trust TargetOther side of the trust. Microsoft's monitoring script treats it as the domain name.
Client IP AddressAddress of the client that tried the connection, normally a domain controller of the other domain. The only machine detail in this event.

Values to know

Client IP Address

ValueMeaningSignal
A domain controller of the other domainThe expected source of a trust channelThat domain controller does not support secure RPC. Fix it with its vendor or retire it.Worth knowing
Any other addressThe trust channel did not come from a domain controller of the trusted domainSomething other than the other domain's domain controllers tried a vulnerable connection with the trust account. Find the computer behind the address.Attack signal

Trust Name

ValueMeaningSignal
A trust account such as domain-b$The account that stands for the other domainMicrosoft's own example of a trust account name. Tells you which trust to look at.Worth knowing

Volume and noise

Rare. Windows domain controllers with the August 2020 or later updates use secure RPC, so the expected source is a non-Windows or unpatched domain controller of a trusted or trusting domain. Microsoft's guidance is to get secure RPC support for that domain controller from its vendor, or to retire it.

Keeping it manageable

  • Keep every 5828: the volume is low and the rule matches only the event ID and the NETLOGON provider. Collect the System log of every domain controller of every domain that has trusts.
  • Compare Client IP Address with the addresses of the domain controllers of the domain named in Trust Name and Trust Target. A trust channel from any other address is not a domain controller of that domain.
  • Do not add the trust account to the allow list policy to stop the event. Microsoft warns that allowing vulnerable connections for trust accounts makes the forest vulnerable to attack.

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

What is a trust account in event 5828?

It is the account that represents another domain in a trust. Microsoft's example is a domain controller of domain-a that holds an account named domain-b$ for its trust with domain-b. Domain controllers of the other domain use that account to set up the Netlogon secure channel.

Can I allow a trust to use vulnerable Netlogon connections?

The Group Policy setting Domain controller Allow vulnerable Netlogon secure channel connections accepts trust accounts, and the domain controller then writes 5831 instead of 5828. Microsoft warns that this makes the forest vulnerable to attack and asks that every trust use secure RPC. Fix or retire the domain controller of the other domain instead.

Why does event 5828 show a client address when event 5827 does not?

The two events carry different details. Event 5827 names the machine account and the device's operating system; event 5828 names the trust and the address of the client that set up the channel, as Microsoft's article shows. Use that address to check that the client is really a domain controller of the other domain.

References