AWS Compare High-frequency comparison

WAF vs Shield vs Security Group

WAF vs Shield vs Security Group

compareWAF vs Shield vs Security GroupAWS
Last organized

WAF filters Layer 7 requests, Shield mitigates DoS and DDoS, and security groups control resource-level network connections.

One-line conclusion

  • AWS WAF filters Layer 7 HTTP(S) requests.
  • AWS Shield mitigates DoS and DDoS.
  • Security groups control network connections to resources or ENIs.

Core differences

DimensionAWS WAFAWS ShieldSecurity group
Protected targetWeb applicationsPublic applications and AWS edge entry pointsEC2, ENIs, ALBs, and other resources
FocusHeaders, URI, IP, SQL injection, XSSTraffic floods and DDoSProtocol, port, source, and destination
LayerApplication layerNetwork and edge DDoS protectionStateful resource-level network control
Typical integrationsCloudFront, ALB, API GatewayCloudFront, Route 53, ELBResources inside a VPC

Scenario shortcut

Choose WAF for web attack rules, Shield for DoS or DDoS, and security groups for protocol, port, and source control.