CS FundamentalsModerateGATE CS · security placement

Alice and Bob run plain Diffie–Hellman with no authentication of the exchanged values. Mallory sits on the path and can modify messages. What can she achieve?

  1. A. Nothing useful, because the shared key itself is never sent over the wire
  2. B. Only block or delay the exchange, since she cannot compute g^ab herself
  3. C. Share one key with Alice and another with Bob, and relay traffic she can read
  4. D. Recover Alice's secret exponent from g^a quickly, then derive the session key

Correct answer: C. Share one key with Alice and another with Bob, and relay traffic she can read

Mallory replaces g^a and g^b with her own g^m, so she shares g^am with Alice and g^bm with Bob and relays everything. Discrete log stays hard; the weakness is the missing authentication, which TLS fixes by signing the DH share.

More Computer Networks questions

Exams that ask this topic