arXiv:2610.18406cs.NIOct 2026

Manuscript Offprint

arXiv:2610.18406

Tanchun: Robust Flow-Based HTTP(S) DDoS Detection via Behavioral Attribute Guidance

Qingyang Li, Yunpeng Tan, Mingxin Yang, Yannan Hu, Lei Zhang, Yong Cui, Zongming Guo, Xinggong Zhang

Abstract

HTTP(S) DDoS attacks have surged in frequency and scale, posing a significant threat to network security. Flow-based detection is a promising solution for large-scale HTTP(S) DDoS detection due to its decryption-free operation and scalability. However, the coarse-grained numerical statistics in flow data limit accurate attack detection and lack robustness when benign and attack traffic patterns drift over time.

In this paper, we present Tanchun, a drift-aware flow-based HTTP(S) DDoS detection system that relies solely on decryption-free flow data. Specifically, Tanchun groups flows by IP-pair and aggregates them over consecutive time slots into behavior sequences, capturing temporal access patterns to compensate for the limited information in individual flows. It further abstracts these sequences into human-understandable behavioral attributes that capture stable behavioral semantics. Tanchun then aligns behavior sequences with their corresponding behavioral attributes to guide representation learning, enabling robust detection under traffic drift.

We evaluate Tanchun across diverse HTTP(S) DDoS scenarios. Tanchun achieves the best overall performance, with an average F1-score of 0.988, and outperforms the second-best method by 5.3% and 9.6% under benign-traffic and attack-traffic drift, respectively. Experiments on real-world traffic traces further demonstrate its practical effectiveness.

1 Introduction

HTTP(S) DDoS attacks have become a critical threat to modern networks. Unlike volumetric DDoS attacks that primarily exhaust network bandwidth, HTTP(S) DDoS attacks overwhelm application-layer services with massive HTTP or HTTPS requests, consuming server-side resources and degrading service availability. Such attacks continue to grow in both frequency and intensity. For example, Cloudflare reported a 118% year-over-year increase in HTTP flood attacks in Q1 2025, with rates reaching millions of requests per second [9]. Meanwhile, HTTPS-based attacks have become increasingly prevalent, accounting for 63.65% of application-layer DDoS attacks [10]. The growing attack scale and prevalence of encryption make scalable detection increasingly challenging.

Flow-based detection offers a promising solution due to its decryption-free operation and scalability. Flow data, readily available from widely deployed telemetry systems [7, 23, 26], abstracts massive packet-level communications into compact five-tuple-based statistics without decrypting payloads. Unlike commercial web application firewalls (WAFs) [8], which require HTTPS decryption for content inspection, flow-based detection avoids decryption overhead and reduces privacy concerns in sensitive services. It also incurs lower processing costs [17] than traffic-analysis methods that rely on per-packet inspection or feature extraction [12, 17, 27], making it better suited for deployment in high-speed networks.

Despite these advantages, leveraging flow data for HTTP(S) DDoS detection remains challenging due to two fundamental issues: coarse-grained flow statistics and traffic drift.

Coarse-Grained Flow Statistics. Flow data typically provides only coarse-grained statistics, such as byte and packet counts. Attackers can issue legitimate-looking requests and generate low-volume flows that closely resemble benign traffic [31], thereby diminishing the discriminative capability of individual flows for detection. This limitation motivates us to aggregate flows sharing the same IP-pair (i.e., a source IP and a destination IP) to capture client-server access patterns from a more holistic perspective. While individual flows can appear indistinguishable from benign traffic, aggregated IP-pair traffic patterns may reveal distinctive characteristics that differentiate attackers from legitimate users [13, 17].

Traffic Drift. Although existing IP-pair-level analysis methods have achieved strong performance [13, 17], their IP-pair feature extraction mechanisms still face substantial challenges in the presence of traffic drift. In real-world networks, traffic distributions continuously evolve due to changes in benign user behaviors and attacker strategies. Existing approaches typically characterize IP-pairs using numerical features, such as flow counts, packet/byte volumes [17]. However, these numerical features are sensitive to traffic drift and may deviate from the patterns observed in training data, thereby degrading detection performance and robustness [45].

To overcome this limitation, we aim to find a way to characterize high-level access behaviors and capture stable behavioral semantics that are more robust to traffic drift. Our key insight is that, while numerical IP-pair features may change over time, high-level access behavior may remain stable and can be described by human-understandable behavioral attributes. For example, HTTP(S) DDoS generated by different automated tools may exhibit different traffic characteristics, yet security operators may characterize their per-bot access behaviors with the same behavioral attributes, such as "high-intensity" and "regular" access patterns. Therefore, leveraging such stable behavioral attributes to construct semantic representations of IP-pair access behavior provides a promising direction for robust detection under traffic drift.

In this paper, we present Tanchun 1^{1}, a drift-aware flow-based HTTP(S) DDoS detection system that relies solely on decryption-free flow data. Tanchun learns stable semantics of IP-pair access behaviors through human-understandable behavioral attributes. Specifically, it first aggregates individual flows into numerical IP-pair features to characterize client-server access patterns. It then describes each IP-pair's access behavior using human-understandable behavioral attributes and leverages these attributes to guide a deep learning model in capturing high-level behavioral semantics for robust attack detection under traffic drift. However, realizing this goal is non-trivial and requires addressing three main technical challenges (TCs).

TC 1: How can flows be aggregated to capture the temporal access behavior of IP-pairs? Client-server access behavior naturally evolves over time, and may generate multiple flows. However, individual flow records provide limited observations, while naive aggregation over a whole observation window like existing works [17] removes temporal ordering and obscures behavioral dynamics.

TC 2: How can behavioral attributes be defined and leveraged to characterize diverse access behaviors? Access behaviors exhibit diverse patterns, making it challenging to design behavioral attributes that are sufficiently comprehensive while remaining discriminative. Moreover, mapping numerical IP-pair features to behavioral attributes is challenging due to the lack of explicit quantitative criteria.

TC 3: How can the model learn robust behavioral semantics while preserving malicious-benign discrimination? Behavioral attributes provide stable semantic abstraction but may lose fine-grained information for distinguishing malicious and benign traffic, while numerical IP-pair features preserve detailed patterns but are sensitive to traffic drift.

To address these technical challenges, we develop Tanchun with three key contributions:

• Behavior Sequence Abstraction. To address TC 1, it groups flows by IP-pair and aggregates flows within each consecutive time slot to extract diverse statistical features. The slot-level features are then concatenated into behavior sequences, capturing the temporal access dynamics of each IP-pair.

• Behavioral Attribute Derivation. To address TC 2, it first defines some attribute types that describe IP-pair access behavior from different perspectives and their corresponding quantifiable indicators, and then derives behavioral attributes by mapping numerical behavior sequences to different attribute levels.

• Semantic-Guided Representation Learning. To address TC 3, it jointly leverages behavioral attributes and behavior sequences. It learns behavior-aware representations by aligning behavior sequences with their corresponding attributes, encouraging IP-pair representations with the same attributes to be close while preserving fine-grained temporal information for detection.

We prototype Tanchun and evaluate it across diverse HTTP(S) DDoS scenarios. Tanchun achieves the best overall performance across public datasets, synthetic complex attack scenarios, and diverse traffic-drift settings, with an average F1-score of 0.988. In particular, Tanchun outperforms the second-best method by 5.3% and 9.6% under benign-traffic and attack-traffic drift, respectively. Comprehensive ablation studies and parameter analyses further validate the effectiveness of its key design choices, while evaluations on real-world traffic traces demonstrate its practical detection capability.

References (38)