Skip to content
AdminKit

SMB signing

What is SMB signing?

SMB signing is a security mechanism in the SMB file-sharing protocol that adds a signature, generated with the session key, to every message, so a tampered or relayed message fails verification. AdminKit explains how SMB signing blocks NTLM relay attacks, which Windows versions require it by default, and how to check its status.

By AdminKit team, Netbase JSC · Updated

SMB signing, which Microsoft also calls security signatures, protects the integrity of each message on an SMB connection. Microsoft’s overview of SMB signing explains that every message carries a signature generated with the session key, that signing first appeared in Windows 2000, Windows NT 4.0 and Windows 98, and that the algorithm moved from MD5 in SMB1 to HMAC SHA-256 in SMB 2.02 and AES-CMAC in SMB 3.0.

How does SMB signing work?

Authentication leaves client and server holding the same session key. The sender puts a keyed hash of the whole message into the signature field of the SMB header, and the receiver recomputes it. If anyone changes the message in transit, the hash no longer matches. Because the signature also binds the sender and receiver identities, a message relayed from a different session fails verification.

For SMB 2 and later, signing is either required or not: Microsoft notes that the older “enabled” setting is ignored, and a connection is signed whenever the client or the server requires it. On Windows 11 version 24H2 or Windows Server 2025, Microsoft’s page on controlling SMB signing behavior shows how to check the current state:

Get-SmbClientConfiguration | FL RequireSecuritySignature
Get-SmbServerConfiguration | FL RequireSecuritySignature

On Linux file servers, the server signing parameter in Samba’s smb.conf manual takes default, auto, mandatory or disabled; by default Samba requires signing only when it runs as an Active Directory domain controller.

Why does SMB signing stop relay attacks?

In an NTLM relay, an attacker who has lured a victim into authenticating to them, for example by answering a poisoned LLMNR query, forwards that authentication to a real server and opens a session as the victim. The attacker never learns the session key, so once the server requires signing, every message they send is rejected. MITRE ATT&CK technique T1557.001 lists enabling SMB signing as a mitigation that can stop NTLMv2 relay attacks. Microsoft adds that Kerberos gives a stronger session key than NTLMv2, and that connecting to shares by IP address or through a DNS CNAME makes Windows fall back to NTLM.

Requiring signing has one common side effect: Microsoft notes it also blocks guest access, so some third-party NAS devices stop working until they support signing. Microsoft does not recommend turning signing off as a workaround.

Signing does not make an internet-facing file server safe. AdminKit’s port check probes a fixed list of nine TCP ports on your own public IP and does not test port 445; AdminKit’s guide on whether port 445 (SMB) is exposed explains why SMB belongs behind the perimeter whatever its settings.

SMB signing is part of AdminKit’s machine protocols cluster; the full AdminKit glossary lists other related terms.

Frequently asked questions

What attack does SMB signing stop?

Relay. An attacker who tricks a client into authenticating to them can forward that NTLM authentication to a real server, but without the session key they cannot produce valid signatures. MITRE ATT&CK lists enabling SMB signing as a mitigation that can stop NTLMv2 relay attacks.

Is SMB signing on by default in Windows?

It depends on the version. Microsoft states that Windows 11, version 24H2 Enterprise, Pro and Education require both outbound and inbound signing, Windows Server 2025 requires outbound signing only, and Windows 11 24H2 Home requires neither.

How do I check whether SMB signing is required?

In PowerShell, Get-SmbClientConfiguration and Get-SmbServerConfiguration show the RequireSecuritySignature property; True means signing is required. On Samba, the server signing parameter in smb.conf controls it.

Is SMB signing the same as SMB encryption?

No. Signing proves each message is unaltered and comes from the authenticated peer, but the contents stay readable on the wire. SMB 3.0 and later can encrypt traffic as a separate setting.