When it is written
Since the updates released on or after April 9, 2024 (CVE-2024-26248 and CVE-2024-29056), a Windows computer that validates the PAC of an inbound Kerberos service ticket sends it through Netlogon to a domain controller of its own domain (a Network Ticket Logon), which forwards it across trusts to the service account's domain when needed. Netlogon writes 5842 whenever it meets an unexpected error while it processes such a request. The event text names the account and domain of the service ticket, a workstation and the error code.
It is logged while AuditKerberosTicketLogonEvents is 1, the default, or higher. Microsoft says that value can be set both on the Windows servers that accept inbound Kerberos authentication and on the domain controllers that validate the request on the way, so the event can appear on either. Microsoft does not say whether the sign-in fails after this error, and does not publish the error codes.
No detection rule of the library reads 5842. It belongs with the Kerberos client's event 22, which the Silver Ticket rule reads: 22 is a domain controller denying the ticket after the check, 5842 is Netlogon meeting an unexpected error while it handles the request.
How to turn it on
NETLOGON writes the event to the System log (Event Viewer > Windows Logs > System), which is on by default. Microsoft
The event needs the April 9, 2024 or later updates and the value AuditKerberosTicketLogonEvents (REG_DWORD) under HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters at 1 or higher. Microsoft's values: 1, the default, logs the critical events (5842); 2 logs all Netlogon events of the flow and adds 5843, a request that could not be forwarded, which Microsoft advises turning on only after the whole fleet is updated; 0 logs neither. No restart is needed. Read it without changing anything (no value listed means the default):
reg query "HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters" /v AuditKerberosTicketLogonEvents
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.
| Field | What it holds |
|---|---|
| Service Ticket Account | Account of the service ticket that was being validated (Service Ticket Account). Microsoft does not say whether it is the client named in the ticket or the service account. |
| Service Ticket Domain | Domain of that account (Service Ticket Domain). For the related event 5843 Microsoft compares it with the domain of the computer account to tell where the request stopped. |
| Workstation Name | Computer named in the request (Workstation Name), shown as <Machine Name>. Microsoft does not describe it further; it is presumably the computer that sent the Network Ticket Logon request, whose machine account Microsoft's guidance for 5843 refers to. |
| Status | Error code of the failure (Status). Microsoft does not publish its values for this event. |
Values to know
Service Ticket Domain
| Value | Meaning | Signal |
|---|---|---|
The computer's own domain | The request stayed in the computer's domain | Worth knowing |
Another domain | The request had to cross trusts to reach the service account's domainEach domain controller on the way forwards the request, so look at the trust path as well as the first domain controller. | Worth knowing |
Status
| Value | Meaning | Signal |
|---|---|---|
Any value | The error Netlogon metMicrosoft does not publish the codes. Record them and compare across events before drawing conclusions. | Failure |
Volume and noise
Rare. Microsoft gives no cause beyond an unexpected error and no list of codes, so there is no documented benign source to filter out. Read the first events your servers write, with their Status, before deciding how to alert.
Keeping it manageable
- No rule reads 5842. Collect it from the System log of the servers whose services you protect and of the domain controllers, and keep all of it: the volume is small.
- Filter on the provider as well as the ID. As an XPath query of an Azure Monitor data collection rule, which puts the log name and
!first (a Windows Event Forwarding subscription takes the expression after the!in aSelectof that log):System!*[System[Provider[@Name='NETLOGON'] and (EventID=5842 or EventID=5843)]]. - Make sure
AuditKerberosTicketLogonEventshas not been set to 0 on servers or domain controllers: that value silences the event. - Read it next to the Kerberos client's events 22 and 23 on the same computer at the same time: together they say whether the Network Ticket Logon was denied, could not be forwarded, or failed in Netlogon.
Attacks this event reveals
No detection rule or detection logic in our library reads this event yet. It is documented here because it sits next to the events they read: it explains them, follows from them or is the trace a defender looks for around them (see Related events).
Frequently asked questions
Is event 5842 on by default?
Yes, on computers with the April 9, 2024 or later updates. It is logged while AuditKerberosTicketLogonEvents under HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters is 1, the default, or 2. The value 0 turns it off.
Where is Netlogon event 5842 logged?
In the System log, from the NETLOGON source. Microsoft says AuditKerberosTicketLogonEvents applies both to the Windows servers that accept inbound Kerberos authentication and to the domain controllers that validate the Network Ticket Logon request on the way, so collect it from both.
What do events 5842 and 5843 mean?
Both come from Netlogon during a Network Ticket Logon. 5842 is an unexpected error while processing the request, logged by default. 5843 says the request could not be forwarded to a domain controller, because a domain controller did not understand the change; it is logged only when AuditKerberosTicketLogonEvents is 2.