从图到门:DNS-HyXNet,一种轻量级且可部署的用于实时DNS隧道检测的序列模型
From Graphs to Gates: DNS-HyXNet, A Lightweight and Deployable Sequential Model for Real-Time DNS Tunnel Detection
AI总结:
DNS-HyXNet通过轻量级xLSTM序列模型实现高效实时DNS隧道检测,准确率高达99.99%,延迟仅0.041ms。
摘要:
域名系统(DNS)隧道仍然是数据外泄和命令与控制通信的隐蔽通道。尽管图基方法如GraphTunnel实现了强大的准确性,但递归解析和图构建过程引入了显著的延迟和计算开销,限制了其在实时部署中的适用性。本文提出了DNS-HyXNet,一种轻量级的扩展长短期记忆(xLSTM)混合框架,旨在高效地进行基于序列的DNS隧道检测。DNS-HyXNet集成了标记化域名嵌入与标准化数值DNS特征,并通过一个两层xLSTM网络进行处理,该网络直接从数据包序列中学习时间依赖性,消除了图重建的需要,实现了单阶段多类分类。该模型在两个公开基准数据集上进行了训练和评估,并通过精心调整超参数以确保低内存消耗和快速推理。在DNS-Tunnel-Datasets的所有实验划分中,DNS-HyXNet实现了高达99.99%的准确率,宏平均精度、召回率和F1分数均超过99.96%,并且每样本检测延迟仅为0.041毫秒,证实了其可扩展性和实时准备性。这些结果表明,使用xLSTM的序列建模可以有效替代计算成本高的递归图生成,为在商用硬件上实时DNS隧道检测提供了一种可部署且节能的替代方案。
英文摘要:
Domain Name System (DNS) tunneling remains a covert channel for data exfiltration and command-and-control communication. Although graph-based methods such as GraphTunnel achieve strong accuracy, they introduce significant latency and computational overhead due to recursive parsing and graph construction, limiting their suitability for real-time deployment. This work presents DNS-HyXNet, a lightweight extended Long Short-Term Memory (xLSTM) hybrid framework designed for efficient sequence-based DNS tunnel detection. DNS-HyXNet integrates tokenized domain embeddings with normalized numerical DNS features and processes them through a two-layer xLSTM network that directly learns temporal dependencies from packet sequences, eliminating the need for graph reconstruction and enabling single-stage multi-class classification. The model was trained and evaluated on two public benchmark datasets with carefully tuned hyperparameters to ensure low memory consumption and fast inference. Across all experimental splits of the DNS-Tunnel-Datasets, DNS-HyXNet achieved up to 99.99% accuracy, with macro-averaged precision, recall, and F1-scores exceeding 99.96%, and demonstrated a per-sample detection latency of just 0.041 ms, confirming its scalability and real-time readiness. These results show that sequential modeling with xLSTM can effectively replace computationally expensive recursive graph generation, offering a deployable and energy-efficient alternative for real-time DNS tunnel detection on commodity hardware.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。