A conforming SMB 3.1.1 server must return STATUS_ACCESS_DENIED for an encrypted share when RejectUnencryptedAccess is TRUE and Connection.ClientCapabilities lacks SMB2_GLOBAL_CAP_ENCRYPTION; a nonzero Connection.CipherId does not authorize skipping that check.
Current TREE_CONNECT requirements
The current Section [IP Address] has three relevant predicates for the client-side check:
-
Connection.Dialectbelongs to the SMB 3.x family. -
Share.EncryptDataisTRUE. -
RejectUnencryptedAccessisTRUE. -
Connection.ClientCapabilitiesdoes not containSMB2_GLOBAL_CAP_ENCRYPTION.
When all are true, the server MUST fail TREE_CONNECT with STATUS_ACCESS_DENIED.^1^
Therefore, the decision is:
if dialect_is_smb3
and share_encrypt_data
and reject_unencrypted_access
and not client_global_cap_encryption:
return STATUS_ACCESS_DENIED
The current clause does condition the check on RejectUnencryptedAccess. If that setting is FALSE, this particular mandatory rejection does not apply. Windows SMB servers set RejectUnencryptedAccess to TRUE by default; the documented registry setting can change it to FALSE.^2^
Why Connection.CipherId is not a substitute
For SMB 3.1.1, the two values represent different negotiated state:
-
Connection.ClientCapabilitiesis copied from theCapabilitiesfield of the client'sSMB2 NEGOTIATErequest. -
Connection.CipherIdis selected while processing the client'sSMB2_ENCRYPTION_CAPABILITIEScontext; it is set to zero if there is no common cipher. - If
Connection.CipherIdis nonzero, the server sets the encryption bit inConnection.ServerCapabilities. It does not add that bit toConnection.ClientCapabilities.^3^
Consequently, a common cipher proves algorithm overlap, but the current normative TREE_CONNECT test still independently examines the capability bit received from the client. Section [IP Address].4 also conditions server-side message encryption on Connection.ClientCapabilities containing that bit, reinforcing that the bit remains operational state rather than being replaced by CipherId.^4^
Effect of the April 2024 product note
The client rule for SMB 3.1.1 remains a SHOULD: an encryption-capable client supporting an applicable cipher should set SMB2_GLOBAL_CAP_ENCRYPTION; it must also send SMB2_ENCRYPTION_CAPABILITIES when IsEncryptionSupported is true.^5^
Product Behavior Note <133> says the listed Windows versions without the April 2024 updates always set the bit. Because Appendix A states that a KB-qualified entry denotes behavior changed by that update, the note establishes that the unconditional pre-update behavior changed; it does not define a server exception or say that CipherId replaces the bit.^2^
The published revision history includes multiple revisions after April 2024, while the current Sections [IP Address] and [IP Address] retain the client-capability checks.^6^ Section [IP Address] likewise still requires rejection during SESSION_SETUP when global EncryptData, RejectUnencryptedAccess, and the missing client bit coincide.^7^
Thus, there is no documented SMB 3.1.1 dialect-specific exception in the current clauses. An implementation that accepts the connection solely because Connection.CipherId != 0 would be applying an extension not specified by [MS-SMB2].
If an updated Windows client actually sends an encryption context with a common cipher but omits the global capability bit, preserve a packet trace of the complete NEGOTIATE exchange and report it through the Windows Open Specifications support channel as a potential product/specification interoperability issue. The available public specification does not document the circumstances under which updated Windows intentionally omits the bit.
References
- [IP Address] Receiving an SMB2 TREE_CONNECT Request
- 6 Appendix A: Product Behavior
- [IP Address] Receiving an SMB2 NEGOTIATE Request
- [IP Address].4 Encrypting the Message
- [IP Address].2.2 SMB2-Only Negotiate
- [MS-SMB2]: Server Message Block (SMB) Protocol Versions 2 and 3
- [IP Address] Receiving an SMB2 SESSION_SETUP Request