TL;DR
This paper introduces a novel dataset of network traffic statistics derived from various tools (browsers, crawlers, stress tools) and presents machine learning models capable of classifying traffic based on its origin. This is crucial for network security as it allows for the identification of malicious or unwanted traffic even when encrypted, by analyzing TCP header statistics.
What Problem Does This Paper Address?
The increasing prevalence of encrypted traffic on the internet poses a significant challenge for network security and traffic analysis. Traditional methods that rely on inspecting packet payloads are rendered ineffective. This makes it difficult to identify the origin and nature of network traffic, including distinguishing between legitimate user activity, automated tools like web crawlers, and malicious activities like DoS attacks. Without this visibility, security systems struggle to detect and mitigate threats.
Methods
The authors generated a dataset by capturing network traffic from various tools and then extracting statistical features from the TCP flows. These features, derived solely from TCP headers (thus working with encrypted payloads), include packet counts, byte counts, flow duration, and timing of TCP flags. They then trained and evaluated three types of machine learning models: Random Forest, Extra-Trees, and Neural Networks. These models were applied to classify traffic at different granularities: by category (browser, crawler, stress tool), by specific tool (e.g., Firefox), and by specific tool version (e.g., Firefox 68).
Datasets
The paper introduces a new dataset composed of network statistics derived from TCP flow captures. This dataset includes traffic generated by:
- Web Browsers: Chrome (versions 48, 68), Firefox (versions 42, 62, 68), Edge (version 42), Opera (version 62).
- Network Stress Tools: GoldenEye (version 3.49.2), HULK (version 1.0), RudyJS (version 1.0.0), SlowHTTPTest (version 1.6), SlowLoris (version 7.70).
- Web Crawlers: Curl (version 7.55), GrabSite (version 2.1.16), Httrack (version 3.49.2), Wget (version 1.19), Wpull (version 2.0.1).
This dataset is made available for researchers and serves as a benchmark for traffic classification tasks.
Key Insights and Ideas
- Encrypted Traffic is Classifiable: The core insight is that even with encrypted payloads, network traffic can be effectively classified by analyzing statistical features of TCP headers. This opens up new avenues for security monitoring in a post-encryption world.
- Granular Classification is Achievable: The models demonstrate the ability to classify traffic not just by broad categories but also by specific tools and even their versions, offering a high degree of visibility into network activity.
- Dataset as a Benchmark: The creation and release of this dataset are significant, as it provides a much-needed resource for researchers to train and evaluate models for this specific problem, addressing a gap in existing benchmarks.
- Tool Version Matters: The ability to classify by tool version suggests that subtle differences in traffic patterns exist even within the same tool, which can be leveraged for more precise detection.
Key Results
The paper reports high classification accuracies across different models and classification levels:
- Category Classification: Random Forest achieved an accuracy of 97.7% on the training set and 97.5% on the development set for classifying traffic into categories (browser, crawler, stress tool).
- Tool Classification: Random Forest achieved an accuracy of 95.7% on the training set and 94.9% on the KTS (Known Tools Test Set).
- Tool Instance Classification: Random Forest achieved an accuracy of 95.5% on the training set and 94.6% on the KTS.
The models generally performed well across different classifiers (Random Forest, Extra-Trees, Neural Networks), with Random Forest often showing slightly superior results.
Limitations and Future Work
- Limited Scope of Tools: While a good variety of tools were included, the dataset represents a snapshot. Future work could expand the dataset to include a wider range of applications and tools, especially newer or more sophisticated ones.
- Real-world Complexity: The traffic was generated in a controlled environment. Applying these models to highly dynamic and complex real-world network traffic, with background noise and diverse user behaviors, might present further challenges.
- Transfer Learning Potential: The authors suggest that the trained models can be used to speed up the training of new neural networks via transfer learning, indicating a path for more efficient model development.
- New Model Development: The dataset is intended to be used for training and assessing new machine learning models, implying that further research into novel classification techniques is encouraged.
Summary updated