arXiv:2512.09565cs.CV2025-12

用轻量时序模型实现毫秒级域名隧道实时检测

From Graphs to Gates: DNS-HyXNet, A Lightweight and Deployable Sequential Model for Real-Time DNS Tunnel Detection

  • 基于xLSTM的序列建模,直接分析数据包时间序列
  • 99.99%准确率,单样本检测仅需0.041毫秒
  • 无需图构建,适合部署在普通硬件上

域名系统(DNS)隧道仍是数据外泄和命令控制的隐蔽通道。尽管图方法如GraphTunnel具有高精度,但其递归解析与图构建带来显著延迟与计算开销,难以实现实时部署。本文提出DNS-HyXNet,一种轻量级扩展长短期记忆(xLSTM)混合框架,用于高效序列化DNS隧道检测。该模型融合分词域名嵌入与归一化数值型DNS特征,通过两层xLSTM网络直接学习数据包序列中的时序依赖,无需图重建,支持单阶段多分类。模型在两个公开基准数据集上训练并评估,经超参调优以保证低内存占用与快速推理。在DNS-Tunnel-Datasets所有实验划分中,最高达99.99%准确率,宏平均精确率、召回率与F1分数均超过99.96%,单样本检测延迟仅为0.041毫秒,验证了其可扩展性与实时就绪性。结果表明,xLSTM序列建模可有效替代计算密集型递归图生成,为在通用硬件上实现实时DNS隧道检测提供可部署、低功耗的解决方案。

原文摘要 · Abstract (English)

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.

DNS检测时序模型xLSTM实时系统

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。