securing-api-gateway-with-aws-waf

Featured

Securing API Gateway endpoints with AWS WAF by configuring managed rule groups for OWASP Top 10 protection, creating custom rate limiting rules, implementing bot control, setting up IP reputation filtering, and monitoring WAF metrics for security effectiveness.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Securing API Gateway with AWS WAF ## When to Use - When deploying API Gateway endpoints that require protection against common web attacks - When implementing rate limiting and throttling to prevent API abuse and DDoS attacks - When building bot detection and mitigation for API endpoints exposed to the internet - When compliance requires WAF protection for all public-facing API endpoints - When customizing access controls based on IP reputation, geolocation, or request patterns **Do not use** for network-level DDoS protection (use AWS Shield), for application logic vulnerabilities (use SAST/DAST tools), or for internal API security between microservices (use service mesh authentication and authorization). ## Prerequisites - AWS API Gateway (REST or HTTP API) deployed with public endpoints - IAM permissions for `wafv2:*` and `apigateway:*` operations - CloudWatch and S3 or Kinesis Firehose configured for WAF logging - Understanding of the API's expected traffic patterns for rate limiting configuration - IP reputation lists or threat intelligence feeds for custom IP blocking ## Workflow ### Step 1: Create a WAF Web ACL with Managed Rule Groups Create a Web ACL with AWS Managed Rules for baseline protection against OWASP Top 10 attacks. ```bash # Create a WAF Web ACL with managed rule groups aws wafv2 create-web-acl \ --name api-gateway-waf \ --scope REGIONAL \ --default-action '{"Allow":{}}' \ --visibility-config '{ "SampledRequestsEnabled": true, "Cl...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category