Question 50
Attackers have stolen a database of salted password verifiers and are performing millions of offline guesses on GPUs. A development team wants to increase the computation cost of every guessed password. Which change MOST directly addresses this weakness?
Explanation
Correct Answer
Argon2id is a memory-hard password hashing design that can be tuned to consume meaningful memory and computation for every password guess. If attackers possess the salted verifier database, increasing the per-guess cost reduces the rate at which GPUs can test candidate passwords offline. The application should calibrate its memory and time settings to safe server performance, use per-account salts and record parameters for migration. No password hash alone makes weak passwords immune to guessing.
Incorrect Answers
One unsalted SHA-256 operation is deliberately fast and deterministic, which would let attackers use GPUs to evaluate enormous candidate lists quickly. Removing the existing salts also reintroduces equal-hash leakage for equal passwords. SHA-256 is a useful general-purpose digest, but password storage requires a suitable intentionally expensive password-hashing or KDF scheme, not a single inexpensive digest computation.
Failed-login lockouts limit online attempts made through an application's authentication endpoint and can help against remote guessing. The attacker described here does not submit login requests; it already has salted verifier hashes and computes candidate matches locally. No server-side failed-login counter is incremented during those offline guesses, so increasing lockout severity will not materially raise the cost of each guessed password.
TLS encrypts a network connection and protects data in transit between an application and database service when correctly configured. That reduces interception risks but does not affect the cost of cracking verification hashes already stolen from storage. The question states the database has been exfiltrated, so changing transport protection while keeping a fast password hash leaves the attacker’s offline GPU advantage intact.