對抗式防禦基於機器學習的控制區域網入侵檢測系統:距離最佳化、對抗式訓練、以及集成學習
Adversarial Defense in ML-based CAN IDS: Distance-based Optimization with Adversarial Training and Ensemble
摘要
本研究著重於提升控制區域網路(CAN)的安全性,因為目前其缺乏足夠的防禦機制。我們提出將基於機器學習的入侵檢測系統(ML-based IDS)整合到網路中,以解決這一漏洞。然而,機器學習系統容易受到對抗性攻擊,導致數據被錯誤分類。為了減少這一風險,我們引入了三種防禦組合方法:對抗訓練、集成學習和基於距離的優化。此外,我們在距離最佳化中採用模擬退火算法,以優化特徵空間中的移動距離,目的在於最小化類內距離以及最大化類間距離。我們的研究結果顯示,ZOO 攻擊是最強大的對抗性攻擊,顯著影響了模型性能。在模型方面,基本模型達到平均0.99的F1分數,其中CNN在對抗性攻擊中最為穩健。在遭受已知的對抗性攻擊下,平均F1分數降至0.56。使用三元組損失的對抗式訓練效果不佳,僅達到0.64,而我們的防禦方法達到了最高的F1分數0.97。對於未知的對抗性攻擊,F1分數下降至0.24,使用三元組損失的對抗式訓練達到0.47。我們的防禦方法仍然達到最高分數0.61。這些結果展示了我們的方法在零日對抗式攻擊時的卓越性能。
This paper focuses on enhancing the security of Control Area Networks (CAN), which currently lack adequate defense mechanisms. We propose integrating Machine Learning-based Intrusion Detection Systems (ML-based IDS) into the network to address this vulnerability. However, ML systems are susceptible to adversarial attacks, leading to misclassification of data. We introduce three defense combination methods to mitigate this risk: adversarial training, ensemble learning, and distance-based optimization. Additionally, we employ a simulated annealing algorithm in distance-based optimization to optimize the distance moved in feature space, aiming to minimize intra-class distance and maximize the inter-class distance. Our results show that the ZOO attack is the most potent adversarial attack, significantly impacting model performance. In terms of model, the basic models achieve an F1 score of 0.99, with CNN being the most robust against adversarial attacks. Under known adversarial attacks, the average F1 score decreases to 0.56. Adversarial training with triplet loss does not perform well, achieving only 0.64, while our defense method attains the highest F1 score of 0.97. For unknown adversarial attacks, the F1 score drops to 0.24, with adversarial training with triplet loss scoring 0.47. Our defense method still achieves the highest score of 0.61. These results demonstrate our method's excellent performance against known and unknown adversarial attacks.