Event ID 4771: Kerberos pre-authentication failed
Event 4771 is generated when Kerberos pre-authentication fails on a domain controller, typically because of an incorrect password, a disabled, expired or locked-out account, or clock skew. This event is essential for detecting password spraying attacks and brute force attempts against Active Directory accounts. Attempts against usernames that do not exist are logged as Event 4768 failures with code 0x6, not as 4771.
- Channel
- Security
- Logged by default
- On domain controllers
- Written on
- Domain controller
- Volume
- Moderate
- Audit subcategory
- Kerberos Authentication Service
- Needs a SACL
- No
To have this event
- Enable Kerberos Authentication Service:
auditpol /set /subcategory:"Kerberos Authentication Service" /success:enable /failure:enable
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| TargetUserName | Account name for which pre-auth failed |
| ServiceName | Service name (typically krbtgt) |
| IpAddress | Source IP address |
| IpPort | Source port |
| Status | Kerberos error code, shown as 'Failure Code' in the rendered message (0x18=KDC_ERR_PREAUTH_FAILED, wrong password, the password-spray signal; 0x12=KDC_ERR_CLIENT_REVOKED, account disabled, expired or locked out; 0x17=KDC_ERR_KEY_EXPIRED, password expired; 0x25=KRB_AP_ERR_SKEW, clock skew too great)0x6 KDC_ERR_C_PRINCIPAL_UNKNOWN0x7 KDC_ERR_S_PRINCIPAL_UNKNOWN0xc KDC_ERR_POLICY0xe KDC_ERR_ETYPE_NOTSUPP0x12 KDC_ERR_CLIENT_REVOKED0x17 KDC_ERR_KEY_EXPIREDAll Kerberos result codes (Status) values |
| PreAuthType | Pre-authentication type attempted0 No pre-authentication15 PA-PK-AS-REP_OLD16 PA-PK-AS-REQ (PKINIT)17 PA-PK-AS-REPAll PreAuthType values |
| TicketOptions | Ticket options requested |
In an investigation
Event 4771 provides early warning of authentication attacks targeting Active Directory through failed Kerberos pre-authentication. Unlike Event 4625 (failed logons) which captures various authentication failures, Event 4771 specifically tracks Kerberos AS-REQ failures before full authentication occurs. This event is generated on domain controllers when clients request Kerberos tickets but fail pre-authentication, making it valuable for detecting password spraying (low-frequency password attempts across many accounts), and brute force attacks (high-frequency attempts against specific accounts). The failure code field indicates the specific reason for failure - wrong password (0x18, KDC_ERR_PREAUTH_FAILED), account disabled, expired or locked out (0x12, KDC_ERR_CLIENT_REVOKED), password expired (0x17, KDC_ERR_KEY_EXPIRED), or clock skew (0x25, KRB_AP_ERR_SKEW). Username enumeration does not show up here: requests for accounts that do not exist fail before pre-authentication and are logged as Event 4768 with code 0x6 (KDC_ERR_C_PRINCIPAL_UNKNOWN).
What it can reveal
- Password spraying attacks detected through widespread 0x18 (wrong password) failures across multiple accounts from single source IPs
- Credential stuffing attempts visible when attackers test compromised credentials from external breaches against Active Directory
- Username enumeration does not appear in 4771: probes for nonexistent accounts show up as Event 4768 failures with code 0x6 (KDC_ERR_C_PRINCIPAL_UNKNOWN), so hunt for those alongside 4771
- A spray that crosses the lockout threshold produces Event 4740 lockouts followed by 4771 failures with code 0x12 (KDC_ERR_CLIENT_REVOKED) for the locked accounts
- APT28 (Fancy Bear) and Iranian APT groups frequently conduct password spraying campaigns generating mass Event 4771 failures
How to detect with it
Implement threshold-based detection for multiple Event 4771 failures from single source IPs within sliding time windows (e.g., >10 failures in 10 minutes indicates possible brute force). Monitor for password spraying patterns characterized by single failures across many different accounts from the same source. Watch for 4771 failure codes beyond 0x18, such as bursts of 0x12 as accounts lock out, and pair this with Event 4768 failures with code 0x6 (user not found) to catch username enumeration, which does not generate 4771. Correlate Event 4771 with Event 4625 and Event 4768 (successful Kerberos ticket requests) to identify accounts transitioning from failed to successful authentication. Track source IP addresses and geolocations for failures originating from unexpected countries or known malicious infrastructure. Monitor service accounts and administrative accounts for any authentication failures, as these should rarely fail in legitimate use.
Attack patterns
- Password spray attack pattern: a single source tries one or two common passwords against many accounts, producing Event 4771 failures with code 0x18 spread thinly across accounts rather than concentrated on one
- Insider threat investigation: Terminated employee's remote access attempts generated Event 4771 code 0x12 (account disabled) from external VPN IP after account deactivation
Compared withEvent 4771 specifically tracks Kerberos pre-authentication failures, while Event 4625 captures all types of logon failures including NTLM. Event 4776 monitors NTLM authentication failures. Monitor all three for comprehensive authentication failure visibility.
Pull this event
Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.
Get-WinEvent -LogName 'Security' -FilterXPath "*[System[(EventID=4771)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
Where it shows up
Investigations, attack signals and lateral movement techniques that rely on this event.
- Attack signalPassword SprayingKerberos pre-authentication failures for the wrong-password reason across many distinct accounts from one source.
- InvestigationIs this a brute-force or password-spray attack, and did any attempt succeed?Check the domain controller's view
- InvestigationWhen did the attacker first get in? Building the initial access timelinePull the failures that preceded it
ATT&CK mapping
Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.
Related events
Common questions
- What does Windows event ID 4771 mean?
- Event 4771 is generated when Kerberos pre-authentication fails on a domain controller, typically because of an incorrect password, a disabled, expired or locked-out account, or clock skew. This event is essential for detecting password spraying attacks and brute force attempts against Active Directory accounts. Attempts against usernames that do not exist are logged as Event 4768 failures with code 0x6, not as 4771.
- Is event 4771 logged by default?
- Only on domain controllers, where the default domain controller policy turns the subcategory on. Elsewhere it must be enabled. It is controlled by the "Kerberos Authentication Service" Advanced Audit Policy subcategory (Account Logon).
- Where is event 4771 recorded?
- In the Security channel on the domain controller.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderEvent 4771 is generated when Kerberos pre-authentication fails on a domain controller, typically because of an incorrect password, a disabled, expired or locked-out account, or clock skew.