Every Windows sign-in, share connection, scheduled task and service start is recorded as a logon with a type number, and most detection gaps come from analysts who cannot tell a normal type 3 from a dangerous one. The logon type, the authentication package and a handful of other fields in events 4624, 4625 and 4648 tell you how an account arrived, whether reusable credentials were left on the machine, and whether NTLM or Kerberos was used. This guide explains each logon type you will see (2, 3, 4, 5, 7, 8, 9, 10 and 11), how common administration methods such as mapped drives, RUNAS, PsExec, WinRM and Remote Desktop show up, how NTLM and Kerberos look in the events, and how the well-known groups such as Authenticated Users relate to logon sessions. It is written for SOC analysts, detection engineers and Active Directory administrators, and is based on Microsoft Learn documentation. For audit policy configuration and the wider event catalogue, see the Windows Event Log Guide.
Key takeaways
- The event is written where the account arrived. 4624 and 4625 are logged on the computer that was accessed: the workstation for a console sign-in, the file server for a mapped drive. Domain controllers see the authentication (4768, 4769, 4776), not every logon.
- The logon type tells you about credential exposure. Interactive (2), batch (4), service (5), cleartext (8), new credentials (9) and Remote Desktop (10) leave reusable credentials in memory on the destination; a plain network logon (3) normally does not.
- Read the authentication package, not just the type. Kerberos, NTLM and Negotiate appear in 4624; Package Name shows NTLM V1, NTLM V2 or LM, and Key Length is 0 for Kerberos.
- Mismatches are the high value signals. Microsoft's own monitoring advice flags domain administrators with batch or service logons, Remote Desktop without Restricted Admin where it is required, and NTLM where it should not appear.
- Correlate on Logon ID and Logon GUID. Logon ID ties 4624 to 4672 privileges and 4688 processes on the same host; Logon GUID ties a Kerberos logon to the 4769 service ticket on the domain controller.
Where authentication events are written
A single remote action produces events on more than one machine. Knowing which machine logs what is the first step to building a detection or an investigation timeline.
| Event | Name | Logged on | Audit subcategory |
|---|---|---|---|
| 4624 | An account was successfully logged on | The computer that was accessed | Audit Logon |
| 4625 | An account failed to log on | The computer where the attempt was made | Audit Logon, Audit Account Lockout |
| 4648 | A logon was attempted using explicit credentials | The computer where the process supplied the credentials | Audit Logon |
| 4672 | Special privileges assigned to new logon | Same computer as the matching 4624 | Audit Special Logon |
| 4768 | A Kerberos authentication ticket (TGT) was requested | Domain controller | Audit Kerberos Authentication Service |
| 4769 | A Kerberos service ticket was requested | Domain controller only | Audit Kerberos Service Ticket Operations |
| 4776 | The computer attempted to validate the credentials for an account (NTLM) | The authoritative computer: the domain controller for domain accounts, the local machine for local accounts | Audit Credential Validation |
Microsoft recommends auditing both success and failure for Audit Logon on domain controllers, member servers and workstations, and describes the volume as low on clients and medium on domain controllers and servers. A practical consequence: if you only collect domain controller logs you see NTLM validation (4776) and Kerberos tickets (4768, 4769) but not the type 3 logons on file servers or the type 10 logons on jump hosts. Collect 4624 and 4625 from servers and administrative workstations too; the Windows Event Forwarding Guide covers how.
The logon types explained
The Logon Type field in 4624 and 4625 is a number from the Windows SECURITY_LOGON_TYPE enumeration. The table combines Microsoft's 4624 definitions with its administrative tools reference, which records which authenticators each type accepts and whether reusable credentials (NT hashes, Kerberos tickets or plaintext passwords) are held in the LSA session on the destination.
| Type | Name | Typical source | Authenticators | Reusable credentials on destination |
|---|---|---|---|---|
| 2 | Interactive | Console sign-in, RUNAS, network KVM or lights-out card | Password, smart card, other | Yes |
| 3 | Network | Mapped drives (net use), RPC calls, MMC snap-ins, Remote Registry, WinRM without CredSSP, IIS Integrated Windows authentication, SQL Windows authentication | Password, NT hash, Kerberos ticket | No, except where Kerberos delegation places tickets on the server |
| 4 | Batch | Scheduled tasks running as a stored account | Password stored as an LSA secret | Yes, and the password is also on disk as an LSA secret |
| 5 | Service | Service Control Manager starting a service under an account | Password stored as an LSA secret | Yes, and the password is also on disk as an LSA secret |
| 7 | Unlock | Unlocking a locked workstation | As for interactive | Not listed in Microsoft's reference |
| 8 | NetworkCleartext | IIS Basic authentication (IIS 6.0 and later), PowerShell remoting with CredSSP | Password passed unhashed to the authentication package | Yes |
| 9 | NewCredentials | RUNAS /NETWORK: same local identity, different credentials for outbound connections | Password | Yes |
| 10 | RemoteInteractive | Remote Desktop (Terminal Services) | Password, smart card, other | Yes |
| 11 | CachedInteractive | Sign-in with cached domain credentials, domain controller not contacted | Locally stored credentials | Not listed in Microsoft's reference |
- Type 0 and types 12 and 13: type 0 (System) is used only by the System account, for example at startup. Microsoft describes 12 (CachedRemoteInteractive) as used for internal auditing and 13 (CachedUnlock) as a workstation logon; neither needs its own detection.
- NetworkCleartext is not plaintext on the wire: Microsoft's definition is that the password reached the authentication package unhashed. The concern is that a reusable password now sits on the server, so find and fix the application producing type 8.
- Type 9 looks local: a NewCredentials logon keeps the caller's local identity, so the New Logon account name is the original user, and the Network Account Name and Network Account Domain fields show the credentials used for outbound connections.
How administration methods appear in the logs
The same task can be done in ways that expose credentials very differently. Microsoft's administrative tools reference is the authoritative mapping; the most common rows are below. Credentials are always exposed on the source computer, which is why privileged access workstations matter.
| Method | Logon type on destination | Reusable credentials left on destination |
|---|---|---|
| Console sign-in or RUNAS | 2 Interactive | Yes |
| RUNAS /NETWORK | 9 NewCredentials | Yes |
| Remote Desktop, successful | 10 RemoteInteractive | Yes |
| Remote Desktop, logon type denied | 10 RemoteInteractive | No (stored only briefly) |
| net use * \\SERVER, with or without /u: | 3 Network | No |
| MMC snap-ins (Computer Management, Event Viewer, Services) | 3 Network | No |
| PowerShell WinRM (Enter-PSSession) | 3 Network | No |
| PowerShell WinRM with CredSSP | 8 NetworkCleartext | Yes |
| PsExec without explicit credentials | 3 Network | No |
| PsExec with explicit credentials (-u -p) | 3 and 2 (several sessions) | Yes |
| Remote Registry | 3 Network | No |
| Remote Desktop Gateway (authenticating to the gateway) | 3 Network | No |
| Scheduled task | 4 Batch | Yes |
| Tool run as a service | 5 Service | Yes |
| Vulnerability scanner (most) | 3 Network | No, but some products use other logon types |
Mapped drives and RPC context: mapping a drive or opening a share uses SMB on TCP 445, and older NetBIOS-based access uses UDP 137 (name resolution), UDP 138 (datagram) and TCP 139 (session service); Microsoft notes the NetBIOS ports are optional for the Server service on modern Windows. RPC-based tools such as the MMC snap-ins and Remote Registry start at the RPC endpoint mapper on TCP 135 and then use the dynamic range 49152 to 65535. All of these arrive as type 3. When you see a type 3 from an unexpected workstation, the Source Network Address, Workstation Name and Process Name fields, plus firewall logs for those ports, tell you which method was used. Remote Desktop uses TCP and UDP 3389 and WinRM TCP 5985 (HTTP) or 5986 (HTTPS).
Reading 4624 field by field
Since Windows 10, 4624 is version 2 of the event and carries a Logon Information block. Read these fields in roughly this order.
- Subject: the account that reported the logon, normally SYSTEM. Microsoft recommends reporting any 4624 where the Subject Security ID is not SYSTEM.
- Logon Type, Restricted Admin Mode, Virtual Account, Elevated Token: Restricted Admin Mode is populated only for type 10 and shows Yes when Remote Desktop used Restricted Admin; Virtual Account is Yes for managed and group managed service accounts; Elevated Token Yes means an administrator session.
- Impersonation Level: Identification, Impersonation (the most common) or Delegation. Delegation means the server can use the client's identity on remote systems, which matters for Kerberos delegation reviews. See the Kerberos Delegation Security Guide.
- New Logon: the account that logged on, its Logon ID (for correlation on this host), Linked Logon ID (the paired logon session, or 0x0 if none) and Logon GUID.
- Process Information: Process ID and Process Name of what requested the logon. Unexpected executables, or binaries outside System32 and Program Files, deserve review.
- Network Information: Workstation Name, Source Network Address and Source Port. Microsoft notes that Kerberos network logons usually lack the workstation name and NTLM logons lack TCP/IP details, so expect gaps and use both.
- Detailed Authentication Information: Logon Process, Authentication Package (Kerberos, NTLM or Negotiate; Negotiate picks Kerberos unless it cannot be used), Transited Services (populated for Kerberos S4U logons), Package Name (NTLM V1, NTLM V2 or LM) and Key Length (128 or 56 for NTLM, always 0 for Kerberos).
NTLM versus Kerberos in the events
| Question | Kerberos | NTLM |
|---|---|---|
| Authentication Package in 4624 | Kerberos | NTLM |
| Package Name and Key Length | Package Name blank; Key Length 0 | NTLM V1, NTLM V2 or LM; Key Length 128 or 56 |
| Domain controller evidence | 4768 (TGT) and 4769 (service ticket, with Service Name, Client Address and Ticket Encryption Type) | 4776 credential validation on the DC, with Logon Account, Source Workstation and Error Code |
| Source details in 4624 | Often no Workstation Name | Often no Source Network Address or port |
| What good looks like | Ticket Encryption Type 0x11 or 0x12 (AES) | Only NTLM V2 with 128 bit keys, and shrinking |
| Red flags | 0x17 (RC4) or 0x1/0x3 (DES) tickets; requests from ::1 for accounts not allowed on DCs | NTLM V1 or LM; Key Length 56; NTLM for accounts or servers where it should not be used |
Local accounts always use NTLM when signing in to the machine that stores them, so NTLM on a workstation is not by itself suspicious. To see NTLM use across the domain, collect 4776 from domain controllers and enable the security option Network security: Restrict NTLM: Audit NTLM authentication in this domain, which logs to the NTLM Operational log under Applications and Services Logs, Microsoft, Windows, NTLM without blocking anything. Audit there before applying any Restrict NTLM blocking setting. See the NTLM Deprecation and Elimination Guide for the removal programme and the NTLM Relay Guide for why NTLM on servers matters.
Failures and explicit credentials
4625 carries Failure Reason, Status and Sub Status. The codes worth alerting on, from Microsoft's 4625 and 4776 documentation:
| Code | Meaning | Detection reading |
|---|---|---|
| 0xC0000064 | User name does not exist | Runs across many names suggest enumeration |
| 0xC000006A | Bad password | Repeats on service or admin accounts suggest guessing; one per account across many accounts suggests spraying |
| 0xC000006D | Bad user name or authentication information | Watch on critical and service accounts |
| 0xC000006F / 0xC0000070 | Outside permitted hours / unauthorised workstation | Logon restrictions working; ask who tried |
| 0xC0000071 (4776) | Expired password | Often a stale service credential |
| 0xC0000072 / 0xC0000193 | Disabled account / expired account | Attempts to use leavers' or retired accounts |
| 0xC000015B | Logon type not granted | An account tried a logon right it does not hold, for example an admin denied Remote Desktop |
| 0xC0000234 | Account locked out | Brute force or a stale password in a service |
| 0xC0000413 | Blocked by the authentication firewall | Account not allowed to authenticate to this machine |
| 0xC000005E / 0xC0000192 | No logon servers / Netlogon not started | Availability, not security |
4648 explicit credentials: logged when a process supplies an account's credentials explicitly, most often scheduled tasks and RUNAS. The event shows the Subject (who asked), Account Whose Credentials Were Used, Target Server Name (localhost when local) and the Process Name. Because 4648 is also routine operating system noise, alert on combinations: a user account supplying an administrator's credentials, a process outside standard folders, or a target server the account does not normally reach. The Logon GUID links it to the 4624 on the target and the 4769 on the domain controller.
Authenticated Users and the logon session groups
When a logon session is created, Windows adds well-known group SIDs to the token that describe how the user arrived. Permissions granted to these groups therefore depend on logon type, which is useful to know when reviewing share and file permissions.
| Identity | SID | Who gets it |
|---|---|---|
| Everyone | S-1-1-0 | Interactive, network, dial-up and authenticated users; not Anonymous Logon by default since Windows Server 2003 |
| Authenticated Users | S-1-5-11 | Any user who accessed the system through a sign-in process |
| Network | S-1-5-2 | Users logged on through a network connection (type 3) |
| Interactive | S-1-5-4 | Users logged on to the local system |
| Remote Interactive Logon | S-1-5-14 | Remote Desktop users; tokens with it also contain Interactive |
| Batch | S-1-5-3 | Processes running as a batch job |
| Service | S-1-5-6 | Principals signed in as a service |
| Anonymous Logon | S-1-5-7 | Anonymous access; added to Everyone only if the everyoneincludesanonymous registry value under HKLM\SYSTEM\CurrentControlSet\Control\Lsa is set to 1, which Microsoft describes as a security risk |
A share permission of "Authenticated Users: Change" is reachable by any domain user over a type 3 logon from any workstation. When a type 3 logon to a file server looks odd, check what the token could reach through these groups before deciding the impact.
Detection rules that work
- Privileged accounts on the wrong tier: alert on 4624 types 2, 10 and 11 for domain administrator accounts on any host that is not a domain controller or privileged access workstation.
- Logon type mismatches: alert on type 4 or 5 for members of domain administrative groups, as Microsoft recommends; service and task accounts should be dedicated, low privilege identities.
- Restricted Admin required: for accounts that must use it, alert on type 10 with Restricted Admin Mode No.
- Elevated network logons from new sources: baseline type 3 logons with Elevated Token Yes per account and source address; new pairs often indicate lateral movement with admin shares, WinRM or PsExec.
- Cleartext and CredSSP: alert on type 8 outside the known IIS Basic authentication servers.
- NTLM hygiene: alert on Package Name NTLM V1 or LM, Key Length 56, and any NTLM for accounts in protected groups.
- Kerberos ticket hygiene: on domain controllers, alert on 4769 with Ticket Encryption Type other than 0x11 or 0x12, and on bursts of service ticket requests for many SPNs from one account, a sign of Kerberoasting. See the Kerberoasting and AS-REP Roasting Defence Guide.
- Special privileges: join 4672 to 4624 on Logon ID and alert when SeDebugPrivilege, SeTcbPrivilege or SeBackupPrivilege is granted to an account that is not SYSTEM, LOCAL SERVICE, NETWORK SERVICE or an expected administrator.
- Failure patterns: thresholds of N failures in N minutes for 0xC000006A per account (guessing) and per source across accounts (spraying), and any 0xC0000064 run (enumeration).
Test each rule against known administration activity before enabling alerting: run a scheduled task, a mapped drive, an Enter-PSSession and a Remote Desktop session from a test admin account and confirm the logon type and fields you expect. That gives you a regression test whenever audit policy or forwarding changes.
Where identity fits
Logon types are the clearest view of non-human identities in Windows. Type 5 shows every service account sign-in, type 4 every scheduled task account, and Virtual Account Yes identifies managed and group managed service accounts. Batch and service logons store the password as an LSA secret on disk, which is why an over-privileged service account on many servers is a lateral movement path. Inventory the accounts that appear in type 4 and 5 events, move them to group managed service accounts where possible, and alert when one appears in a type 2, 3 from an unexpected source or 10 logon. See the Service Account Security Guide and the Pass-the-Hash and Pass-the-Ticket Guide.
Measuring coverage
- Collection coverage: percentage of domain controllers, servers and administrative workstations forwarding 4624, 4625, 4648, 4672 and (on DCs) 4768, 4769 and 4776.
- Tiering violations: weekly count of privileged account logons of types 2, 10 or 11 outside permitted hosts, trending to zero.
- NTLM share: NTLM logons as a percentage of all 4624 network logons, and the number of accounts and servers still using NTLM V1 or LM (target zero).
- RC4 tickets: 4769 events with encryption type 0x17 per day, trending to zero.
- Service identity hygiene: accounts seen in type 4 or 5 logons that are not group managed service accounts.
Common failure patterns
- Collecting only domain controller logs. Type 3 and type 10 logons on servers never reach the SIEM, so lateral movement through admin shares is invisible.
- Treating type 3 as noise. It is the most common type, but Elevated Token Yes from a new source is exactly how administrative lateral movement looks.
- Reading only the logon type. Without Authentication Package, Package Name and Key Length, NTLM V1 and LM use goes unnoticed.
- Running admin tools that leave credentials behind. CredSSP, PsExec with -u -p and scheduled tasks under domain admin accounts all leave reusable credentials on the target.
- Blocking NTLM without auditing first. Restrict NTLM settings applied without the audit setting break applications nobody had inventoried.
- Ignoring 4625 on service accounts. Repeated 0xC000006A or 0xC0000234 on a service account is either an attack or a stale password stored somewhere; both need an owner.
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | DE.CM-01; DE.CM-03; DE.AE-02 | Monitor networks and account activity; analyse adverse events |
| NIST SP 800-53 Rev. 5 | AU-2; AU-6; AC-7; AC-17; SI-4; IA-2 | Event logging, review, unsuccessful logon attempts, remote access, system monitoring, authentication |
| MITRE ATT&CK | T1078.002; T1078.003; T1021.001; T1021.002; T1021.006; T1550.002; T1550.003; T1110.003; T1558.003; T1053.005; T1569.002 | Valid domain and local accounts, RDP, admin shares, WinRM, pass the hash and ticket, spraying, Kerberoasting, scheduled tasks and service execution all surface as specific logon types and fields |
| MITRE D3FEND | D3-UBA; D3-AZET; D3-LAM | User behaviour analysis, authorisation event thresholding, local account monitoring |
Practitioner checklist
- Enable success and failure for Audit Logon, plus Audit Special Logon, Audit Credential Validation and the Kerberos subcategories on domain controllers.
- Forward 4624, 4625, 4648 and 4672 from servers and administrative workstations, not only domain controllers.
- Parse Logon Type, Elevated Token, Restricted Admin Mode, Virtual Account, Authentication Package, Package Name, Key Length, Source Network Address and Process Name as fields.
- Write tiering rules for privileged accounts on types 2, 10 and 11.
- Alert on type 4 and 5 logons by domain administrators and on type 8 outside known servers.
- Audit NTLM in the domain, then drive NTLM V1, LM and 56 bit keys to zero.
- Alert on non-AES Kerberos service tickets.
- Inventory accounts seen in batch and service logons and move them to group managed service accounts.
- Replace CredSSP and PsExec with explicit credentials with methods that use type 3 logons.
- Run a test admin through each method quarterly and confirm the expected events arrive.
Standards and references
- Microsoft Learn: 4624(S) An account was successfully logged on
- Microsoft Learn: 4625(F) An account failed to log on
- Microsoft Learn: 4648(S) A logon was attempted using explicit credentials
- Microsoft Learn: Administrative tools and logon types reference
- Microsoft Learn: 4776(S, F) The computer attempted to validate the credentials for an account
- Microsoft Learn: 4769(S, F) A Kerberos service ticket was requested
- Microsoft Learn: Special identity groups
- Microsoft Learn: Service overview and network port requirements for Windows
Related NHI Mgmt Group resources: Windows Event Log Guide · Lateral Movement Guide · Kerberos Security Guide · NTLM Deprecation and Elimination Guide · Service Account Security Guide