Skip to content
SOC Analyst Role
  • Loading index…

↑↓ navigate · ↵ open · Esc close

en

Security · Kerberos

4771 · Kerberos pre-authentication failed

Logged on a domain controller when Kerberos pre-authentication fails, most often because the password was wrong (Failure Code 0x18). It is the Kerberos counterpart of a failed logon, and many 0x18 failures across different accounts from one client is a password spraying pattern that 4625 on endpoints may never show.

medium prioritySecurity logKerberosMITRE T1110.003

Where it is logged

Security log on domain controllers. Requires Audit Kerberos Authentication Service failure auditing (Account Logon). Note that a bad password for a non-existent user is logged as 4768 with 0x6, not 4771.

Key fields to read

FieldWhat it tells you
TargetUserNameAccount whose pre-authentication failed.
StatusKerberos failure code: 0x18 bad password, 0x12 account disabled/expired/locked, 0x25 clock skew, 0x17 password expired.
IpAddressClient IP (often ::ffff: mapped); the key pivot for spraying.
ServiceNameUsually krbtgt/DOMAIN, since pre-auth is part of the TGT request.
PreAuthType2 encrypted timestamp (password), 15 PKINIT (smart card/certificate).
TicketOptionsRequested ticket flags, useful to fingerprint tools.

Sample event

4771 — synthetic example
Log Name: Security
EventID: 4771
TimeCreated: 2026-11-22T06:31:12.447Z
Computer: NW-DC-01.northwind.local
Keywords: Audit Failure
TargetUserName: a.nguyen
TargetSid: S-1-5-21-3623811015-3361044348-30300820-2203
ServiceName: krbtgt/NORTHWIND.LOCAL
TicketOptions: 0x40810010
Status: 0x18
PreAuthType: 2
IpAddress: ::ffff:10.20.40.88
IpPort: 49733

How to triage it

  1. 1Decode Status: 0x18 bad password is the interesting one; 0x25 clock skew and 0x17 expired password are usually operational.
  2. 2Group by IpAddress: how many distinct TargetUserName values failed from it in the last hour?
  3. 3Group by account: one account failing from many IPs (or repeatedly from one device) suggests brute force or a stale credential.
  4. 4Check for any success (4768 0x0 / 4624) for targeted accounts from the same IP after the failures.
  5. 5Identify the source host and its owner; check whether it is a server running a misconfigured service or a user workstation.
  6. 6Correlate with 4740 lockouts and escalate if spraying is confirmed or any account succeeded.

Benign vs suspicious

Usually benign

  • User typed a wrong password or caps lock was on (a handful of failures, then success).
  • Stale credentials on a phone, mapped drive or service after a password change, repeating every few minutes from one device.
  • Clock skew (0x25) on a misconfigured machine.

Red flags

  • Many 0x18 failures for different accounts from a single IpAddress within minutes (password spraying).
  • Failures for disabled or honeytoken accounts, or for alphabetically ordered usernames.
  • Low-and-slow pattern: one attempt per account every 30+ minutes to stay under lockout thresholds.
  • A success for one of the sprayed accounts from the same source shortly after the failures.

Hunt for it: Splunk & KQL

Splunk SPL
index=wineventlog EventCode=4771 Status=0x18
| bin _time span=30m
| stats dc(TargetUserName) AS users count AS failures values(TargetUserName) AS sample_users BY _time, IpAddress
| where users >= 10
| sort - users
Sentinel KQL
// Sentinel SecurityEvent: Kerberos password spraying (many accounts, one source)
SecurityEvent
| where TimeGenerated > ago(1d)
| where EventID == 4771 and Status == "0x18"
| summarize Users = dcount(TargetUserName), Failures = count(), Sample = make_set(TargetUserName, 20)
    by IpAddress, bin(TimeGenerated, 30m)
| where Users >= 10
| order by Users desc

Field names depend on your add-on and table. More translations in the Splunk vs KQL cheat sheet.

Interview question

“Why might password spraying show up in 4771 but not in 4625?”

✓ Strong answer sketch

If the attacker authenticates with Kerberos directly against the DC, for example with a spraying tool sending AS-REQs, the failures are pre-authentication failures recorded as 4771 on the DC, not interactive or network logon failures recorded as 4625 on an endpoint. That is why I collect DC Security logs and hunt 4771 0x18 grouped by source IP. The pattern for spraying is many distinct accounts with one or two failures each from the same client, as opposed to brute force where one account fails many times. I then check whether any of those accounts later succeeded from the same IP.

More SOC interview questions

Frequently asked questions

What does failure code 0x18 mean in Event 4771?

0x18 is KDC_ERR_PREAUTH_FAILED: the supplied password (pre-authentication data) was wrong for an existing account.

Does 4771 log unknown usernames?

No. If the username does not exist the DC logs 4768 with Status 0x6 (KDC_ERR_C_PRINCIPAL_UNKNOWN) instead.