Event ID 31001: SMB client failed to authenticate to a server
Written on the client when SMB session setup with a server fails authentication. Records the server, the account, the SPN, the error and the local logon session that made the attempt.
- Channel
- Microsoft-Windows-SMBClient/Security
- Logged by default
- Yes
- Written on
- Source host
- Volume
- Low
- Provider
- Microsoft-Windows-SMBClient
- Needs a SACL
- No
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| ServerName | Server the client tried to authenticate to, as a host name or IP address |
| UserName | Account the client presented to the server |
| PrincipalName | Service principal name used for the attempt, such as cifs/fs01.contoso.com |
| Status | NTSTATUS of the failure, for example 0xC000006D (logon failure) |
| SecurityStatus | Status returned by the security package (SSPI) for the attempt |
| LogonId | Logon session on this client whose credentials were used; match it to the TargetLogonId of a 4624 on the same host to find the session behind the attempt |
| Reason | Numeric reason recorded with the failure; it is the first line of the rendered message |
Analyst notes
- 0131001 is a source-side record: this machine tried and failed to log on to another server over SMB. Failures against many servers in a short window, or several accounts failing from this host, fit password spraying or credential testing from a compromised machine.
- 02The client usually sees only a generic failure such as 0xC000006D. The precise reason (bad password, unknown user, locked out) is in the 4625 on the server and the 4776 or 4771 on the domain controller.
- 03LogonId is the pivot to the local session: join it to a 4624 TargetLogonId on this host to learn which logon (interactive, RDP, service) was making the attempts, then look at the processes in that session.
- 04Mistyped passwords, stale mapped drives and saved credentials that no longer work all cause 31001; baseline before alerting.
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 'Microsoft-Windows-SMBClient/Security' -FilterXPath "*[System[(EventID=31001)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
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.
Also relevant, depending on field values
Related events
Common questions
- What does Windows event ID 31001 mean?
- Written on the client when SMB session setup with a server fails authentication. Records the server, the account, the SPN, the error and the local logon session that made the attempt. It is written to the SMBClient Security log (Microsoft-Windows-SMBClient/Security).
- Is event 31001 logged by default?
- Yes, a default Windows installation records it.
- Where is event 31001 recorded?
- In the Microsoft-Windows-SMBClient/Security channel on the source host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderWritten on the client when SMB session setup with a server fails authentication. Records the server, the account, the SPN, the error and the local logon session that made the attempt. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.