Cryptography

An analyst crafts two different files that produce the same MD5 digest, so a signature on one file also validates the other. Which attack is this?

Show the answer

Correct answerD. Collision attack

AWhy not this: A preimage attack finds an input for one specific existing hash, not two inputs that match each other.

BWhy not this: Replay resends captured valid messages; it does not create matching digests.

CWhy not this: Known-plaintext uses plaintext-ciphertext pairs to recover a key, not hash matches.

DWhy this is right: Two different inputs with the same digest is the definition of a hash collision.

A collision attack finds two distinct inputs with the same hash, which undermines signatures over that hash. A preimage attack is tempting but seeks an input for one given hash value, not a matching pair.