Event ID 4771: Kerberos pre-authentication failed
Event ID 4771, "Kerberos pre-authentication failed", is written to a domain controller's Security log when a client asks for a ticket-granting ticket for an existing account but cannot prove it knows the password, which almost always means a wrong password.
What event 4771 records
Pre-authentication is the first step of a Kerberos logon: the client encrypts a timestamp with a key derived from the password, and the domain controller checks it. If the check fails, there is no 4768 success; the domain controller writes 4771 with the account, the client address and a failure code.
For domain accounts, 4771 is the domain-side record of a wrong password, the counterpart of 4625 on the computer where the user typed it. Because it carries the client's IP address, it is usually the quickest way to find which device is producing failures for an account.
Failure codes
| Failure Code | Meaning | Typical cause |
|---|---|---|
| 0x18 | Pre-authentication information was invalid | Wrong password. By far the most common. |
| 0x12 | Client credentials have been revoked | Account disabled, expired or locked out. |
| 0x17 | Password has expired | User needs to change the password. |
| 0x25 | Clock skew too great | Time difference between client and domain controller over five minutes. |
| 0x10 | Pre-authentication type not supported | Smart card or certificate logon problems. |
Note that 0x18 is a wrong password for an account that exists. Non-existent names are refused earlier and appear as 4768 with result 0x6.
Stale password or attack?
| Pattern | Likely cause |
|---|---|
| One account, one client address, steady failures every few minutes for hours or days | A device, service, task or mapped drive with an old password |
| One account, many failures in a minute from one address | Password guessing against that account |
| Many accounts, one or two failures each, from one or a few addresses | Password spraying |
| Failures followed by a 4768 success for one account from the same address | A guess that worked: investigate that session |
| Failures from a mobile device range or the mail server | Phones syncing mail with an old password |
One wrong password, three events
A user typing a wrong password for a domain account at a domain-joined workstation can leave a trail on two machines:
| Where | Event | What it adds |
|---|---|---|
| The workstation | 4625 | Logon type and the local process that made the attempt |
| The domain controller (Kerberos) | 4771 with 0x18 | The client address, logged even if the workstation is never collected |
| The domain controller (NTLM fallback) | 4776 with 0xC000006A | Used when Kerberos was not possible, for example a logon by IP address |
For investigations, the domain controller events are the domain-wide view: one query over their 4771 events shows every client that sent wrong passwords for any account in the period, which is how password spraying across many workstations is found.
Collecting and keeping 4771
4771 is written only by domain controllers, under "Audit Kerberos Authentication Service" with Failure enabled, which the default domain controller policy includes. On a large domain the volume of failures alone can be thousands a day, so the same advice applies as for 4768: collect the Security log of every domain controller, check how far back each one reaches, and keep forwarded copies where they exist.
Investigating password spraying, step by step
- Group 4771 failures with code 0x18 by client address and count distinct accounts per address (the query below).
- For the top addresses, list the accounts and times. Spraying shows the same small number of attempts for each account, often in alphabetical or directory order, spread over minutes or hours.
- Check for success: 4768 with result 0x0 from the same address for any of those accounts, after the failures began. Those accounts' passwords were guessed.
- Follow each successful account's 4769 service tickets from that address to see where it went.
- Check whether the same address also tried NTLM (4776) or other protocols such as webmail and VPN, which are logged outside Windows.
Spraying is usually aimed at a password that fits the policy and the season (a company name plus a year is common), so accounts that never changed an initial password are the ones that fall. Resetting the guessed accounts and adding a banned-password list stops the immediate attack.
When 0x18 is not an attack
A large share of 4771 failures in most domains comes from devices with stale passwords: phones syncing mail, scheduled tasks, mapped drives and service accounts after a password change. They are recognisable by their regularity (the same account, the same client, every few minutes for days) and they stop when the stored password is updated. Clearing them out is worth doing before an incident, because they hide real spraying in the noise.
Clock skew (0x25) and other non-password failures
Kerberos rejects requests from clients whose clock differs from the domain controller's by more than five minutes (the default maximum tolerance). A burst of 0x25 failures from one client usually means its time source failed, for example a virtual machine restored from a snapshot or a laptop that was off the network. They are worth fixing because they push the client to fall back to NTLM where it can, which changes what the logs record. Failure codes 0x12 (revoked) and 0x17 (expired password) point to account state rather than guessing, and are best read alongside the account's 4740 and 4724 history.
Event 4771 fields
The fields an investigator reads first, what they mean, and where Arcsentry stores them.
| Field | Meaning | Arcsentry field |
|---|---|---|
| Account Name | The account that failed pre-authentication. It exists in the domain (unknown names fail differently). | user_target_name |
| Security ID | The account's SID. | event data |
| Service Name | krbtgt/DOMAIN. | event data |
| Client Address and Port | The device that sent the request. ::ffff:a.b.c.d for IPv4. | source_ip |
| Ticket Options | Requested ticket flags. | event data |
| Failure Code | The reason (see the table). | event_log_status |
| Pre-Authentication Type | 2 for password-based; 15 to 17 for certificates. | event data |
| Certificate fields | Filled only for smart card or certificate logons. | event data |
Other fields are readable in Arcsentry as $preauthtype, $ticketoptions and so on.
What event 4771 proves, and what it does not
It shows
- That a client at this address tried to authenticate as this existing account and the password was wrong (for 0x18).
- Across many events: the spread of accounts and the rate, which separate attacks from stale passwords.
It does not show
- That the client was malicious; stale passwords are the most common cause.
- That the attack failed. Look for a 4768 success from the same address afterwards.
Attacker activity it reveals
Password spraying
Group 4771 with 0x18 by client address and count distinct accounts. A source with failures for dozens of accounts, one or two each, is spraying a common password. MITRE ATT&CK T1110.003
Targeted guessing
Many failures for one privileged account from an address that is not its owner's workstation. MITRE ATT&CK T1110.001
The guess that worked
After the failures, a 4768 success and 4769 service tickets for one of the targeted accounts from the same address.
Finding event 4771 in Arcsentry
Arcsentry parses every channel in Windows\System32\winevt\Logs, whether it comes from an Arcsentry Collector archive, a KAPE or Velociraptor collection, or a disk image. Security log records are the event type evtx_security. In Hunt, with that event type selected:
filter event_code == "4771" && event_log_status ~= "(?i)0x18"
group {source_ip} (aggregate {accounts = (dcount user_target_name), failures = count this, first_seen = (earliest timestamp), last_seen = (latest timestamp)})
sort {-accounts} Wrong-password failures per client address, with the number of distinct accounts. A source near the top with many accounts is spraying; one with many failures for one account is guessing or a stale password. Run on domain controller logs.
Or ask in plain English, for example "show event 4771 on every host, oldest first", and Arcsentry shows the AQL it wrote before it runs. The AQL reference lists the operators used here, and the AI investigator reads the same events, citing each one by its event ID when it reports a finding.
Related event IDs
- Event ID 4768: Kerberos TGT request
- Event ID 4769: Kerberos service ticket
- Event ID 4625: Failed logon
- Event ID 4740: Account locked out
- Event ID 4776: NTLM credential validation
All events by investigation question: Windows security event IDs for incident response. Logon types in full: Windows logon types. The log files themselves: Windows event logs.
Frequently asked
What is the difference between 4771 and 4768 failures?
4771 is logged when pre-authentication fails for an account that exists, almost always a wrong password (0x18). Failures before pre-authentication, such as an unknown user name (0x6) or a disabled account, are logged as 4768 with that result code.
Does a 4771 mean the account will be locked out?
Each 4771 with 0x18 counts towards the account's lockout threshold. When the threshold is reached within the observation window, the domain locks the account and the PDC emulator logs 4740.
What does event ID 4771 mean?
A domain controller refused a Kerberos ticket-granting ticket request because pre-authentication failed. With failure code 0x18 it means the password was wrong for an account that exists.
What is the 0x18 error code?
KDC_ERR_PREAUTH_FAILED: the pre-authentication data was invalid, which in practice means a wrong password.
What is the difference between 4771 and 4625?
4771 is logged on the domain controller for failed Kerberos pre-authentication of a domain account. 4625 is logged on the computer where the logon was attempted. A single wrong password typed at a workstation can produce both.
How do I find the device causing 4771 failures?
Read the Client Address in the event; it is the device that sent the bad password. Look there for services, scheduled tasks, mapped drives, saved credentials or a phone syncing mail with an old password.
Sources
- Microsoft Learn: 4771(F) Kerberos pre-authentication failed
- IETF RFC 4120: Kerberos V5 error codes
- MITRE ATT&CK: T1110 Brute Force
Checked 1 December 2026 by Venema Labs against Microsoft's audit documentation and, where an example is shown, the named lab case. Field availability varies by Windows version.
Find event 4771 across every host in minutes.
Load your collections, ask what happened, and check every finding against the event behind it. Free for 7 days.
Request a trial