SMB Encryption
Cheat sheet · https://pcornel.dk/topic.php?topic=4156
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— serverSet-SmbShare -Name <share> -EncryptData $true— per shareGet-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 boundary | What to verify | Proof limit |
|---|---|---|
| Endpoint / namespace | Correct client, server, export/share, path and negotiated protocol version | Reachability or namespace visibility does not prove authorization or backend health |
| Identity / security | Effective identity, protocol security state and export/share/filesystem authorization | Authentication or one permission layer does not prove complete file access |
| Failure boundary | Encrypted 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 |
| Acceptance | Healthy 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