AWS Builder Center

Layered Defense: A No-Deploy Walkthrough of AWS VPC Security

A read-through case study of AWS's layered VPC security workshop — how five independent defense tracks (DNS, monitoring, firewalls, and WAF) combine into one defense-in-depth strategy

VPC Layered Security Workshop — All Tracks (Simplified)

Track A: DNS Security

  • DNS is like a phonebook. It turns website names into computer addresses.
  • Bad actors can trick this phonebook. This is called DNS hijacking or DNS spoofing.
  • This track teaches you to add a firewall for DNS.
  • It checks DNS requests before they go out.
  • It blocks requests to known bad or fake addresses.
  • Real-world use: stops malware from "calling home" to bad servers.

Track B: Network Analysis

  • This track is about watching your network traffic, not blocking it.
  • Think of it like a security camera for your network.
  • Key tool: VPC Traffic Mirroring
  • Copies real network traffic.
  • Sends the copy to a separate instance (called  mirrorInstance ) for inspection.
  • Original traffic is not slowed down or touched.
  • Real-world use: investigate an attack after it happens, or watch for unusual patterns.

Track C: AWS Network Firewall

  • AWS gives you a firewall tool. It is built by AWS.
  • You turn it on and set rules.
  • Easy to use. Fully managed by AWS.

Track D: Third-Party Firewall (Suricata)

  • Suricata is a firewall tool. It is NOT made by AWS.
  • It is free, open-source software.
  • In this workshop, AWS already installed Suricata for you.
  • It runs inside ECS (a place to run containers).
  • You do not need to set it up yourself.
  • Your job in this track: learn how to send network traffic THROUGH Suricata.
  • This is done using a tool called Gateway Load Balancer (GWLB).
  • GWLB acts like a traffic director.
  • It sends your network traffic to Suricata to check it.
  • Then traffic continues on its way.

Track E: Web Application Firewall (WAF)

  • This track protects your website's front door — the part users actually visit.
  • WAF checks web requests (like form submissions, page loads) for attack patterns.
  • Example: someone trying to inject bad code through a search box.
  • In this workshop, WAF protects two CloudFront distributions.
  • CloudFront = AWS service that delivers your website fast, from locations near the user.
  • Real-world use: stops common website attacks like SQL injection and bot traffic.

All 5 Tracks — Quick Comparison

Track
What it protects
Main tool
A: DNS Security
The "phonebook" (DNS lookups)
DNS Firewall
B: Network Analysis
Visibility into traffic
Traffic Mirroring
C: Network Firewall
General network traffic
AWS Network Firewall
D: 3rd-Party Firewall
General network traffic (alternative)
Suricata + GWLB
E: Web App Firewall
Your website's front door
AWS WAF

One-Line Summary Per Track

  • A = Stop fake phonebook tricks.
  • B = Watch traffic like a camera, don't block it.
  • C = Use AWS's own firewall.
  • D = Use an outside firewall tool (Suricata), connected via GWLB.
  • E = Protect your website from bad web requests.

Big Picture

No single layer is enough on its own. Together, these 5 tracks show defense in depth — many small locks instead of one big lock.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article