Threats, Vulnerabilities, and Attacks

An analyst's SHA-256 hash of a system binary differs from the vendor's published value, although the file's name, size and modified timestamp all match. What is the best conclusion?

Show the answer

Correct answerC. The file's contents were altered, so it should be treated as compromised.

AWhy not this: SHA-256 is a strong algorithm, and a genuine unmodified file always produces the published value.

BWhy not this: Renaming does not alter file contents, so the hash stays the same; the name here also matches.

CWhy this is right: A different hash means different bytes, so the file was modified, and matching metadata can be forged.

DWhy not this: Size and timestamp are metadata that attackers can preserve or fake; only the hash reflects the contents.

A hash is computed from file contents, so any change in content produces a different value, even if metadata such as size and timestamp was kept or forged. Matching metadata proves nothing about content, which is why the file is suspect rather than a false positive.