A company hosts a public web application behind an Application Load Balancer (ALB). To protect the application from SQL injection and HTTP flood attacks, the security team associated an AWS WAF WebACL with the ALB. The WebACL contains rules:
1. A rate-based rule to block clients exceeding requests per minutes.
2. A custom rule to block requests containing SQL injection patterns in the URI.
3. A rule that allows all traffic matching a specific API key header used by partner integrations.
During a simulated attack, security audits show that partner integrations sending requests with the API key header are successfully executing SQL injection attacks, and some partner IPs are overwhelming the application with HTTP floods.
Which configuration change should the Solutions Architect recommend to resolve this security vulnerability?
- AApply a Service Control Policy (SCP) at the organizational unit level that denies access to the Application Load Balancer for requests containing SQL injection payloads.
- BChange the rule action of the partner integration allow rule from Allow to Count, and set the WebACL default action to Block to inspect all traffic.
- Reorder the WebACL rules so that the SQL injection block rule and the rate-based block rule are evaluated before the rule that allows traffic matching the API key header.Cevap
- DConfigure a custom S3 bucket policy for the WAF log destination that mandates the use of the AWS-managed S3 key (aws/s3) to restrict cross-account access.