A security analyst reviews authentication logs and notices multiple failed login attempts using various usernames from a single IP address over several hours. Eventually, a successful login occurs using a username that had many failed attempts. The organization requires multi-factor authentication (MFA). Which type of attack is most likely indicated by this pattern?
Trap 1: Credential stuffing
Correct. Credential stuffing leverages lists of known username/password pairs from previous breaches. The analyst observed many failed attempts from one source IP, then a successful login, which matches an attacker testing stolen credentials. Even with MFA, the attack may succeed if the attacker has obtained session tokens or uses other techniques.
Trap 2: Password spraying
Incorrect. Password spraying uses a few common passwords against many accounts. The pattern here shows many failed attempts for the same username before a success, which is more indicative of credential testing rather than spraying a single password.
Trap 3: Shoulder surfing
Shoulder surfing is a physical, in-person technique where an attacker observes a user entering credentials, which would never appear as remote authentication log entries from a single IP address. It also does not produce failed login attempts, because the attacker simply watches and later uses the captured credentials without guessing. Since the logs show network-based attempts and a successful login after failures, this is an online automated attack, not an observation-based method.
- A
Credential stuffing
Why wrong: Correct. Credential stuffing leverages lists of known username/password pairs from previous breaches. The analyst observed many failed attempts from one source IP, then a successful login, which matches an attacker testing stolen credentials. Even with MFA, the attack may succeed if the attacker has obtained session tokens or uses other techniques.
- B
Brute-force attack
A brute-force attack systematically guesses passwords for a single target account, generating a high volume of failed authentication requests for that same username. In the observed logs, the failed attempts span multiple usernames from one source IP, and the eventual success occurs after different credentials are tested — this is the signature of credential stuffing, not brute force. Brute-force would show repeated password attempts against the same account, not a sequence of distinct username/password pairs.
- C
Password spraying
Why wrong: Incorrect. Password spraying uses a few common passwords against many accounts. The pattern here shows many failed attempts for the same username before a success, which is more indicative of credential testing rather than spraying a single password.
- D
Shoulder surfing
Why wrong: Shoulder surfing is a physical, in-person technique where an attacker observes a user entering credentials, which would never appear as remote authentication log entries from a single IP address. It also does not produce failed login attempts, because the attacker simply watches and later uses the captured credentials without guessing. Since the logs show network-based attempts and a successful login after failures, this is an online automated attack, not an observation-based method.