CEH Cryptography and Malware Analysis Practice Question
A security engineer needs to configure a web server to support Perfect Forward Secrecy (PFS) for HTTPS connections. Which of the following key exchange methods should be prioritized?
⚠ Common exam trap
EC-Council often tests the misconception that any Diffie-Hellman variant automatically provides PFS, but candidates must remember that only ephemeral modes (DHE or ECDHE) guarantee forward secrecy, while static DH does not.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Elliptic Curve Diffie-Hellman Ephemeral (ECDHE)
ECDHE is prioritized for Perfect Forward Secrecy because it generates a unique, ephemeral session key for each TLS handshake using elliptic curve cryptography, ensuring that if the server's long-term private key is compromised, past session keys remain secure. Unlike static Diffie-Hellman, ECDHE does not reuse key material, and it offers stronger security per bit compared to traditional DH, making it the recommended choice for PFS in modern HTTPS configurations.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Diffie-Hellman (DH) key exchange
Why it's wrong here
Standard Diffie-Hellman alone negotiates a shared secret without any server authentication, so it cannot establish a trusted HTTPS session because it lacks a mechanism to bind the key exchange to the server’s certificate. It is tempting because DH does provide ephemeral keying for PFS when combined with signatures (as in DHE), but the plain DH mode is actually intended for anonymous key agreement where authentication is handled separately or not required.
- ✓
Elliptic Curve Diffie-Hellman Ephemeral (ECDHE)
Why this is correct
Elliptic Curve Diffie-Hellman Ephemeral (ECDHE) is the correct choice because it provides Perfect Forward Secrecy (PFS) by generating unique, ephemeral session keys for each TLS handshake. This means that even if the server's long-term private key is compromised in the future, an attacker cannot decrypt previously recorded sessions. The ephemeral keys are derived using elliptic curve cryptography, offering strong security with smaller key sizes and faster computations compared to traditional Diffie-Hellman, making it ideal for web servers.
- ✗
Pre-Shared Key (PSK)
Why it's wrong here
Pre-Shared Key (PSK) key exchange is generally unsuitable for public web servers due to significant scalability and key management challenges, as each client would need to share a unique secret with the server beforehand. Furthermore, PSK does not inherently provide Perfect Forward Secrecy (PFS); if the pre-shared key is ever compromised, all past and future communications encrypted with that key become vulnerable to decryption. Its primary applications are typically in closed environments like VPNs or IoT devices where key distribution can be tightly controlled.
- ✗
RSA key exchange
Why it's wrong here
RSA key exchange, while historically common, does not offer Perfect Forward Secrecy (PFS), making it an insecure choice for modern web servers. In this method, the client encrypts a pre-master secret using the server's static public RSA key, which the server then decrypts with its corresponding private key. Consequently, if the server's long-term private key is ever compromised, an attacker can retroactively decrypt all past recorded TLS sessions that used this key exchange mechanism, completely undermining confidentiality.
Quick reference
Asymmetric Encryption Algorithm Comparison
| Algorithm | Key Exchange | Signatures | Equivalent Security Key | Notes |
|---|---|---|---|---|
| RSA-3072 | Yes | Yes | 128-bit | Widely deployed; slow for bulk data |
| ECDSA P-256 | No | Yes | 128-bit | Fast signatures; standard TLS certs |
| ECDH / ECDHE | Yes | No | 128-bit | Perfect forward secrecy in TLS 1.3 |
| DH / DHE | Yes | No | 128-bit (3072-bit key) | Replaced by ECDHE in modern TLS |
| Ed25519 | No | Yes | ~128-bit | SSH keys, modern PKI |
Go deeper
Related to this question
About these practice questions
One of 870 original CEH practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CEH practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CEH exam.