基于不确定性量化的可扩展机器学习加密网络流量应用标注方法
Extensible Machine Learning for Encrypted Network Traffic Application Labeling via Uncertainty Quantification
AI总结:
针对加密网络流量ML模型易失效、缺乏不确定性量化的问题,本研究构建了含10个应用VPN加密流量的公开数据集,提出基于相对马氏距离p值校准OOD分数的可扩展ML框架,F1达0.98,可有效识别新流量并适配企业网络。
摘要:
随着加密网络流量日益普及,网络安全分析师开始借助机器学习(ML)技术解析其网络中的流量。然而,当训练集分布外的新型流量出现时,ML模型会逐渐失效。为了在这种动态环境中可靠地适配,ML模型还必须为其预测提供上下文相关的不确定性量化,这一点在网络安全领域尚未得到足够重视。不确定性量化既用于提示模型在标签分配中不确定选择哪个类别,也用于判断流量不太可能属于任何预训练类别。\n我们提出了一个全新的公开网络流量数据集,其中包含由10个应用生成、对应5个应用类别的带标签虚拟专用网络(VPN)加密网络流量。我们还提出了一个ML框架,该框架设计为仅需少量数据即可快速训练,既能提供校准后的预测概率,也能输出可解释的“分布外”(OOD)分数以标记新型流量样本。我们介绍了使用相对马氏距离的p值校准OOD分数的方法。\n我们证明该框架在我们的数据集上F1分数达到0.98,并且通过三类测试验证了其可扩展至企业网络:(1)相似应用的数据测试,(2)现有类别下不同应用流量的测试,(3)全新类别应用流量的测试。该模型能够正确标记不确定的流量,并且在重新训练后可准确纳入新数据。
英文摘要:
With the increasing prevalence of encrypted network traffic, cyber security analysts have been turning to machine learning (ML) techniques to elucidate the traffic on their networks. However, ML models can become stale as new traffic emerges that is outside of the distribution of the training set. In order to reliably adapt in this dynamic environment, ML models must additionally provide contextualized uncertainty quantification to their predictions, which has received little attention in the cyber security domain. Uncertainty quantification is necessary both to signal when the model is uncertain about which class to choose in its label assignment and when the traffic is not likely to belong to any pre-trained classes. We present a new, public dataset of network traffic that includes labeled, Virtual Private Network (VPN)-encrypted network traffic generated by 10 applications and corresponding to 5 application categories. We also present an ML framework that is designed to rapidly train with modest data requirements and provide both calibrated, predictive probabilities as well as an interpretable "out-of-distribution" (OOD) score to flag novel traffic samples. We describe calibrating OOD scores using p-values of the relative Mahalanobis distance. We demonstrate that our framework achieves an F1 score of 0.98 on our dataset and that it can extend to an enterprise network by testing the model: (1) on data from similar applications, (2) on dissimilar application traffic from an existing category, and (3) on application traffic from a new category. The model correctly flags uncertain traffic and, upon retraining, accurately incorporates the new data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。