Huntbook by Predefender

part-4

Windows Logons

Windows logon events are evidence of authentication and session creation. They are not proof that a person was physically present, that the activity was interactive, or that the source address identifies the initiating endpoint. Services, scheduled tasks, remote administration, cached credentials, and authentication intermediaries all leave different shapes.

Core events

Event IDMeaningInvestigation value
4624An account was successfully logged onSession type, target identity, authentication package, source details, and logon identifier
4625An account failed to log onStatus, substatus, attempted identity, source details, process, and logon type
4634A logon session endedSession cleanup; may be missing after crashes or collection gaps
4647A user initiated logoffStronger indication of an intentional user logoff than 4634
4648A logon was attempted using explicit credentialsUseful around runas, remote administration, scripts, and credential reuse
4672Special privileges were assigned to a new logonHelps identify privileged sessions; common for expected administrative and system activity
4688A new process was createdConnects a session and identity to execution when command-line auditing is available
4768A Kerberos authentication ticket (TGT) was requestedDomain-controller view of initial Kerberos authentication
4769A Kerberos service ticket was requestedUseful for service access, encryption types, and unusual service-ticket volume
4771Kerberos pre-authentication failedNormally observed on a domain controller; investigate status, client, account, and surrounding Kerberos activity
4776An NTLM credential validation was attemptedWritten on the system authoritative for the supplied credentials: normally a domain controller for domain accounts and the local computer for local accounts
4778 / 4779A session was reconnected / disconnectedUseful for Terminal Services and RDP session continuity; can also reflect Fast User Switching or Hyper-V Enhanced Session Mode
4740A user account was locked outExplains failure sequences and identifies the caller computer where populated
1102The audit log was clearedMay explain missing Security events; high-value context that requires administrative and system validation

Event availability depends on audit policy, operating-system version, forwarding configuration, and parser quality.

Logon types

TypeNameTypical contextHunting note
0SystemOperating-system useRare in ordinary user investigations
2InteractiveLocal console or equivalent local sessionDoes not by itself prove physical presence
3NetworkAccess to a remote resource such as a shareExtremely common; interpret with source, service, and target context
4BatchScheduled task or batch processingCompare with task configuration and expected service identity
5ServiceService Control Manager starting a servicePivot to service installation, configuration, and binary path
7UnlockUnlocking an existing workstation sessionDifferent from creation of a fresh interactive session
8NetworkCleartextCredentials supplied in an unhashed form to the authentication packageDoes not mean the credentials crossed the network in plaintext
9NewCredentialsExisting token cloned with different outbound credentialsOften associated with runas /netonly; local identity can differ from network identity
10RemoteInteractiveRemote Desktop or similar terminal-services logonBaseline source-to-destination pairs and follow the resulting session
11CachedInteractiveDomain user logged on with cached credentialsDomain controller may have no corresponding live authentication
12CachedRemoteInteractiveSame as RemoteInteractive; used internally for auditingDo not infer cached credential validation from the name alone
13CachedUnlockUnlock using cached credentialsTreat as continuation of an existing session

The name NetworkCleartext is easy to overread. Microsoft documents that the password is passed to the authentication package in an unhashed form; the event does not prove cleartext network transport.

References: Event 4624 and logon types , Event 4625 , Event 4776 , and administrative logon types and credential exposure

Fields worth preserving

FieldQuestion it helps answer
Computer / DeviceNameWhere was the event generated?
TargetUserName and TargetDomainNameWhich identity was acted upon?
SubjectUserNameWhich local security context initiated the action?
LogonTypeWhat kind of session or resource access was requested?
LogonId / TargetLogonIdWhich local session can be correlated with later events?
LinkedLogonIdIs another session explicitly linked?
LogonGuid / TargetLogonGuidCan this logon be correlated with other authentication events? The value may be all zeroes
IpAddress and IpPortWhat source did the receiving system record?
WorkstationNameWhat client name was supplied, if any?
ProcessName and ProcessIdWhich local process participated?
AuthenticationPackageNameKerberos, NTLM, Negotiate, or another package?
LogonProcessNameWhich trusted logon process handled the request?
Status and SubStatusWhy did the attempt fail?
ElevatedTokenWas the resulting token elevated?

A logon identifier is meaningful on the computer that issued it. Pair it with the device and use a tight time window; do not join unrelated hosts on LogonId alone.

Hunt patterns

Failed attempts followed by success

Group failures by target account, source, destination, and logon type. Then ask whether a success followed from the same source, or whether the source shifted. A password reset, unlocked account, mistyped password, service restart, or adversary can all produce this sequence.

A service identity used interactively

Look for service or application accounts using types 2 or 10, or appearing on user workstations. Validate how the account is designed, whether an operator used it for troubleshooting, and what executed inside the session.

Rare Remote Desktop paths

A new source-to-destination pair can be more useful than raw RDP volume. Add identity, asset role, working hours, connection broker behaviour, privileged-session tooling, and 4778/4779 session events.

Network-logon fan-out

One source producing type 3 logons to many systems may reflect administration, inventory, backup, vulnerability scanning, malware, or share enumeration. Compare destination count, rate, share access, remote service creation, process ancestry, and the source asset’s role.

NTLM where Kerberos is expected

NTLM can be caused by IP-based access, local accounts, workgroups, legacy software, name-resolution failures, or adversary activity. Treat it as an environmental question first, then narrow to new identities, systems, and paths.

Explicit credentials near remote activity

Correlate 4648 with process creation, outbound network activity, 4624 on the destination, service or task creation, and share access. The absence of 4648 does not prove credentials were not used.

A starting Kusto query

This example keeps enough dimensions to expose different behaviours instead of collapsing all failures into one account count.

SecurityEvent
| where TimeGenerated > ago(24h)
| where EventID == 4625
| summarize Failures=count(),
            FirstSeen=min(TimeGenerated),
            LastSeen=max(TimeGenerated),
            Statuses=make_set(strcat(Status, "/", SubStatus), 10)
    by TargetAccount, Computer, IpAddress, LogonType
| where Failures >= 10
| order by Failures desc

Before operational use:

  • Inspect raw events for the highest groups.
  • Confirm whether IpAddress is an endpoint, proxy, broker, or missing value.
  • Split expected machine and service-account patterns from human accounts.
  • Test whether collection gaps create apparent “failure without success” sequences.
  • Decide whether the entity is the account, source, destination, or a relationship between them.

Investigation workflow

  1. Establish the viewpoint and timestamp of the event.
  2. Identify the target identity and logon type.
  3. Resolve the source cautiously; include NAT, jump hosts, gateways, and brokers.
  4. Correlate the local logon ID with privilege and process events.
  5. Correlate Kerberos activity with 4768, 4769, and domain-related 4771 events from the domain controller’s perspective. Correlate NTLM credential validation with relevant 4776 events from the authoritative system.
  6. Follow the session into execution, network, service, task, share, and file telemetry.
  7. Compare the relationship with historical behaviour and asset purpose.
  8. Document what the events prove, what they suggest, and what telemetry is absent.

Revision

Revised DateComment
2024-10-06Added page
2026-07-23Rewritten as a correlation and investigation reference