MODULE 09 // 24:00

Container Containment, Egress Firewalls & DNS Allowlisting

Lock down agent execution environments at the network layer so compromised tool runs cannot exfiltrate internal state.

// KEY ARCHITECTURAL TAKEAWAYS

  • Enforce default-deny egress policies with explicit DNS/SNI allowlists.
  • Block access to cloud metadata endpoints (169.254.169.254) and RFC1918 subnets.
  • Audit every outbound HTTP request and tool invocation.
REFERENCE IMPLEMENTATION // SNIPPET
allowed_egress:
  - api.github.com:443
  - pypi.org:443
deny_rfc1918: true