Diffie-Hellman & Man-in-the-Middle
- 16Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is a major vulnerability of Diffie-Hellman when used on its own?
Diffie-Hellman is vulnerable to man-in-the-middle attacks when used on its own.
Or swipe the card
16 cards
What is a major vulnerability of Diffie-Hellman when used on its own?
Diffie-Hellman is vulnerable to man-in-the-middle attacks when used on its own.
Who is involved in a basic Diffie-Hellman key exchange?
Alice and Bob are involved, along with shared public parameters: a generator (g) and a large prime number (n).
What private values do Alice and Bob generate in a Diffie-Hellman exchange?
Alice generates a private value 'a', and Bob generates a private value 'b'.
What public values do Alice and Bob exchange in Diffie-Hellman?
Alice sends ga (mod n) and Bob sends gb (mod n).
How do Alice and Bob calculate the shared key in Diffie-Hellman?
Both calculate gab (mod n).
What is the role of the man-in-the-middle (Shawn) in a Diffie-Hellman attack?
Shawn intercepts messages between Alice and Bob, establishes separate shared secrets with each, and relays messages.
Why is Diffie-Hellman 'dead in the water' on its own against MITM attacks?
It provides no authentication mechanism to verify the identity of the parties exchanging keys, allowing an attacker to impersonate either side.
How does RSA or public key encryption help prevent man-in-the-middle attacks in Diffie-Hellman?
RSA provides authentication by allowing one party (e.g., Bob, the server) to digitally sign their Diffie-Hellman parameter, which Alice can then verify using Bob's public key.
What does Bob send to Alice to prevent MITM attacks when combining Diffie-Hellman with RSA?
Bob sends gb along with a digital signature of gb signed with his private key.
What is 'signature verification' in the context of combined Diffie-Hellman and RSA?
Alice takes Bob's Diffie-Hellman parameter (gb) and its signature, applies Bob's public key to the signature, and checks if it matches her own computed hash of gb.
Why is combining Diffie-Hellman with RSA crucial for secure internet key exchanges?
It allows for both the establishment of a shared secret (Diffie-Hellman) and the authentication of the parties (RSA), preventing man-in-the-middle attacks.
Give examples of internet protocols that use a combination of Diffie-Hellman and RSA.
IKE protocol (for VPNs) and the TLS handshake (for HTTPS) are examples.
What is 'perfect forward secrecy' and why is it important in key exchange?
Perfect forward secrecy ensures that if a long-term private key (like an RSA private key) is compromised in the future, past communications encrypted using ephemeral session keys cannot be decrypted.
Why is Diffie-Hellman preferred over using RSA alone for session key encryption?
Diffie-Hellman, particularly ephemeral Diffie-Hellman, provides perfect forward secrecy, meaning session keys are not compromised even if the long-term RSA key is later broken.
What does 'ephemeral' mean in the context of Diffie-Hellman keys?
Ephemeral means temporary or short-lived, implying that new Diffie-Hellman keys are generated for each session.
Why is RSA generally not used for long-term encryption of entire messages?
RSA is computationally much slower than symmetric-key algorithms like AES, making it inefficient for encrypting large amounts of data.

Ask anything
We've read this whole study set, so questions about it get the best answers.