Interview Prep/Networking/Security: Firewalls, SGs, NACLs & VPN

How do you stop data exfiltration from compromised workloads?

AdvancedScenarioSecurity: Firewalls, SGs, NACLs & VPN
Answer

Situation read → Control egress and detect anomalies.

What I'd do →

  1. Default-deny egress with explicit allow lists via security groups, Network Firewall or a proxy
  2. Force all outbound through a central point with logging
  3. Use VPC endpoint policies to restrict S3 to your own buckets
  4. Alert on DNS tunneling patterns using Route 53 Resolver DNS Firewall and query logs
  5. Use GuardDuty findings for unusual destinations

Why → Attackers need an outbound path; remove it, and the stolen data has nowhere to go.

Interview tip → Say DNS is the forgotten exfiltration channel.

All Networking questions Roadmap: Networking for DevOps

More on Security: Firewalls, SGs, NACLs & VPN