Pcornel
Storage · SMB

SMB Encryption

Cheat sheet · https://pcornel.dk/topic.php?topic=4156

Back to the Topic

Answer

Encryption is negotiated or required at server/share/session policy boundaries and uses keys derived from the authenticated SMB session. It protects traffic after session establishment but does not replace correct authentication or authorization.

Remember

  • SMB Encryption ≠ SMB Signing requirement.
  • Encryption ≠ authorization.
  • Encrypted transport ≠ secure endpoint or malware-free data.
  • SMB3 negotiated ≠ encryption active.

First checks

  • Get-SmbServerConfiguration | fl EncryptData,RejectUnencryptedAccess — server
  • Set-SmbShare -Name <share> -EncryptData $true — per share
  • Get-SmbConnection | ft ServerName,Encrypted — encrypted sessions

Verify in this order

SMB3 session → encryption → transport

Where it usually breaks

First mismatch in client identity/DNS → network transport → protocol session → authentication/authorization → export/share → backend filesystem → file operation; preserve identity/pre-state before mutation.

SMB → SMB Encryption file-service map

File-service boundaryWhat to verifyProof limit
Endpoint / namespaceCorrect client, server, export/share, path and negotiated protocol versionReachability or namespace visibility does not prove authorization or backend health
Identity / securityEffective identity, protocol security state and export/share/filesystem authorizationAuthentication or one permission layer does not prove complete file access
Failure boundaryEncrypted SMB traffic proves confidentiality/integrity protection in transit for the negotiated session; it does not prove endpoint trust, permission correctness, backup or data-at-rest encryption.Correlate client, network, server and filesystem evidence for the same operation/time window
AcceptanceHealthy evidence: required encryption is negotiated for the intended session/share and representative traffic/file operations succeed without policy fallback.Close only after the original operation and server-side/read-back verification succeeds

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4156

Confirmation

Confirm action

Continue?