Event ID 4776
Event ID 4776: NTLM Credential Validation
The computer attempted to validate the credentials for an account
- Log source
- Security
- How to enable it
- Account Logon > Audit Credential Validation (Success and Failure)
- Category
- Authentication
- Priority
- Medium
- Typical volume
- High
- MITRE ATT&CK
What Event ID 4776 means
4776 is written by the computer that has authority over the account when NTLM credentials are checked. For domain accounts that is a domain controller, whichever server the user tried to reach. For local accounts it is the computer itself.
Central recording makes it valuable. A spray that touches two hundred servers once each leaves one failed 4625 on every server and two hundred 4776 events in one place. It also exposes NTLM use that should not exist, which matters for relay attacks and for plans to retire the protocol.
Its weakness is the source. Workstation holds the name that the client claimed, with no address, and attack tools often leave it empty or make it up. Pair it with NTLM operational logging (event 8004 on domain controllers) to learn which server the attempt went through.
Key fields to inspect
| Field | Meaning | Suspicious when |
|---|---|---|
TargetUserName | Account that was checked. | Many names in a short period, or a service account that should use Kerberos. |
Workstation | Client name as claimed by the client. | Empty, random, or a name outside your standard such as KALI or WORKSTATION. |
Status | Result code. 0x0 is success. | 0xC0000064 and 0xC000006A across many accounts. |
PackageName | Always MICROSOFT_AUTHENTICATION_PACKAGE_V1_0. | No other value is expected. |
Status codes in 4776
| Code | Meaning | Reading |
|---|---|---|
0x0 | Success | The password or hash was correct |
0xC0000064 | Account does not exist | Name guessing |
0xC000006A | Wrong password | Guessing against a real account |
0xC000006F | Outside permitted hours | Unusual time for this account |
0xC0000070 | Not permitted from this workstation | Restriction is working |
0xC0000071 | Password expired | Stale service or user |
0xC0000072 | Account disabled | Use of old credentials |
0xC0000234 | Account locked | Lockout already triggered |
0xC0000371 | No secret material in the local store | Password check not possible here |
Detection queries
Find client names that fail NTLM validation for many different accounts. Adjust names and thresholds to your environment. About these queries.
Splunk SPL
index=windows source="XmlWinEventLog:Security" EventCode=4776
Status!="0x0"
| bin _time span=30m
| stats dc(TargetUserName) AS accounts count values(Status) AS codes BY _time Workstation
| where accounts>=8 Microsoft Sentinel KQL
SecurityEvent
| where EventID == 4776
| where Status !~ "0x0"
| summarize Accounts = dcount(TargetUserName), Attempts = count(), Codes = make_set(Status) by Workstation, bin(TimeGenerated, 30m)
| where Accounts >= 8 PowerShell
Get-WinEvent -FilterHashtable @{ LogName = 'Security'; Id = 4776; StartTime = (Get-Date).AddDays(-1) } |
ForEach-Object { $d = @{ Time = $_.TimeCreated }; ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }; [pscustomobject]$d } |
Where-Object { $_.Status -ne '0x0' } |
Select-Object Time, TargetUserName, Workstation, Status | Format-Table -AutoSize Attack scenarios
Domain-wide password spray over NTLM
Tools that spray SMB or LDAP cause one validation per attempt. Failures with 0xC000006A for dozens of accounts from one client name inside half an hour are the signature, followed by a 0x0 for the account that had the weak password.
Pass-the-hash
A stolen hash validates exactly like a password, so the result is 0x0. The anomaly is context: a privileged account validated by NTLM from a workstation name it has never used.
NTLM relay
The attacker forwards a victim's authentication to another server. The domain controller sees a valid attempt whose Workstation is the victim, while the 4624 on the target shows the address of the attacker. The mismatch reveals the relay.
Investigation checklist
- Group failures by Workstation and count distinct accounts.
- Find the member server involved, using NTLM operational event 8004 or 4624 and 4625 at the same second.
- Compare Workstation with the source address in that 4624. A mismatch suggests relay.
- Check whether any sprayed account later shows 0x0.
Common benign causes
- Applications and appliances that support only NTLM.
- Connections made by IP address, which prevent Kerberos.
- Old saved passwords on phones, printers and scanners.
Event ID 4776 FAQ
Why is Workstation empty in event 4776?
The client did not send a name. Non-Windows systems and attack tools often leave it blank. Use NTLM operational logging or the matching 4624 and 4625 events to find the server and address.
Is 4776 logged for Kerberos?
No. It covers NTLM only. Kerberos logons produce 4768, 4769 and 4771 on the domain controller.
Where is 4776 logged for local accounts?
On the computer that owns the local account, because it checks the password against its own SAM database. Domain accounts are recorded on the domain controller that validated them.