0:00
–:––
React at 0:00
Black Hat USA 2025

Kernel-Enforced DNS Exfiltration Security: Framework Built for Cloud Environments to Stop Data Breaches via DNS at Scale

When and where

Day
Thu 7 Aug 2025
Time
10:20 to 11:00 PDT
Room
Islander F & G, Level 0 - North Convention Center

Speaker

  • Synarcs is an independent research graduate student at the University of Washington. His research focuses on the Linux kernel network stack, kernel mandatory access control, datapath, traffic control (QoS), and eBPF — combined with user-space APIs, deep learning, distributed systems, and cloud-native infrastructure — to build endpoint security solutions that prevent emerging attack vectors, including APT malware and C2 threats, by targeting some of the most vulnerable and widely abused protocols. In addition, with a strong emphasis on kernel-enforced, runtime endpoint security, Synarcs' research explores deeper integration of kernel internals to significantly improve the accuracy and speed of detection and prevention by in-kernel dynamic response killing sophisticated stealthy data exfiltration techniques but still providing rich metrics and operating systems visibility to existing userspace XDR/EDR tools.

Abstract

DNS-based data exfiltration via C2 channels and DNS tunneling is a critical cybersecurity challenge, as DNS is a foundational protocol that must remain open on firewalls. Attackers now use DNS not just for exfiltration, but to establish backdoors, execute remote commands, and maintain persistent control over compromised systems. With the evolving scale of C2 infrastructure—leveraging multiplayer C2 modes and botnets—real-time prevention becomes significantly more complex, especially when aiming for zero data loss and accurate process-level implant termination at the endpoint. Traditional defenses rely heavily on timing and volume-based passive anomaly detection, signature-based filtering, or DPI through proxies and middleware. These approaches are increasingly ineffective against evasive C2 threats. They suffer from delayed detection, longer dwell time, greater data loss before threat removal, and slow response. Most fail to handle DGAs, where attackers constantly mutate domains (L7) and IPs (L3) to evade static blacklists, and they still lack support for instantaneous implant termination. This framework is built to disrupt DNS-based C2 channels and DNS tunnelling at scale by moving DNS exfiltration security directly into the Linux kernel. Using eBPF-driven endpoint security enforcement, the framework runs advanced threat intelligence across the entire kernel network stack and mandatory access control layer, performing high-speed DPI by parsing the DNS protocol directly inside the kernel. Aided by a userspace deep learning model trained on diverse DNS payload obfuscation techniques, it enhances detection accuracy and enables dynamic runtime enforcement. It instantaneously prevents DNS C2 channels and tunneling, ensuring that no exfiltrated packets ever leave the endpoint — and precisely threat-hunts and kills malicious C2 implant processes in real time. It inherently supports dynamic domain blacklisting, dynamic in-kernel network policy creation, and threat event streaming, enabling massive scalability for real production cloud environments.

What you'll get from it

DNS has to stay open through firewalls, which makes it a favourite channel for exfiltration, tunnelling and command and control. Vedang Parasnis describes a framework that moves the defence into the Linux kernel with eBPF, parsing DNS inside the kernel and pairing that with a userspace deep learning model trained on obfuscated DNS payloads. It aims to block DNS C2 and tunnelling before any packet leaves the endpoint, kill the implant process behind it, and update blocklists and policy at runtime across cloud fleets. It's for defenders running Linux in the cloud who find timing and signature-based detection too slow.

Did you find what you came for?