When it is written
Windows writes 4624 when it creates a logon session, on the computer that was accessed: the workstation a user signs in to at the keyboard, or the server that hosts the share, database or Remote Desktop session being reached. A user who opens a file share on a server leaves the event on that server, not on the workstation the user sits at. A failed attempt is event 4625.
Every kind of logon produces it: interactive and Remote Desktop sign-ins, network access, services and scheduled tasks starting under an account, unlocks, and logons that only attach other credentials for outbound connections. Logon Type says which. Because only the computer that was reached writes the event, following an account across the network needs the Security log of the member servers and workstations, not only of the domain controllers. A domain controller writes 4624 for logons to itself; the authentication of a domain account to another computer is recorded on the domain controller by 4768 and 4769 (Kerberos) or 4776 (NTLM).
How to turn it on
Advanced audit policy subcategory Audit Logon, Success. Set it in a Group Policy object linked to the computers that write the event:
Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > Logon/Logoff > Audit Logon| Computer | Audit | Note |
|---|---|---|
| Domain controllers | Success and Failure | Microsoft's general and stronger baselines both recommend Success and Failure auditing. Successes show which account logged on, when, with which logon type and from which computer; failures show the failed attempts and why they failed. |
| Member servers | Success and Failure | Microsoft's general and stronger baselines both recommend Success and Failure auditing. Successes show which account logged on, when, with which logon type and from which computer; failures show the failed attempts and why they failed. |
| Workstations | Success and Failure | Microsoft's general and stronger baselines both recommend Success and Failure auditing. Successes show which account logged on, when, with which logon type and from which computer; failures show the failed attempts and why they failed. |
auditpol /get /subcategory:"Logon"auditpol /set /subcategory:"Logon" /success:enableauditpol /get /subcategory:"{0CCE9215-69AE-11D9-BED3-505054503030}"Run the commands in an elevated prompt on a computer that writes the event. Subcategory settings take effect only when the security option Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings is enabled (the default), and a Group Policy object that sets advanced audit policy replaces local changes at its next refresh. Microsoft's advanced audit policy reference
Fields
In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.
| Field | What it holds | Since |
|---|---|---|
Security IDSubjectUserSidSubject | Account that requested or reported the logon on this computer, often the local system (S-1-5-18) for logons handled by a service such as Winlogon. Can be the NULL SID S-1-0-0 with no name, as in Microsoft's example of an NTLM network logon. Event Viewer resolves SIDs to names. | v0 |
Account NameSubjectUserNameSubject | Name of that account. For the local system it is the computer account (name ending with $); a dash when the subject is the NULL SID. | v0 |
Account DomainSubjectDomainNameSubject | Domain or computer name of the subject, as a NetBIOS name or a DNS name in either case; NT AUTHORITY for some well-known principals. | v0 |
Logon IDSubjectLogonIdSubject | Logon ID of the subject's own session, in hexadecimal (0x3e7 is the local system). Not the new session: that is TargetLogonId. | v0 |
Logon TypeLogonTypeLogon InformationRead by 4 rules | Kind of logon, as a number: 2 interactive, 3 network, 4 batch, 5 service, 7 unlock, 8 network cleartext, 9 new credentials, 10 Remote Desktop, 11 cached interactive. See the values below. | v0 |
Restricted Admin ModeRestrictedAdminModeLogon Information | Yes or No for Remote Desktop logons (type 10): whether the credentials were passed in Restricted Admin mode. A dash for every other logon type. Version 2 and later. | v2 |
Remote Credential GuardRemoteCredentialGuardLogon Information | Shown as Remote Credential Guard, next to Restricted Admin Mode: whether the Remote Desktop logon used Remote Credential Guard, which keeps the credentials on the client. Added in version 3, which Microsoft's event page does not document: check the values your systems write before relying on it. | v3 |
Virtual AccountVirtualAccountLogon Information | Yes or No: whether the account is a virtual account, such as the identity a service runs as (Microsoft gives managed service accounts as its example). In the XML, %%1842 is Yes and %%1843 No. Version 2 and later. | v2 |
Elevated TokenElevatedTokenLogon Information | Yes or No: whether the session has an elevated token with administrator rights. Microsoft suggests it to follow every logon with administrator privileges. Version 2 and later. | v2 |
Impersonation LevelImpersonationLevelLogon Information | How far a process in the session can impersonate the account: Identification, Impersonation (the most common, this computer only) or Delegation (also on remote computers), stored as %%1832, %%1833 and %%1840. Empty for anonymous. Version 1 and later. | v1 |
Security IDTargetUserSidNew LogonRead by 3 rules | SID of the account that was logged on (New Logon, Security ID). Ends with -500 for a built-in Administrator, local or domain; S-1-5-7 is ANONYMOUS LOGON. | v0 |
Account NameTargetUserNameNew LogonRead by 1 rule | Name of the account that was logged on. Computer accounts end with $. This, not the subject, is the account the event is about. | v0 |
Account DomainTargetDomainNameNew Logon | Domain of that account as a NetBIOS or DNS name; for a local account, the name of the computer that holds it. That is how a local Administrator is told apart from the domain Administrator, which shares RID 500. | v0 |
Logon IDTargetLogonIdNew Logon | Logon ID of the new session, in hexadecimal. Later events of the same computer carry it as their subject logon ID (Microsoft names 4672 as an example), which is how they are joined to the source of the session. Unique per computer only. | v0 |
Linked Logon IDTargetLinkedLogonIdNew Logon | Logon ID of the paired session, in hexadecimal, or 0x0 when there is none. Microsoft's event page does not say what pairs two sessions. With User Account Control, Windows creates two logon sessions at sign-in that are linked to one another, one for elevated use and one with least user rights, so expect the two 4624 events of an administrator's sign-in to name each other here. Version 2 and later. | v2 |
Network Account NameTargetOutboundUserNameNew Logon | Account used for outbound network connections (Network Account Name), filled only for new-credentials logons (type 9); a dash otherwise. The pass-the-hash rule for type 9 and the RC4 downgrade hypothesis read it. Version 2 and later. | v2 |
Network Account DomainTargetOutboundDomainNameNew Logon | Domain of that outbound account (Network Account Domain), for type 9 only; a dash otherwise. Version 2 and later. | v2 |
Logon GUIDLogonGuidNew Logon | GUID that also appears in the domain controller's 4769 for the service ticket of a Kerberos logon, and in 4648 and 4964 on this computer, so the events can be matched. All zeros when it was not captured, as in Microsoft's examples of a local and an NTLM logon. | v0 |
Process IDProcessIdProcess Information | Process that attempted the logon, as a hexadecimal process ID; convert it to compare with New Process ID of event 4688. 0x0 in Microsoft's example of an NTLM network logon. | v0 |
Process NameProcessNameProcess Information | Full path of that process's executable; a dash when there is none, as in network logons. Microsoft suggests watching for processes that are not expected to request logons. | v0 |
Workstation NameWorkstationNameNetwork InformationRead by 1 rule | Computer the logon came from, as reported. Microsoft notes that Kerberos network logons usually carry none, and that it can be empty. The client supplies it, so treat it as a hint. | v0 |
Source Network AddressIpAddressNetwork Information | Address the logon came from (Source Network Address): IPv4, IPv6 or ::ffff:IPv4; ::1 or 127.0.0.1 for this computer; a dash when unknown. Microsoft notes that it depends on what the authenticating service passes to LSASS and names NTLM logons as an example without TCP/IP details, while the 4624 example in its NTLMv1 audit article is an NTLM network logon with an address and a port: check what your servers write before you rely on it. | v0 |
Source PortIpPortNetwork Information | Source port of the remote connection; 0 for interactive logons. | v0 |
Logon ProcessLogonProcessNameDetailed Authentication Information | Trusted logon process that handled the logon, for example User32 for an interactive sign-in or NtLmSsp for an NTLM network logon, as in Microsoft's examples. Microsoft suggests alerting on a process outside your known list. | v0 |
Authentication PackageAuthenticationPackageNameDetailed Authentication InformationRead by 4 rules | Package that authenticated the logon: Kerberos, NTLM or Negotiate, which picks Kerberos unless it cannot be used. Read together with Package Name (NTLM only). | v0 |
Transited ServicesTransmittedServicesDetailed Authentication Information | Services the logon passed through (Transited Services), filled when it came from an S4U (Service for User) logon process, as with Kerberos constrained delegation. A dash otherwise. Kerberos only. | v0 |
Package Name (NTLM only)LmPackageNameDetailed Authentication InformationRead by 1 rule | NTLM sub-protocol (Package Name, NTLM only): NTLM V1, NTLM V2 or LM, filled only when Authentication Package is NTLM; a dash otherwise. Windows writes NTLM V1 for any session without NTLMv2 key material, anonymous ones included. | v0 |
Key LengthKeyLengthDetailed Authentication Information | Length of the NTLM session key in bits, typically 128 or 56. Always 0 for Kerberos, including Kerberos chosen by Negotiate, and 0 when no session key was requested. Microsoft suggests watching NTLM logons whose key length is not 128. | v0 |
Event versions
The Windows event template has four versions. Microsoft's event page documents three: version 0 (Windows Server 2008 and Windows Vista); version 1 (Windows Server 2012 and Windows 8), which adds Impersonation Level; and version 2 (Windows 10), which adds the Logon Information section with Restricted Admin Mode, Virtual Account and Elevated Token, and the Linked Logon ID, Network Account Name and Network Account Domain fields. Version 3 adds Remote Credential Guard; the event page does not describe it or say which release introduced it. Rules and hypotheses that read version 2 fields (such as Network Account Name) find nothing on computers that write an older version.
- Version 0: 20 fields
- Version 1: 21 fields, adds
ImpersonationLevel - Version 2: 27 fields, adds
RestrictedAdminMode,TargetOutboundUserName,TargetOutboundDomainName,VirtualAccount,TargetLinkedLogonId,ElevatedToken - Version 3: 28 fields, adds
RemoteCredentialGuard
Values to know
Logon Type LogonType
| Value | Meaning | Signal |
|---|---|---|
2 | InteractiveA user logged on at this computer. | Expected |
3 | NetworkA user or computer reached this computer over the network, for example a file share. Together with NTLM it is what the relay and pass-the-hash rules read. | Expected |
4 | BatchA process run on behalf of an account without its direct intervention, such as a scheduled task. Microsoft suggests watching batch and service logons by members of administrative groups. | Worth knowing |
5 | ServiceThe Service Control Manager started a service under this account. | Expected |
7 | UnlockThe workstation was unlocked. | Expected |
8 | NetworkCleartextA network logon whose password reached the authentication package unhashed. Microsoft notes that the built-in packages hash it before it crosses the network. | Worth knowing |
9 | NewCredentialsThe caller cloned its token and set other credentials for outbound connections only, named in Network Account Name. Legitimate for separate administrative credentials, and also how a stolen hash is put to use. A rule reports it. | Attack signal |
10 | RemoteInteractiveA Remote Desktop sign-in. Microsoft says Restricted Admin Mode is filled only for this type. Remote Credential Guard sits next to it in the newest template, and Microsoft's event page does not describe it. | Expected |
11 | CachedInteractiveA sign-in with credentials cached on the computer, without contacting a domain controller. | Expected |
0, 12 or 13 | System, CachedRemoteInteractive, CachedUnlockType 0 is used only by the System account, for example at startup. Microsoft describes 12 as the cached form of Remote Desktop used for internal auditing, and 13 as a workstation logon. | Worth knowing |
Authentication Package AuthenticationPackageName
| Value | Meaning | Signal |
|---|---|---|
Kerberos | Kerberos authenticationThe normal package for domain accounts. Key Length is always 0. | Expected |
NTLM | NTLM-family authenticationRead by every NTLM rule together with other fields. A network logon of a computer account (Account Name ending with $) is what the relay rule looks for; of a built-in Administrator (SID ending with -500), the pass-the-hash rule. | Worth knowing |
Negotiate | Kerberos or NTLM, chosen at logonNegotiate selects Kerberos unless one side cannot use it or the application gave too little information. The package in Microsoft's example of an interactive sign-in. | Expected |
Package Name (NTLM only) LmPackageName
| Value | Meaning | Signal |
|---|---|---|
NTLM V2 | NTLMv2 | Expected |
NTLM V1 | NTLMv1A legacy protocol that Microsoft deprecated in June 2024 and removed starting with Windows 11, version 24H2 and Windows Server 2025. Ignore it for ANONYMOUS LOGON (S-1-5-7), which Windows always logs as NTLM V1; the NTLMv1 rule excludes it. | Attack signal |
LM | LAN ManagerThe LAN Manager protocol, matched by the NTLMv1 rule as well. Microsoft suggests watching for any value other than NTLM V2 where NTLMv2 is the norm. | Attack signal |
- | Not NTLMThe field is filled only when Authentication Package is NTLM. | Worth knowing |
Security ID TargetUserSid
| Value | Meaning | Signal |
|---|---|---|
Ends with -500 | A built-in Administrator accountThe local Administrator of a member computer or the domain Administrator. A network logon with NTLM is what reusing the local Administrator's password or hash across computers produces. Account Domain tells local from domain. | Attack signal |
S-1-5-7 | ANONYMOUS LOGONAnonymous sessions, logged as NTLM V1 whatever was negotiated. Microsoft recommends ignoring them when you look at NTLM versions. | Noise |
S-1-5-18, -19 or -20 | SYSTEM, LOCAL SERVICE, NETWORK SERVICEBuilt-in service accounts, usually with logon type 5. | Noise |
Ends with -501 | The built-in Guest accountDisabled by default. A Guest logon after the account was enabled is one of the library's detection hypotheses. | Attack signal |
Volume and noise
The event is written for every logon session a computer creates, so ordinary activity dominates. Microsoft rates the subcategory's volume as medium on domain controllers and network servers and low on client computers. Expect services starting under SYSTEM, LOCAL SERVICE and NETWORK SERVICE (logon type 5), network logons of users and of computer accounts (names ending with $) reaching shares and other services (type 3), and sign-ins and unlocks (types 2, 7, 10 and 11).
Two things look worse than they are. Anonymous logons over NTLM are logged with Package Name (NTLM only) set to NTLM V1 even when NTLMv1 was not used: Microsoft explains that Windows records NTLMv2 only when it finds NTLMv2 key material on the session and NTLMv1 in every other case, anonymous sessions included. Microsoft lists the usual sources of anonymous sessions: the legacy Computer Browser service, SID-to-name translation where anonymous access is still allowed, and client applications that do not authenticate. And NTLM network logons are ordinary wherever clients reach a server by IP address, which is how Microsoft forces NTLM in a test it describes.
Keeping it manageable
- Keep every NTLM logon (
AuthenticationPackageNameNTLM) and every new-credentials logon (LogonType9): the NTLM relay, pass-the-hash and NTLMv1 rules read them, and the pass-the-hash threshold rule counts the computers one workstation reaches, so it needs the event from every member server and workstation it should cover. - Service logons (type 5) by
S-1-5-18,S-1-5-19andS-1-5-20(SYSTEM, LOCAL SERVICE, NETWORK SERVICE) are frequent and no rule or hypothesis of the library reads them: they are the safest to leave out where volume is the limit. - On domain controllers keep every logon: the DCSync, service installation and Shadow Credentials hypotheses find the source address of a session by joining other events to 4624 through
TargetLogonId. - On servers you protect, keep Kerberos network logons (type 3) if you use the Silver Ticket hypothesis: it matches their
LogonGuidwith the service tickets the domain controllers issued. - Where only the rules matter, an XPath filter keeps what they match, here in the form of an Azure Monitor data collection rule (a Windows Event Forwarding subscription takes the expression after the
!in aSelectof that log):Security!*[System[(EventID=4624)]] and *[EventData[Data[@Name='AuthenticationPackageName']='NTLM' or Data[@Name='LogonType']='9']]. The hypotheses need the unfiltered event.
Sample event
Version 3, with made-up values.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" />
<EventID>4624</EventID>
<Version>3</Version>
<Level>0</Level>
<Task>12544</Task>
<Opcode>0</Opcode>
<Keywords>0x8020000000000000</Keywords>
<TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
<EventRecordID>1048576</EventRecordID>
<Correlation />
<Execution ProcessID="712" ThreadID="2408" />
<Channel>Security</Channel>
<Computer>SQL01.corp.example.com</Computer>
<Security />
</System>
<EventData>
<Data Name="SubjectUserSid">S-1-0-0</Data>
<Data Name="SubjectUserName">-</Data>
<Data Name="SubjectDomainName">-</Data>
<Data Name="SubjectLogonId">0x0</Data>
<Data Name="TargetUserSid">S-1-5-21-1004336348-1177238915-682003330-1105</Data>
<Data Name="TargetUserName">alice</Data>
<Data Name="TargetDomainName">CORP.EXAMPLE.COM</Data>
<Data Name="TargetLogonId">0x2a4f1c3</Data>
<Data Name="LogonType">3</Data>
<Data Name="LogonProcessName">Kerberos</Data>
<Data Name="AuthenticationPackageName">Kerberos</Data>
<Data Name="WorkstationName">-</Data>
<Data Name="LogonGuid">{6f0c2a1e-3b5d-4c7a-9e21-0d4f8b7a6c53}</Data>
<Data Name="TransmittedServices">-</Data>
<Data Name="LmPackageName">-</Data>
<Data Name="KeyLength">0</Data>
<Data Name="ProcessId">0x0</Data>
<Data Name="ProcessName">-</Data>
<Data Name="IpAddress">10.20.30.41</Data>
<Data Name="IpPort">51240</Data>
<Data Name="ImpersonationLevel">%%1833</Data>
<Data Name="RestrictedAdminMode">-</Data>
<Data Name="RemoteCredentialGuard">-</Data>
<Data Name="TargetOutboundUserName">-</Data>
<Data Name="TargetOutboundDomainName">-</Data>
<Data Name="VirtualAccount">%%1843</Data>
<Data Name="TargetLinkedLogonId">0x0</Data>
<Data Name="ElevatedToken">%%1843</Data>
</EventData>
</Event>Attacks this event reveals
Detection rules that read this event:
Detection logic (hypotheses that join this event with others) for:
Frequently asked questions
What do the logon types in event 4624 mean?
Logon Type says how the session was created. 2 is a sign-in at the keyboard, 3 a network logon such as access to a file share, 4 a batch job, 5 a service, 7 an unlock, 8 a network logon whose password reached the authentication package unhashed, 9 a process that keeps its own identity but uses other credentials for outbound connections, 10 a Remote Desktop sign-in, and 11 a sign-in with cached credentials. Types 3 and 9 are the ones the library's NTLM relay and pass-the-hash rules read.
How do I find NTLMv1 logons with event 4624?
Look for events whose Authentication Package is NTLM and whose Package Name (NTLM only) is NTLM V1 or LM, and leave out ANONYMOUS LOGON, because Windows records NTLM V1 for every session without NTLMv2 key material, anonymous ones included. Collect the event from the servers as well as the domain controllers, since it is written on the computer that was accessed. Microsoft also describes a case where a third-party client falls back to a request without extended session security and a domain controller that still allows NTLMv1 accepts it, which the server then logs as NTLMv1.
Why does event 4624 show no source address or workstation name?
The address, port and workstation name are what the authenticating service passed to the Local Security Authority. Microsoft notes that Kerberos network logons usually have no workstation name and that some logons have no network details at all. It gives NTLM logons as an example of logons without TCP/IP details, although the example in its own NTLMv1 audit article is an NTLM network logon that has an address. Local logons show ::1, 127.0.0.1 or a dash. When the address is missing, the domain controller's 4768 or 4769 for the same account, or the Logon GUID match with 4769, can give the client address.
Do domain controllers log 4624 for every domain logon?
No. A domain controller writes 4624 only for logons to itself. When a domain user logs on to a workstation or a server, that computer writes 4624, and the domain controller writes 4768 and 4769 for Kerberos or 4776 for NTLM. To see where accounts actually log on, collect the Security log of the member servers and workstations too.
References
- 4624(S): An account was successfully logged on (Microsoft)
- Audit Logon (Microsoft)
- Audit use of NTLMv1 on a Windows Server-based domain controller (Microsoft)
- Audit event shows authentication package as NTLMv1 instead of NTLMv2 (Microsoft)
- How User Account Control works (Microsoft)
- Remote Credential Guard (Microsoft)
- Mapped drives are not available from an elevated prompt when UAC is configured to Prompt for credentials (Microsoft)
- Deprecated features in the Windows client (Microsoft)
- Log on as a batch job (Microsoft)