AWS Certified Security – Specialty (SCS-C02) — Question 167
A company has a web-based application that runs behind an Application Load Balancer (ALB). The application is experiencing a credential stuffing attack that is producing many failed login attempts. The attack is coming from many IP addresses. The login attempts are using a user agent string of a known mobile device emulator.
A security engineer needs to implement a solution to mitigate the credential stuffing attack. The solution must still allow legitimate logins to the application.
Which solution will meet these requirements?
Answer options
- A. Create an Amazon CloudWatch alarm that reacts to login attempts that contain the specified user agent string Add an Amazon Simple Notification Service (Amazon SNS) topic to the alarm.
- B. Modify the inbound security group on the ALB to deny traffic from the IP addresses that are involved in the attack.
- C. Create an AWS WAF web ACL for the ALB Create a custom rule that blocks requests that contain the user agent string of the device emulator.
- D. Create an AWS WAF web ACL for the ALB. Create a custom rule that allows requests from legitimate user agent strings.
Correct answer: C
Explanation
The correct answer is C because creating an AWS WAF web ACL with a rule to block requests containing the specific user agent string directly addresses the credential stuffing attack while allowing legitimate users to log in. Option A does not block the attack but only provides notifications, option B may block legitimate traffic by denying IPs, and option D allows potentially harmful requests by only filtering based on legitimate user agents.