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 12,642 stars 1468 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
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
3 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

DevOps & Infrastructure Featured

implementing-cloud-waf-rules

This skill covers deploying and tuning Web Application Firewall rules on AWS WAF, Azure WAF, and Cloudflare to protect cloud-hosted applications against OWASP Top 10 attacks. It details configuring managed rule sets, creating custom rules for business logic protection, implementing rate limiting, deploying bot management, and reducing false positives through rule tuning and logging analysis.

12,642 Updated today
mukul975
AI & Automation Featured

implementing-api-gateway-security-controls

Implements security controls at the API gateway layer including authentication enforcement, rate limiting, request validation, IP allowlisting, TLS termination, and threat protection. The engineer configures API gateways (Kong, AWS API Gateway, Azure APIM, Apigee) to act as a centralized security enforcement point that validates, throttles, and monitors all API traffic before it reaches backend services. Activates for requests involving API gateway security, API management security, gateway authentication, or centralized API protection.

12,642 Updated today
mukul975
API & Backend Solid

api-gateway

AWS API Gateway for REST and HTTP API management. Use when creating APIs, configuring integrations, setting up authorization, managing stages, implementing rate limiting, or troubleshooting API issues.

1,111 Updated 5 days ago
itsmostafa
DevOps & Infrastructure Listed

aws-api-edge-delivery-review

Review AWS API and edge delivery posture across API Gateway, CloudFront, AWS WAF, Shield, ALB, custom domains, TLS policies, authentication, authorization, throttling, quotas, caching, origin protection, logging, and abuse controls. Use when public APIs, web entry points, or edge delivery can affect security and availability.

12 Updated today
Raishin
API & Backend Listed

implementing-api-gateway-security-controls

在API网关层实施安全控制,包括认证强制执行、速率限制、请求验证、IP白名单、TLS终止和威胁防护。 配置API网关(Kong、AWS API Gateway、Azure APIM、Apigee)作为集中式安全执行点, 在流量到达后端服务前对所有API流量进行验证、节流和监控。

16 Updated 1 months ago
killvxk