skip to content

Signing Policy & Ciphers

SMB signing MACs each message with a session key (HMAC-SHA256, AES-CMAC, AES-GMAC) and SMB3 encryption adds AES-GCM or CCM. Interviewers ask what requiring signing buys and what it breaks.

on this pageshow

explore

questions

6

On a Windows file server, how does SMB signing differ from SMB 3 encryption, and which settings turn each one on?

level: juniorimportance: must knowfreq 62%

answer

  1. tamper seal versus locked box
  2. one proves, one also hides
  3. signing from SMB 2, encryption from SMB 3
  4. RequireSecuritySignature against EncryptData
  5. encryption is not on by default

basics

~20 s

SMB signing adds a signature to every message so tampering is detected, but the data stays readable on the wire. SMB 3 encryption hides the data and also protects its integrity, at a higher CPU cost.

solid answer

~40 s

**Signing** (`RequireSecuritySignature`, available from SMB 2) puts a 16-byte signature, computed with a key derived from the session key, into each message header. A modified message fails validation, but the payload still crosses the network in the clear. **Encryption** (SMB 3.0 and later) wraps each message in AES-GCM or AES-CCM, so it gives confidentiality and integrity. You require it per share with `Set-SmbShare -EncryptData $true`, for the whole server with `Set-SmbServerConfiguration -EncryptData $true`, per mapped drive with `-RequirePrivacy`, or for every outbound connection of a Windows 11, version 24H2 or Windows Server 2025 client with `Set-SmbClientConfiguration -RequireEncryption $true`. A session is signed when either side requires signing; encryption is not on by default.

code

powershell · 5 lines
powershell
# Run on files01.example.internal (elevated)
Get-SmbServerConfiguration | Format-List RequireSecuritySignature, EncryptData

# Require encryption for the Finance share only
Set-SmbShare -Name Finance -EncryptData $true

go deeper

for a junior

Recall that signing proves messages were not altered while encryption also hides them, and that encryption needs SMB 3.

for a middle

Name the settings on each side: RequireSecuritySignature on client and server, EncryptData per share or server, RequirePrivacy per drive, and state that a session is signed when either side requires it.

for a senior

Explain the cost trade-off: signing is cheap tamper protection, encryption adds confidentiality at a CPU and compatibility price, so scope encryption to the shares whose data justifies it.

for a principal

Frame it as a policy tier: a signing baseline everywhere, encryption by data classification, and a named owner and review date for each device that cannot comply.

## Two different guarantees SMB (Server Message Block) is the file-sharing protocol Windows and Samba speak. Two protocol features protect a session once the user has authenticated, and they answer different questions. | | Signing | Encryption | |---|---|---| | Needs dialect | SMB 2.0.2 and later | SMB 3.0 and later | | Guarantee | Integrity and authenticity: a changed message fails validation, and the signature binds the sender and recipient | Confidentiality as well as integrity: the payload is unreadable to anyone capturing traffic | | Mechanism | A 16-byte signature in the SMB2 header, flag `SMB2_FLAGS_SIGNED` | The message is wrapped in a transform header and sealed with AES-GCM or AES-CCM | | Key | Derived from the session key | Derived from the session key | | Cost | Low | Higher CPU, and clients and devices that cannot negotiate SMB 3 are shut out | Both depend on the session key, so both are only as strong as the authentication that produced it. ## Where each one is configured Signing is a machine-wide setting on each side: - **Server:** `Set-SmbServerConfiguration -RequireSecuritySignature $true`, or the policy "Microsoft network server: Digitally sign communications (always)". - **Client:** `Set-SmbClientConfiguration -RequireSecuritySignature $true`, or "Microsoft network client: Digitally sign communications (always)". - `EnableSecuritySignature` is ignored for SMB 2 and later, so it does nothing there. Encryption has more scopes: 1. **Per share:** `Set-SmbShare -Name Finance -EncryptData $true`, or `New-SmbShare ... -EncryptData $true`. 2. **Whole server:** `Set-SmbServerConfiguration -EncryptData $true`. 3. **Per mapped drive:** `New-SmbMapping -RequirePrivacy $true` or `NET USE ... /REQUIREPRIVACY`, and UNC hardening on the client. 4. **Every outbound connection of a client:** `Set-SmbClientConfiguration -RequireEncryption $true` (Windows 11, version 24H2 and Windows Server 2025). ## How they combine A session is signed when either the client or the server requires signing; it is unsigned only when both have the requirement at 0. Encryption is separate: it is required by whichever of the share, the server, the mapped drive or the client asks for it. On an encrypted share you do not add a separate signing step. Two Microsoft pages word this differently. The client-encryption page says encryption supersedes signing and turns the signing requirement off, while the security-enhancements page says AES-CMAC and AES-GMAC still validate integrity for encrypted shares regardless of the signing settings. Both agree on the result: encrypted traffic is tamper-protected. ## Defaults and cost - **Windows 11, version 24H2** Enterprise, Pro and Education require signing both outbound and inbound by default; **Windows Server 2025** requires outbound only. Before that the requirement applied by default only to connections to `SYSVOL` and `NETLOGON` and to clients of domain controllers. - **Encryption is not on by default.** Microsoft's own wording: unlike signing, it is not mandatory by default. - Encryption has a notable CPU cost compared with signing or nothing, and any device that cannot do SMB 3 encryption cannot reach an encrypted share. ## What to say in an interview Name the two properties first, then the dialect floor, then the settings. A good closing sentence is the policy tier: signing as a baseline everywhere, encryption for the shares whose data justifies the cost, and a recorded owner for any device that cannot comply. ## A worked example `files01.example.internal` hosts two shares, `Public` and `Finance`. The baseline sets `RequireSecuritySignature` to `$true` on the server, and `Finance` also gets `-EncryptData $true`. - A Windows 11, version 24H2 Pro workstation opens `Public`: the session is signed, because the client requires signing by default and the server does too. - The same workstation opens `Finance` over SMB 3.1.1: the traffic is encrypted, negotiated with AES-128-GCM by default. - A legacy SMB 2.1 device opens `Public` and signs with HMAC-SHA256, but is refused on `Finance`: with `RejectUnencryptedAccess` at its default of `$true` the server returns Access denied and logs event 1003. That one scenario shows both properties, both defaults and the compatibility price of encryption. ```powershell # Signing: both directions on one Windows file server Set-SmbServerConfiguration -RequireSecuritySignature $true # Encryption: only the Finance share Set-SmbShare -Name Finance -EncryptData $true ```

  • If a share is already encrypted, do you still have to require signing for it?
    Not as a separate step. On an encrypted share integrity comes with the encryption: one Learn page says AES-CMAC and AES-GMAC still validate integrity regardless of the signing settings, another says encryption turns the signing requirement off. Either way the traffic is tamper-protected. Signing still matters for every share and client that is not encrypted.
  • Which dialect is the lowest that can encrypt, and which cipher does it use?
    SMB 3.0 (0x0300), introduced with Windows 8 and Windows Server 2012, is the first with encryption, and it uses AES-128-CCM, as does SMB 3.0.2. SMB 3.1.1 negotiates the cipher: AES-128-GCM is the default, and AES-256-GCM and AES-256-CCM arrived with Windows Server 2022 and Windows 11.

