AWS Web Application Firewall (WAF) is a managed security service that protects your web applications and APIs from common Layer 7 (HTTP/S) threats and exploits.
It lets you define rules that filter, allow, or block requests based on conditions like:
-
IP addresses
-
HTTP headers
-
Query strings
-
URI paths
-
Request size
-
SQL injection attempts
-
Cross-site scripting (XSS)
Where AWS WAF Can Be Deployed
You can associate WAF with:
-
Amazon CloudFront (global CDN layer)
-
Application Load Balancer (ALB)
-
API Gateway
-
AWS AppSync
-
AWS Verified Access
Key Features
-
Rule-based filtering
-
Managed rule groups (by AWS & AWS Marketplace vendors).
-
Custom rules (e.g., block specific IPs, allow only certain countries).
-
-
Protection against OWASP Top 10
-
SQLi, XSS, bad bots, etc.
-
-
Rate-based rules
-
Throttle traffic (e.g., block IPs sending > 1000 requests in 5 minutes).
-
-
Bot Control
-
Detects & blocks automated bots and scrapers.
-
-
Visibility & Monitoring
-
Integration with Amazon CloudWatch & AWS Kinesis Firehose for logging.
-
Example Use Cases
-
Protect an e-commerce site against SQL injection.
-
Block traffic from specific countries (GeoMatch).
-
Rate-limit APIs to prevent DDoS-style floods.
-
Allow only corporate IP ranges to access admin endpoints.
Example Rule (JSON snippet)
This rule blocks requests with script in the query string (to stop simple XSS):
AWS WAF vs AWS Shield
-
AWS WAF → Protects against application layer attacks (Layer 7).
-
AWS Shield → Protects against DDoS (Layer 3/4).
No comments:
Post a Comment