Forward Secrecy
Cheat sheet · https://pcornel.dk/topic.php?topic=4743
Answer
Forward Secrecy limits retrospective decryption by deriving session keys from ephemeral key exchange so later compromise of long-term authentication keys does not reveal previously recorded session traffic.
Remember
- Forward secrecy ≠ protection after endpoint/session-key compromise.
- TLS 1.2 ≠ PFS unless an ephemeral suite is negotiated.
- TLS 1.3 0-RTT data ≠ forward-secret early data.
- Certificate rotation ≠ forward secrecy for sessions established with static key transport.
First checks
openssl s_client -connect <host>:443 </dev/null | grep 'Server Temp Key'— ECDHE in usenmap --script ssl-enum-ciphers -p 443 <host>— no RSA key exchangetestssl.sh -f <host>— forward secrecy check
Verify in this order
ephemeral ECDHE → session keys → discarded
Where it usually breaks
First mismatch in key/secret generation → storage/rotation → trust/certificate validation → protocol negotiation → cryptographic operation → peer/application verification; preserve identity/policy/pre-state before mutation.
TLS → Forward Secrecy proof map
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope and intent | Asset/data/peer, security property, identity/name, protocol and time | Does not prove algorithm, key, trust or endpoint correctness |
| Effective cryptographic state | Exact version, algorithm/mode/parameters, key/certificate/path and negotiated result | Configuration or object presence does not prove correct use |
| Verification outcome | Positive, negative, tamper, expiry/revoke and failure tests correlated with evidence | One success does not prove every peer, client, path or lifecycle stage |
| Closure | Original operation succeeds; old/unsafe state is retired and regression checks pass | Administrative workflow completion alone is not closure |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4743