Protect a public HTTPS API behind an internet-facing ALB in one Region. The regional web ACL default action is Allow, with no earlier terminating Allow and no other rule blocking the target requests.
Use WAF to block requests matching SQL injection patterns within its inspection scope. Also identify the standard protection against common network and transport layer DDoS attacks.
There is no Shield Advanced subscription. Check SQLi inspection scope and the effective action rather than assuming unlimited body inspection or protection from every attack.
Choose TWO appropriate configurations or descriptions of protection.
Use SQLi rules and effective Block in WAF to inspect requests to the ALB. Automatic Shield Standard DDoS protection has a separate role; Count, TCP 443 permission and standard DDoS protection alone do not establish SQLi blocking.
Detailed explanation
Automatic Standard protection is available. It does not by itself provide SQL injection inspection or the additional features of Shield Advanced.
Count records matches and continues evaluation. With default Allow and no other blocking control, Count alone does not stop requests.
Security-group controls on ports, protocols and sources do not inspect HTTP bodies for SQLi patterns. Separate network permission from application-request inspection.
WAF SQLi rules evaluate HTTP request patterns. Correct association, inspection scope, evaluation order and effective Block are all required.
Standard DDoS protection does not replace SQLi request inspection by WAF rules. A product name alone does not establish that SQLi protection is configured.
Check official documentation
Compare the following points with the official documentation.
Compare official documentation with ALB and web ACL Region and association, SQLi rules, action overrides and evaluation order. In an authorized environment compare in-scope test requests with normal requests and correlate WAF match details and effective action with application arrival. Distinguish automatic Shield Standard protection from Advanced features.
Official references
- Official documentation 1
- Official documentation 2
- Official documentation 3
- Official documentation 4
- Official documentation 5
- Official documentation 6
- Official documentation 7
What to confirm
The tested SQLi matches are blocked by WAF, while normal requests help assess false positives. Count and permission on TCP 443 alone do not establish blocking. ALB body inspection covers the first 8 KB, so this does not prove unlimited inspection or complete protection from every attack.
Key points
- AWS WAF
- AWS Shield
- SQL injection
- DDoS
Notes
- Environment: Official WAF and Shield documentation review; optional request and log comparisons in an authorized environment.
- Confirm current AWS service behavior and security guidance in the official documentation.
Foundation review
Check association and effective action
Creating rules alone does not protect the target ALB. Check its same-Region web ACL association, inspection scope, evaluation order and Count overrides. A Count match is not an executed Block.
Do not overstate standard Shield protection
Shield Standard automatically protects against common network and transport layer DDoS attacks. Do not assume Standard alone enables Advanced features or WAF SQLi inspection.
State inspection and verification limits
WAF body inspection for ALB covers the first 8 KB. Managed rules still have size limits and oversize handling. Compare normal requests for false positives; successful tests do not prove complete protection against every attack.