[Paper Review] DoLLM: How Large Language Models Understanding Network Flow Data to Detect Carpet Bombing DDoS
DoLLM is the first DDoS detection model that leverages open-source large language models (LLMs) to detect Carpet Bombing DDoS attacks by transforming network flow data into tokenized Flow-Sequences for contextual representation learning. It achieves up to a 33.3% F1 score improvement in zero-shot detection and at least 20.6% higher F1 in real ISP traces, demonstrating strong generalization and real-world effectiveness.
It is an interesting question Can and How Large Language Models (LLMs) understand non-language network data, and help us detect unknown malicious flows. This paper takes Carpet Bombing as a case study and shows how to exploit LLMs' powerful capability in the networking area. Carpet Bombing is a new DDoS attack that has dramatically increased in recent years, significantly threatening network infrastructures. It targets multiple victim IPs within subnets, causing congestion on access links and disrupting network services for a vast number of users. Characterized by low-rates, multi-vectors, these attacks challenge traditional DDoS defenses. We propose DoLLM, a DDoS detection model utilizes open-source LLMs as backbone. By reorganizing non-contextual network flows into Flow-Sequences and projecting them into LLMs semantic space as token embeddings, DoLLM leverages LLMs' contextual understanding to extract flow representations in overall network context. The representations are used to improve the DDoS detection performance. We evaluate DoLLM with public datasets CIC-DDoS2019 and real NetFlow trace from Top-3 countrywide ISP. The tests have proven that DoLLM possesses strong detection capabilities. Its F1 score increased by up to 33.3% in zero-shot scenarios and by at least 20.6% in real ISP traces.
Motivation & Objective
- To address the growing threat of Carpet Bombing DDoS attacks, which are low-rate and multi-vector, evading traditional detection methods based on explicit traffic features.
- To explore whether and how large language models (LLMs) can understand non-natural language network flow data for improved DDoS detection.
- To overcome the modality gap between network flows and LLMs by designing a novel interface that maps flow data into LLM-usable semantic space.
- To enable effective detection of unknown Carpet Bombing attacks without relying on hand-crafted features or rule-based systems.
- To demonstrate the feasibility and superiority of using open-source LLMs as a backbone for real-time, high-accuracy DDoS detection in production ISP environments.
Proposed method
- Reorganize temporally unordered network flows into structured Flow-Sequences to enable contextual correlation mining.
- Design a Flow Tokenizer to convert flow features (e.g., IPs, ports, protocols, traffic volume) into token embeddings compatible with LLM input space.
- Utilize open-source LLMs as the backbone for representation learning, treating each flow as a token in a sequence for contextual embedding generation.
- Project the LLM-learned embeddings into a classification head for binary flow-level classification (attack vs. benign).
- Model the DDoS detection task as a token classification problem to improve inference efficiency by processing multiple flows per forward pass.
- Adapt the LLM architecture by reducing hidden layers to balance performance and inference latency without sacrificing detection accuracy.
Experimental results
Research questions
- RQ1Can large language models understand and extract meaningful representations from non-natural language network flow data?
- RQ2How can the modality gap between network flow data and LLMs be bridged to enable effective representation learning?
- RQ3Can LLM-based models detect low-rate, multi-vector Carpet Bombing DDoS attacks more effectively than traditional feature-based or rule-based systems?
- RQ4To what extent can open-source LLMs generalize to unknown Carpet Bombing attack patterns in zero-shot detection scenarios?
- RQ5How does the proposed DoLLM model perform in real-world ISP environments compared to existing detection methods?
Key findings
- DoLLM achieved an F1 score of 0.964 in zero-shot detection on the CIC-DDoS2019 dataset, representing a 33.3% improvement over baseline methods.
- In real-world ISP NetFlow traces, DoLLM’s F1 score exceeded all baselines by at least 20.6%, demonstrating strong real-world performance.
- The Flow Sequentializer significantly improved detection by enabling LLMs to capture inter-flow correlations in temporally unordered data.
- The Flow Tokenizer successfully mapped heterogeneous flow features into LLM-usable token embeddings, enabling semantic representation learning.
- Reducing the number of LLM hidden layers lowered inference latency while maintaining high detection accuracy, supporting practical deployment.
- Ablation studies confirmed that both the Flow Sequentializer and the Classification Projection module are essential for optimal detection performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.