Machine Learning for Encrypted Malware Traffic Classification: Accounting for Noisy Labels and Non-Stationarity
The DOI matches its Crossref record; 37 of the 39 references it cites were found in a registry or an index.
Abstract
The application of machine learning for the detection of malicious network traffic has been well researched over the past several decades; it is particularly appealing when the traffic is encrypted because traditional pattern-matching approaches cannot be used. Unfortunately, the promise of machine learning has been slow to materialize in the network security domain. In this paper, we highlight two primary reasons why this is the case: inaccurate ground truth and a highly non-stationary data distribution. To demonstrate and understand the effect that these pitfalls have on popular machine learning algorithms, we design and carry out experiments that show how six common algorithms perform when confronted with real network data. With our experimental results, we identify the situations in which certain classes of algorithms underperform on the task of encrypted malware traffic classification. We offer concrete recommendations for practitioners given the real-world constraints outlined. From an algorithmic perspective, we find that the random forest ensemble method outperformed competing methods. More importantly, feature engineering was decisive; we found that iterating on the initial feature set, and including features suggested by domain experts, had a much greater impact on the performance of the classification system. For example, linear regression using the more expressive feature set easily outperformed the random forest method using a standard network traffic representation on all criteria considered. Our analysis is based on millions of TLS encrypted sessions collected over 12 months from a commercial malware sandbox and two geographically distinct, large enterprise networks.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“The Cloud Security Alliance (CSA) has produced a framework for Software Defined Perimeter (SDP) [2] that may also be useful in ZTA.”
From Zero Trust Architecture (2020) · cites this paper as [2]
Citations
Cites
Breiman, L. (2001) · Machine Learning · doi:10.1023/a:1010933404324 · Cited by 133,538
LeCun, Y., Bengio, Y., & Hinton, G. (2015) · Nature · doi:10.1038/nature14539 · Cited by 84,126
Scikit-learn: Machine Learning in Python
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Müller, A., Nothman, J., Louppe, G., et al. (2012) · arXiv · doi:10.48550/arxiv.1201.0490 · Cited by 71,016
Cortes, C., & Vapnik, V. (1995) · Machine Learning · doi:10.1007/bf00994018 · Cited by 59,421
The Elements of Statistical Learning
Hastie, T., Tibshirani, R., & Friedman, J. (2009) · Springer Series in Statistics · doi:10.1007/978-0-387-84858-7 · Cited by 25,970
The Elements of Statistical Learning
Hastie, T., Friedman, J., & Tibshirani, R. (2001) · Springer Series in Statistics · doi:10.1007/978-0-387-21606-5 · Cited by 24,162
Classification and Regression Trees.
Gordon, A. D., Breiman, L., Friedman, J. H., Olshen, R. A., & Stone, C. J. (1984) · Biometrics · doi:10.2307/2530946 · Cited by 23,522
Classification and Regression Trees.
Ryzin, J. V., Breiman, L., Friedman, J. H., Olshen, R. A., & Stone, C. J. (1986) · Journal of the American Statistical Association · doi:10.2307/2288003 · Cited by 20,825
Regularization Paths for Generalized Linear Models via Coordinate Descent
Friedman, J., Hastie, T., & Tibshirani, R. (2010) · Journal of Statistical Software · doi:10.18637/jss.v033.i01 · Cited by 19,927
No free lunch theorems for optimization
Wolpert, D. H., & Macready, W. G. (1997) · IEEE Transactions on Evolutionary Computation · doi:10.1109/4235.585893 · Cited by 14,237
Classification And Regression Trees
Breiman, L., Friedman, J. H., Olshen, R. A., & Stone, C. J. (2017) · doi:10.1201/9781315139470 · Cited by 11,417
Scikit-learn: Machine Learning in Python
(2011) · Journal of Machine Learning Research · doi:10.5555/1953048.2078195 · Cited by 8,539
Improving neural networks by preventing co-adaptation of feature detectors
Hinton, G. E., Srivastava, N., Krizhevsky, A., Sutskever, I., & Salakhutdinov, R. R. (2012) · arXiv · doi:10.48550/arxiv.1207.0580 · Cited by 6,382 · cited 1×
“Finally, for the dropout regularization parameter [26], we searched between .”
MethodA few useful things to know about machine learning
Domingos, P. (2012) · Communications of the ACM · doi:10.1145/2347736.2347755 · Cited by 3,326
Snort - Lightweight Intrusion Detection for Networks
Roesch, M. (1999) · Cited by 3,163
Bro: a system for detecting network intruders in real-time
Paxson, V. (1999) · Computer Networks · doi:10.1016/s1389-1286(99)00112-7 · Cited by 2,636
Outside the Closed World: On Using Machine Learning for Network Intrusion Detection
Sommer, R., & Paxson, V. (2010) · 2010 IEEE Symposium on Security and Privacy · doi:10.1109/sp.2010.25 · Cited by 2,085
The Transport Layer Security (TLS) Protocol Version 1.2
Dierks, T., & Rescorla, E. (2008) · doi:10.17487/rfc5246 · Cited by 1,576 · cited 3×
“TLS [18] is the primary protocol to secure many plain-text application protocols, e.”
BackgroundAccessorize to a Crime: Real and Stealthy Attacks on State-of-the-Art Face Recognition
Sharif, M., Bhagavatula, S., Bauer, L., & Reiter, M. K. (2016) · Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/2976749.2978392 · Cited by 1,530
Poisoning Attacks against Support Vector Machines
Biggio, B., Nelson, B., & Laskov, P. (2012) · arXiv · doi:10.48550/arxiv.1206.6389 · Cited by 1,331 · cited 1×
“Adversarial machine learning promotes awareness of the types of attacks that can be perpetrated against a machine learning system, and attempts to provide solutions in the form of robust data features and training algorithms [5, 17, 36].”
BackgroundInternet traffic classification using bayesian analysis techniques
Moore, A. W., & Zuev, D. (2005) · Proceedings of the 2005 ACM SIGMETRICS international conference on Measurement and modeling of computer systems · doi:10.1145/1064212.1064220 · Cited by 1,208 · cited 1×
“While not applied directly to detecting threats in encrypted tra c, this basic formula of machine learning and network metadata has been well-researched [6, 24, 31].”
BackgroundGu, G., Roberto Perdisci, A., Zhang, J., & Lee, W. (2008) · Journal of Bioresource Management · Cited by 1,033
Cisco Systems NetFlow Services Export Version 9
(2004) · doi:10.17487/rfc3954 · Cited by 954
Dalvi, N., Domingos, P., Mausam, Sanghai, S., & Verma, D. (2004) · Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining · doi:10.1145/1014052.1014066 · Cited by 887 · cited 1×
“Adversarial machine learning promotes awareness of the types of attacks that can be perpetrated against a machine learning system, and attempts to provide solutions in the form of robust data features and training algorithms [5, 17, 36].”
BackgroundLowd, D., & Meek, C. (2005) · Proceedings of the eleventh ACM SIGKDD international conference on Knowledge discovery in data mining · doi:10.1145/1081870.1081950 · Cited by 755 · cited 1×
“Label noise in the security domain has also been studied [28].”
BackgroundWilliams, N., Zander, S., & Armitage, G. (2006) · ACM SIGCOMM Computer Communication Review · doi:10.1145/1163593.1163596 · Cited by 698 · cited 4×
“For example, linear regression using the more expressive feature set easily outperformed the random forest method using a standard network connection representation [39] on all criteria that we considered.”
BackgroundMethodInfluentialA comparative analysis of methods for pruning decision trees
Esposito, F., Malerba, D., Semeraro, G., & Kay, J. (1997) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/34.589207 · Cited by 549
Internet traffic classification using bayesian analysis techniques
Moore, A. W., & Zuev, D. (2005) · ACM SIGMETRICS Performance Evaluation Review · doi:10.1145/1071690.1064220 · Cited by 460
Hypertext Transfer Protocol Version 2 (HTTP/2)
Belshe, M., & Peon, R. (2015) · doi:10.17487/rfc7540 · Cited by 450
LIBLINEAR: A Library for Large Linear Classification
FanRong-En, ChangKai-Wei, HsiehCho-Jui, WangXiang-Rui, & LinChih-Jen (2008) · Journal of Machine Learning Research · doi:10.5555/1390681.1442794 · Cited by 328 · cited 1×
“Scikit-learn uses liblinear [21] and a coordinate descent algorithm [23] to train the classi ers.”
MethodIdentifying Encrypted Malware Traffic with Contextual Flow Data
Anderson, B., & McGrew, D. (2016) · Proceedings of the 2016 ACM Workshop on Artificial Intelligence and Security · doi:10.1145/2996758.2996768 · Cited by 261 · cited 1×
“The enhanced data features used have been studied in the security domain [1, 2].”
MethodSelf-citationDisclosure: detecting botnet command and control servers through large-scale NetFlow analysis
Bilge, L., Balzarotti, D., Robertson, W., Kirda, E., & Kruegel, C. (2012) · Proceedings of the 28th Annual Computer Security Applications Conference · doi:10.1145/2420950.2420969 · Cited by 251
Deciphering malware’s use of TLS (without decryption)
Anderson, B., Paul, S., & McGrew, D. (2018) · Journal of Computer Virology and Hacking Techniques · doi:10.1007/s11416-017-0306-6 · Cited by 230
Self-citationElliptic Curve Cryptography (ECC) Cipher Suites for Transport Layer Security (TLS)
Blake-Wilson, S., Bolyard, N., Gupta, V., Hawk, C., & Moeller, B. (2006) · doi:10.17487/rfc4492 · Cited by 169
BotFinder: finding bots in network traffic without deep packet inspection
Tegeler, F., Fu, X., Vigna, G., & Kruegel, C. (2012) · Proceedings of the 8th international conference on Emerging networking experiments and technologies · doi:10.1145/2413176.2413217 · Cited by 159 · cited 1×
“Because TLS encrypts many of the application-specific features, therefore making traditional deep packet inspection infeasible, many researchers have utilized side-channel information to make useful inferences on the TLS traffic [38].”
BackgroundInformation Model for IP Flow Information Export (IPFIX)
(2013) · doi:10.17487/rfc7012 · Cited by 58
Enhanced telemetry for encrypted threat analytics
McGrew, D. A., & Anderson, B. (2016) · IEEE International Conference on Network Protocols (ICNP) · doi:10.1109/icnp.2016.7785325 · Cited by 37 · cited 1×
“The enhanced features are less efficient to obtain, but could also be exported by network devices [29].”
BackgroundSelf-citation
Research works printed but not linked: 3
- Battista Biggio , Blaine Nelson , and Pavel Laskov . 2011 . Support Vector Machines Under Adversarial Label Noise Asian Conference on Machine Learning. 97--112 . Battista Biggio, Blaine Nelson, and Pavel Laskov. 2011. Support Vector Machines Under Adversarial Label Noise Asian Conference on Machine Learning. 97--112.
- Christopher Bishop . 2006 . Pattern Recognition . Machine Learning Vol. 128 (2006), 1 -- 58 . Christopher Bishop. 2006. Pattern Recognition. Machine Learning Vol. 128 (2006), 1--58.
- J Michael Butler . 2013. Finding Hidden Threats by Decrypting SSL . SANS Institute ( 2013 ). J Michael Butler. 2013. Finding Hidden Threats by Decrypting SSL. SANS Institute (2013).
Cited by
Rose, S., Borchert, O., Mitchell, S., & Connelly, S. (2020) · doi:10.6028/nist.sp.800-207 · Cited by 1,174
FS-Net: A Flow Sequence Network For Encrypted Traffic Classification
Liu, C., He, L., Xiong, G., Cao, Z., & Li, Z. (2019) · IEEE INFOCOM 2019 - IEEE Conference on Computer Communications · doi:10.1109/infocom.2019.8737507 · Cited by 630
A Survey on Encrypted Network Traffic Analysis Applications, Techniques, and Countermeasures
Papadogiannaki, E., & Ioannidis, S. (2022) · ACM Computing Surveys · doi:10.1145/3457904 · Cited by 281
“[33] Classification with Linear Regression, Logistic Regression, Decision Tree, Random Forest, SVM, Multi-layer Perceptron Accuracy, Classification Time”
BackgroundMethodInfluentialNew Directions in Automated Traffic Analysis
Holland, J., Schmitt, P., Feamster, N., & Mittal, P. (2021) · ACM SIGSAC Conference on Computer and Communications Security (CCS) · doi:10.1145/3460120.3484758 · Cited by 240
“Furthermore, traffic patterns and conditions invariably shift, rendering models and hand-crafted features obsolete [4, 19].”
BackgroundRose, S., Borchert, O., Mitchell, S., & Connelly, S. (2020) · doi:10.6028/nist.sp.800-207-draft2 · Cited by 239
Metadata
- Authors
- Anderson, B., & McGrew, D.
- Affiliations
- Cisco Systems (United States) (US)
- Venue
- Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining
- Publisher
- ACM
- Published
- 2017-08-13
- Pages
- 1723-1732
- OpenAlex
- W2743556905
- Semantic Scholar
- 37453d54ee3d8f65f7b201215b264060456ede10
- Cited by
- 295
- References
- 39
- Citations by year
- 2026: 34 · 2025: 47 · 2024: 38 · 2023: 27 · 2022: 40 · 2021: 46 · 2020: 33 · 2019: 15 · 2018: 12 · 2017: 3
- FWCI
- 12.23
- Type
- conference paper
- Language
- en
- Open access
- closed
- Locations
- ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD) (publishedVersion)
- Funders
- Cisco Systems
- Topics
- Physical Sciences › Computer Science › Software › Advanced Malware Detection Techniques
- Physical Sciences › Computer Science › Computer Networks and Communications › Network Security and Intrusion Detection
- Physical Sciences › Computer Science › Artificial Intelligence › Internet Traffic Analysis and Secure E-voting
- Keywords
- malware detection, network traffic classification, non-stationary data distributions, feature engineering, random forest, linear regression, enterprise network security
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.