Default-deny egress is a network policy that blocks outbound connections unless a destination has been explicitly approved. Instead of allowing systems to reach any address by default, administrators define which external services, hosts, or ports are permitted.
This limits the destinations malware or compromised tools can contact to send data, retrieve payloads, or communicate with command-and-control infrastructure. In environments running AI coding agents, it can restrict access to approved model providers and services while preventing unexpected connections. Effective controls require maintaining an explicit allowlist and monitoring blocked and permitted traffic; egress restrictions complement, but do not replace, least privilege and careful handling of sensitive data.


