Skip to content
WETNav
SMB clientAuthentication

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.

ServerNameServer the client tried to authenticate to, as a host name or IP address
UserNameAccount the client presented to the server
PrincipalNameService principal name used for the attempt, such as cifs/fs01.contoso.com
StatusNTSTATUS of the failure, for example 0xC000006D (logon failure)
SecurityStatusStatus returned by the security package (SSPI) for the attempt
LogonIdLogon 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
ReasonNumeric reason recorded with the failure; it is the first line of the rendered message
Have one of these events? Paste it into the decoder

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

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.

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. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.