GSEC Cryptography Application Practice Question
When selecting a cryptographic hash function for verifying file integrity, which property is most important to ensure that an attacker cannot create two different files that produce the same hash value?
⚠ Common exam trap
Candidates frequently confuse 'collision resistance' with 'pre-image resistance.' They are distinct properties, and collision resistance is specifically required to prevent two different files from sharing the same hash.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Collision resistance.
Collision resistance is the property of a hash function that makes it computationally infeasible to find two distinct inputs that result in the same output hash. This is critical for integrity verification; if an attacker could generate a malicious file with the same hash as a legitimate file, they could bypass security controls, leading to the execution of arbitrary, potentially malicious code while the system assumes the file is authentic and untampered.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Pre-image resistance.
Why it's wrong here
Pre-image resistance ensures that it is hard to find the input given an output hash. While important for password storage, it does not prevent collisions where two different files might produce the same hash, which is the specific threat when attackers attempt to substitute malicious files for legitimate ones.
- ✓
Collision resistance.
Why this is correct
Collision resistance specifically addresses the difficulty of finding any two distinct inputs that map to the same hash value. This prevents attackers from creating a 'doppelganger' file that passes integrity checks designed for a known-good file, which is a key requirement for secure file verification and distribution systems.
- ✗
Reversibility.
Why it's wrong here
Cryptographic hash functions are designed to be one-way, non-reversible functions. Reversibility is not a property of hash functions, and in fact, any hash function that could be reversed would be fundamentally broken and useless for cryptographic integrity checks or secure digital signatures, as it would expose the underlying data.
- ✗
High computational speed.
Why it's wrong here
While speed is convenient, it is not a security property. In some cases, high speed is actually a disadvantage, such as in password hashing, where slow functions are preferred to hinder brute-force attacks. Collision resistance is far more vital for integrity than the raw performance of the algorithm.
About these practice questions
One of 351 original GSEC practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official GIAC exam blueprint
This GSEC practice question is part of Courseiva's free GIAC certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the GSEC exam.