On a Windows file server, how does SMB signing differ from SMB 3 encryption, and which settings turn each one on?
answer
- tamper seal versus locked box
- one proves, one also hides
- signing from SMB 2, encryption from SMB 3
- RequireSecuritySignature against EncryptData
- encryption is not on by default
basics
~20 sSMB 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# Run on files01.example.internal (elevated)
Get-SmbServerConfiguration | Format-List RequireSecuritySignature, EncryptData
# Require encryption for the Finance share only
Set-SmbShare -Name Finance -EncryptData $truego deeper
Recall that signing proves messages were not altered while encryption also hides them, and that encryption needs SMB 3.
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.
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.
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.