DoH Deception: Evading ML-Based Tunnel Detection with Black-Box Attack Techniques
Where
Ground Truth
BSides Las Vegas
Duration
42 min
Shows how black-box adversarial attacks evade machine-learning models that detect DNS-over-HTTPS tunnels.
Summary
The talk opens with background on DNS tunnelling, which attackers have used since the 1990s to move data and command traffic through DNS, and on DNS over HTTPS, which hides those queries inside HTTPS. Detection has moved toward machine-learning models, with ensemble methods such as gradient boosting currently leading. These models are trained on flow features extracted from packet captures, and the research tool used throughout is DNS2TCP.
The core of the work is a black-box attack in which the attacker only sees the model's inference output. It uses a zeroth-order optimization method adapted from the ZOO attack. The unconstrained version reached high success but produced impossible values, such as negative durations and enormous packet sizes. To fix this, the speaker added per-feature limits taken from the tunnel tool and a list of features allowed to change. The constrained version succeeded less often, but a single success revealed feature values that could be reproduced by configuring the tunnel tool.
A live demonstration ran a gradient boosting detector against a tunnel on port 443, flagged it as malicious, then adjusted packet size and flow time values until the same traffic was classified as benign. The speaker presented the approach as applicable to other models and suggested it may extend to network intrusion detection systems. Defensive suggestions include adversarial training, avoiding features a user can easily control such as timing, and auxiliary detectors that catch such manipulation.
Related talks
AI Village·49 min
Thomas Mason · Tahseen Rabbani
Shows how Google's SynthID image watermark can be stripped with light diffusion regeneration and a fast offline surrogate detector trained on paired images.
Breaking Ground·13 min
Noah Grosh
Shows how small edits to a malware file's features can lower an ML detector's malicious score without changing behavior.
Common Ground·46 min
Candid Wuest
Assesses whether agentic AI malware is already a real threat, with a PowerShell proof of concept and defender takeaways.


