[Paper Review] Construction of Two Statistical Anomaly Features for Small-Sample APT Attack Traffic Classification
This paper proposes two novel statistical anomaly features—C2Load_fluct (response packet load fluctuation) and Bad_rate (bad packet rate)—to enhance small-sample APT attack traffic classification. By integrating these features with existing ones and using an improved PADASYN data balancing method with AdaBoost, the approach achieves F1-scores above 0.98 and 0.94 on two datasets, significantly improving detection accuracy for APT C2 traffic.
Advanced Persistent Threat (APT) attack, also known as directed threat attack, refers to the continuous and effective attack activities carried out by an organization on a specific object. They are covert, persistent and targeted, which are difficult to capture by traditional intrusion detection system(IDS). The traffic generated by the APT organization, which is the organization that launch the APT attack, has a high similarity, especially in the Command and Control(C2) stage. The addition of features for APT organizations can effectively improve the accuracy of traffic detection for APT attacks. This paper analyzes the DNS and TCP traffic of the APT attack, and constructs two new features, C2Load_fluct (response packet load fluctuation) and Bad_rate (bad packet rate). The analysis showed APT attacks have obvious statistical laws in these two features. This article combines two new features with common features to classify APT attack traffic. Aiming at the problem of data loss and boundary samples, we improve the Adaptive Synthetic(ADASYN) Sampling Approach and propose the PADASYN algorithm to achieve data balance. A traffic classification scheme is designed based on the AdaBoost algorithm. Experiments show that the classification accuracy of APT attack traffic is improved after adding new features to the two datasets so that 10 DNS features, 11 TCP and HTTP/HTTPS features are used to construct a Features set. On the two datasets, F1-score can reach above 0.98 and 0.94 respectively, which proves that the two new features in this paper are effective for APT traffic detection.
Motivation & Objective
- Address the challenge of detecting APT attacks in small-sample datasets where traditional IDS fail due to stealth and persistence.
- Identify statistical anomalies in DNS and TCP traffic that distinguish APT C2 communication from normal traffic.
- Improve classification accuracy by introducing two new statistical features tailored to APT traffic patterns.
- Overcome data imbalance in APT traffic datasets using an enhanced ADASYN-based sampling method (PADASYN).
- Design an effective traffic classification framework combining new features and AdaBoost for high-accuracy APT detection.
Proposed method
- Construct C2Load_fluct as a measure of response packet payload size variation in C2 traffic, capturing abnormal load fluctuations characteristic of APT command-and-control channels.
- Define Bad_rate as the ratio of malformed or suspicious packets in APT traffic, identifying deviations from normal protocol behavior.
- Integrate the two new features with 10 DNS and 11 TCP/HTTP/HTTPS features to form an expanded feature set for classification.
- Propose PADASYN, an improved adaptive sampling technique that enhances ADASYN by better handling boundary samples and data loss in small datasets.
- Apply the AdaBoost algorithm to train a robust ensemble classifier on the balanced, feature-enriched dataset for APT traffic detection.
- Evaluate the model on two real-world APT traffic datasets to validate performance under small-sample conditions.
Experimental results
Research questions
- RQ1Can statistical anomalies in packet payload fluctuation and bad packet rate effectively distinguish APT C2 traffic from benign traffic?
- RQ2How do the proposed features C2Load_fluct and Bad_rate perform in small-sample APT detection scenarios?
- RQ3To what extent does the PADASYN algorithm improve data balance and classification performance compared to standard ADASYN in APT datasets?
- RQ4What is the impact of combining the two new features with existing features on overall APT traffic classification accuracy?
- RQ5Can the AdaBoost-based classifier achieve high F1-scores on imbalanced APT traffic datasets when enhanced with PADASYN and new features?
Key findings
- The C2Load_fluct and Bad_rate features exhibit strong statistical patterns in APT traffic, particularly during the C2 phase, enabling reliable detection.
- The inclusion of the two new features significantly improves classification performance, achieving an F1-score of 0.98 on one dataset and 0.94 on another.
- PADASYN effectively mitigates data imbalance and boundary sample issues, enhancing model generalization on small APT datasets.
- The AdaBoost classifier with the enhanced feature set outperforms baseline models, demonstrating robustness and high precision in APT detection.
- The combination of statistical anomaly features and improved sampling yields state-of-the-art performance in small-sample APT traffic classification.
- The results confirm that the two proposed features are highly effective for identifying APT C2 traffic, even with limited training data.
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.