Perfect Forward Secrecy
Also called PFS, Forward Secrecy.
Past sessions stay safe even if a long-term key is later stolen.
What it is
A property of key-exchange schemes where each session uses ephemeral keys, so compromising a server's long-term private key does not let an attacker decrypt previously recorded sessions.
Why it matters
PFS limits the damage of key theft and defeats 'harvest now, decrypt later' attacks against captured traffic. Its presence or absence directly determines whether old recorded sessions can be retroactively decrypted in an investigation.
In practice
An attacker who steals a server's private key still being unable to decrypt last month's captured TLS sessions because each used ephemeral Diffie-Hellman keys.
What to look for
- TLS cipher suites with ECDHE or DHE.
- RSA key exchange suites still enabled.
- Session ticket keys that never rotate.
Common mistake
Forgetting session tickets. Long-lived ticket keys can undo the forward secrecy you configured.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
- PCAP Triage
A first pass over a capture: conversations, protocol mix, DNS, HTTP hosts and TLS names.
- Network Case
A host suspected of beaconing: work its capture from scope to beacon, then the port recall and subnet math behind it.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
OpenSSL Open source
The command line toolkit for inspecting certificates, keys and TLS connections.
-
HashiCorp Vault Source available
Manages secrets and encryption keys, and can encrypt data as a service.
-
AWS Key Management Service Cloud service
AWS's managed service for creating and controlling encryption keys.
Read next
- Diffie-Hellman Key Exchange: A method for two parties to derive a shared secret over an open channel.
- TLS Handshake: The negotiation that sets up an encrypted TLS connection.
- Asymmetric Encryption: A key pair where the public key encrypts and the private key decrypts.