Signing is a tamper-evident seal on a parcel: a broken seal shows the contents were touched, but anyone can still see through the wrapping. Encryption is a locked opaque box: the contents stay hidden and any tampering is detected as well.

  • Signing hides file contents from anyone capturing the traffic.
  • Setting EnableSecuritySignature turns signing on for SMB 2 and later.
  • Encryption is switched on by default on current Windows releases.
  • Signing and encryption are the same feature under two names.
  • Required signing is a per-share setting like EncryptData.
open as a page

Why does a Windows 11, version 24H2 client refuse a third-party NAS share that cannot sign, and how should you fix it?

level: middleimportance: must knowfreq 54%

basics

~20 s

Windows 11, version 24H2 requires signing on outbound connections, so a device that cannot sign fails with STATUS_INVALID_SIGNATURE (0xc000a000). Enable signing on the device or replace it; turning signing off on clients is the discouraged workaround.

open as a page

Where can Windows require SMB encryption, and what does an encrypted share do to a client that cannot do SMB 3?

level: middleimportance: should knowfreq 34%

basics

~20 s

Windows requires encryption per share, for the whole server, per mapped drive, or for all outbound connections of a 24H2 client. With RejectUnencryptedAccess at its default of true, a client without SMB 3 is refused and the server logs event 1003.

open as a page

Which algorithm signs an SMB session on each dialect, and why do Kerberos and connecting by name matter to its strength?

level: middleimportance: should knowfreq 26%

basics

~10 s

SMB 2.0.2 and 2.1 sign with HMAC-SHA256, 3.0 and 3.0.2 with AES-128-CMAC, and 3.1.1 with a negotiated algorithm, AES-128-GMAC on Windows 11 and Server 2022 and later. All keys derive from the session key.

open as a page

Before requiring SMB signing or encryption across a mixed estate, how do you find which clients and servers would break?

level: seniorimportance: should knowfreq 22%

basics

~10 s

Enable the SMB audit parameters first: AuditClientDoesNotSupportSigning and AuditClientDoesNotSupportEncryption on servers, AuditServerDoesNotSupportSigning and AuditServerDoesNotSupportEncryption on clients. They only log, so read the events, fix or replace what shows up, then require.

open as a page

What does the SMB client's BlockNTLM setting do on Windows 11, version 24H2, and what must be true of the servers it connects to?

level: seniorimportance: nice to knowfreq 10%

basics

~20 s

On Windows 11, version 24H2 and Windows Server 2025, Set-SmbClientConfiguration -BlockNTLM $true makes the SMB client refuse NTLM on its outbound connections. The server must allow Kerberos (or PKU2U), so connect by name, not IP address, or list an exception.

open as a page