Diffie-Hellman Man-in-the-Middle Attack Flow architecture diagram

About This Architecture

Diffie-Hellman man-in-the-middle attack flow demonstrates how an attacker intercepts and manipulates the key exchange between Alice and Bob by computing separate shared secrets K1 and K2. Alice computes Y_A = alpha^X_A mod p and sends it to Bob, but Mallory intercepts this transmission and instead sends her own computed values Y_M1 and Y_M2 to each party. Both Alice and Bob unknowingly establish encrypted channels with Mallory rather than each other, allowing the attacker to decrypt, read, and re-encrypt all communications. This attack illustrates why Diffie-Hellman alone lacks authentication and why modern protocols use digital signatures or certificates to verify peer identity. Fork this diagram on Diagrams.so to customize it for your security training, threat modeling, or protocol documentation. The attack succeeds because neither party can verify that the public keys they receive actually belong to their intended peer.

People also ask

How does a man-in-the-middle attack compromise Diffie-Hellman key exchange?

In a Diffie-Hellman MITM attack, Mallory intercepts Alice's public key Y_A and Bob's public key Y_B, then sends her own computed values Y_M1 to Alice and Y_M2 to Bob. This allows Mallory to establish separate shared secrets K1 with Alice and K2 with Bob, enabling her to decrypt, read, and re-encrypt all communications between them without detection.

Diffie-Hellman Man-in-the-Middle Attack Flow

Autoadvancedcryptographysecuritykey-exchangeman-in-the-middlediffie-hellmanprotocol-vulnerability
Domain: SecurityAudience: security architects and cryptography professionals designing authentication and key exchange protocols
1 views0 favoritesPublic

Created by

July 13, 2026

Updated

July 28, 2026 at 12:08 AM

Type

flowchart

Need a custom architecture diagram?

Describe your architecture in plain English and get a production-ready Draw.io diagram in seconds. Works for AWS, Azure, GCP, Kubernetes, and more.

Generate with AI

AI-generated. Verify before production use. Learn more

Report this diagram