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 →
- Default-deny egress with explicit allow lists via security groups, Network Firewall or a proxy
- Force all outbound through a central point with logging
- Use VPC endpoint policies to restrict S3 to your own buckets
- Alert on DNS tunneling patterns using Route 53 Resolver DNS Firewall and query logs
- 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.
More on Security: Firewalls, SGs, NACLs & VPN
Security group versus NACL: explain the differences.BeginnerHow do you let only your office IP SSH into a server?BeginnerWhat does it mean that a security group can reference another security group?BeginnerStateful versus stateless firewalls: what is the practical difference?BeginnerWhat is a WAF and where do you place it?BeginnerWhat is the difference between a site-to-site VPN and a client VPN?Beginner