A vendor verifies firmware downloaded from third-party mirrors by comparing an MD5 digest. Researchers show that an attacker who supplies an image can produce a benign and a malicious version that share one MD5 digest. What is the best fix?
Show the answer
Correct answerD. Replace MD5 with SHA-256 for the digest
AWhy not this: Encrypting the image hides its content in transit but does not make the digest check trustworthy.
BWhy not this: A salt does not make MD5 collision resistant; the attacker builds the colliding pair on the salted input.
CWhy not this: Hiding the digest does not help; the malicious twin matches whatever digest the benign image has.
DWhy this is right: SHA-256 is collision resistant, so an attacker cannot practically build two images that share a digest.
MD5 is not collision resistant, so an attacker can build two different images with the same digest and swap the malicious one in after the benign one is accepted. SHA-256 is collision resistant. Salting does not help, because the attacker simply builds the colliding pair for the salted input.