[论文解读] Enabling Privacy-Preserving Cyber Threat Detection with Federated Learning
本文提出联邦学习(FL)用于在SMS垃圾短信和Android恶意软件分类中实现隐私保护的网络威胁检测,支持在不共享原始数据的情况下协同模型训练。FL实现的性能与集中式训练相当,对投毒攻击的抵抗能力极强,准确率损失低于0.14%,且自举策略显著提升了非独立同分布(non-IID)场景下的收敛性能。
Despite achieving good performance and wide adoption, machine learning based security detection models (e.g., malware classifiers) are subject to concept drift and evasive evolution of attackers, which renders up-to-date threat data as a necessity. However, due to enforcement of various privacy protection regulations (e.g., GDPR), it is becoming increasingly challenging or even prohibitive for security vendors to collect individual-relevant and privacy-sensitive threat datasets, e.g., SMS spam/non-spam messages from mobile devices. To address such obstacles, this study systematically profiles the (in)feasibility of federated learning for privacy-preserving cyber threat detection in terms of effectiveness, byzantine resilience, and efficiency. This is made possible by the build-up of multiple threat datasets and threat detection models, and more importantly, the design of realistic and security-specific experiments. We evaluate FL on two representative threat detection tasks, namely SMS spam detection and Android malware detection. It shows that FL-trained detection models can achieve a performance that is comparable to centrally trained counterparts. Also, most non-IID data distributions have either minor or negligible impact on the model performance, while a label-based non-IID distribution of a high extent can incur non-negligible fluctuation and delay in FL training. Then, under a realistic threat model, FL turns out to be adversary-resistant to attacks of both data poisoning and model poisoning. Particularly, the attacking impact of a practical data poisoning attack is no more than 0.14\% loss in model accuracy. Regarding FL efficiency, a bootstrapping strategy turns out to be effective to mitigate the training delay as observed in label-based non-IID scenarios.
研究动机与目标
- 解决在GDPR和CCPA等法规下收集隐私敏感威胁数据的挑战。
- 评估联邦学习(FL)在有效性、鲁棒性和效率方面在网络安全威胁检测中的可行性。
- 评估FL在安全特定场景下对现实世界投毒攻击(数据投毒与模型投毒)的韧性。
- 提升在网络安全威胁数据中常见的非独立同分布(non-IID)数据分布下的FL收敛效率。
- 为未来隐私保护威胁检测研究提供可复现的基准,包括数据集与代码。
提出的方法
- 利用历史数据和公开可用来源构建了两个真实的威胁检测数据集:SMS垃圾短信与Android恶意软件。
- 设计了支持跨设备FL的设置,客户端数量为200–500个,以模拟真实世界部署。
- 采用基于标签的非独立同分布(non-IID)数据分布,Dirichlet参数α=1,以建模极端的数据偏移。
- 实施自举策略:在FL微调前,使用公开数据集(如Genome)预训练CNN模型。
- 在包含无目标数据投毒与模型投毒攻击的现实威胁模型下评估FL性能。
- 使用标准指标(准确率、精确率、召回率)和收敛性追踪来评估性能与稳定性。
实验结果
研究问题
- RQ1联邦学习在网络安全威胁检测任务中,能否实现与集中式训练模型相当的性能?
- RQ2非独立同分布(non-IID)数据分布——尤其是基于标签的偏移——如何影响FL在威胁检测中的收敛性与模型准确率?
- RQ3FL在网络安全威胁检测场景下,对现实世界投毒攻击(数据投毒与模型投毒)的韧性如何?
- RQ4自举策略能否缓解极端非独立同分布(non-IID)FL设置下威胁检测任务中的训练延迟与不稳定性?
- RQ5在基于FL的网络安全威胁检测中,通信与计算效率之间存在何种权衡?
主要发现
- 经FL训练的模型性能与集中式训练模型相当,在Genome数据集上预训练后准确率达到98.67%。
- 大多数非独立同分布(non-IID)数据分布对模型性能仅有轻微或可忽略的影响,但基于标签的非独立同分布(α=1)导致明显的训练延迟与波动。
- 在现实世界无目标投毒攻击下,最大准确率损失仅为0.14%,表明具备极强的拜占庭鲁棒性。
- 自举策略在基于标签的非独立同分布(non-IID)场景下显著提升了收敛速度与稳定性,尤其在500个客户端时效果更显著。
- 在未进行预训练的情况下,于保留测试集上训练的模型表现极差(准确率68.71%),凸显了自举策略的价值。
- 本研究已在https://github.com/ChaseSecurity/Fostering_Cyber_Threat_Detection_Through_FL发布代码与数据集,以支持可复现性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。