Encrypted DNS (DoH / DoT) Egress Inspection
DNS Layer High T1071.004Evaluates whether the endpoint can bypass corporate DNS sinkholing, categorization, and query logging by initiating outbound DNS-over-HTTPS (DoH) or DNS-over-TLS (DoT) sessions directly to external public resolvers.
curl.exe -s -H "accept: application/dns-json" "https://1.1.1.1/dns-query?name=example.com&type=A" -v
Invoke-RestMethod -Uri "https://dns.google/resolve?name=example.com&type=A" -Headers @{"Accept"="application/dns-json"} -Verbose
Test-NetConnection -ComputerName 1.1.1.1 -Port 853
Gateway returns HTTP 403 Forbidden (*Proxy Avoidance / DoH* category), connection is terminated via SSL inspection, and TCP port 853 is dropped at perimeter firewall.
Direct HTTP 200 OK containing JSON-formatted DNS answer records, or successful TCP 853 3-way handshake to external resolver.
- ZIA / SWG Policy: Block URL Category "DNS Over HTTPS Providers" and "Proxy Avoidance".
- Firewall Egress: Drop all outbound TCP/UDP port 53 & TCP port 853 from endpoints to public internet.
- Endpoint GPO: Enforce
DnsOverHttpsMode = "off"in Chrome/Edge and setEnableAutoDoh = 0in Windows DNS Cache.