Perfect forward secrecy (PFS)
A key-exchange property in which each session key comes from ephemeral values that are then discarded, so a later compromise of a long-term private key does not expose past sessions.
Forward secrecy (often called perfect forward secrecy) means that stealing a server’s long-term key later does not let an attacker decrypt sessions recorded earlier. It is achieved with ephemeral keys: each session runs a fresh Diffie-Hellman or elliptic curve Diffie-Hellman exchange (DHE or ECDHE) using key pairs generated for that session and then erased. The long-term private key only signs the exchange to authenticate the server; it never carries the session key. Static RSA key transport in TLS 1.2 lacks this property: anyone who later obtains the server’s private key can decrypt recorded sessions.
TLS 1.3 (RFC 8446) removed static RSA and static Diffie-Hellman, so its full handshakes use ephemeral exchanges; resumption in PSK-only mode is the exception, with no fresh ephemeral exchange. Forward secrecy protects the past, not the future: an attacker holding the private key now can still impersonate the server until the certificate is revoked or expires. Classical ephemeral exchanges are also vulnerable to a future quantum computer, which is one reason for post-quantum cryptography.
Exam relevance: a scenario in which a private key is stolen and the question is whether recorded traffic is exposed is likely to turn on forward secrecy. Candidates are expected to link it to ephemeral DHE or ECDHE, and to recognise that replacing a compromised key does not protect sessions already recorded without it.