[论文解读] Training Automated Defense Strategies Using Graph-based Cyber Attack Simulations
本文提出了一种基于强化学习(RL)的自动化网络防御代理,该代理使用基于图的攻击仿真来学习最优防御策略。在使用元攻击语言(MAL)建模的、具有不完善入侵检测系统(IDS)警报的攻击图上进行训练后,该代理在性能上优于启发式策略,并能跨不同攻击者策略进行泛化,尽管在更大的攻击图上性能有所下降。
We implemented and evaluated an automated cyber defense agent. The agent takes security alerts as input and uses reinforcement learning to learn a policy for executing predefined defensive measures. The defender policies were trained in an environment intended to simulate a cyber attack. In the simulation, an attacking agent attempts to capture targets in the environment, while the defender attempts to protect them by enabling defenses. The environment was modeled using attack graphs based on the Meta Attack Language language. We assumed that defensive measures have downtime costs, meaning that the defender agent was penalized for using them. We also assumed that the environment was equipped with an imperfect intrusion detection system that occasionally produces erroneous alerts based on the environment state. To evaluate the setup, we trained the defensive agent with different volumes of intrusion detection system noise. We also trained agents with different attacker strategies and graph sizes. In experiments, the defensive agent using policies trained with reinforcement learning outperformed agents using heuristic policies. Experiments also demonstrated that the policies could generalize across different attacker strategies. However, the performance of the learned policies decreased as the attack graphs increased in size.
研究动机与目标
- 开发一种自动化网络防御代理,通过在模拟环境中使用强化学习学习最优防御策略。
- 评估代理在不同水平的IDS噪声下的性能,以模拟现实世界中的检测不准确性。
- 评估RL训练策略在不同攻击者策略和攻击图大小下的泛化能力。
- 研究将策略从模拟环境迁移到真实世界部署(模拟到现实迁移)的可行性。
提出的方法
- 使用元攻击语言(MAL)生成的攻击图对网络攻击进行建模,以表示系统漏洞和攻击路径。
- 模拟防御者代理的交互过程,其中防御者根据IDS警报使用预定义的防御措施(例如,启用防火墙)。
- 使用基于目标保护和防御停机成本的稀疏奖励,通过强化学习训练深度Q网络(DQN)或PPO策略。
- 通过注入误报和漏报来模拟现实世界检测不确定性,从而引入不完善的IDS行为。
- 使用节点级特征(例如,可利用性、系统状态)表示环境状态,而不显式输入图拓扑结构。
- 在不同图大小下使用固定的一组超参数,以评估可扩展性和策略鲁棒性。
实验结果
研究问题
- RQ1在现实世界IDS噪声条件下,基于RL的防御者代理是否能优于启发式防御策略?
- RQ2RL训练的策略在未在训练中出现过的新型攻击者策略上泛化效果如何?
- RQ3随着攻击图规模的增大,RL策略的性能和训练稳定性如何变化?
- RQ4不完善的IDS信号(误报和漏报)对所学防御策略的有效性有何影响?
- RQ5在模拟环境中训练的策略在多大程度上可成功迁移到真实世界网络环境中?
主要发现
- 基于RL的防御者代理在保护目标方面优于启发式策略,尤其在高IDS噪声条件下,表现出对误报和漏报更强的鲁棒性。
- RL策略能有效泛化到不同的攻击者策略,包括训练期间未见过的策略,表明其对敌手行为变化具有鲁棒性。
- 随着攻击图规模增大,RL策略的性能下降,表现为episode长度变长,动作选择的随机性增加,导致策略可靠性降低。
- 由于状态表示缺乏结构不变性,且依赖于固定的图结构,该策略无法在不同图拓扑间泛化。
- 在不同图大小下使用单一超参数集表明其适应能力有限,未来工作可能需要引入图神经网络以实现结构泛化。
- 模拟到现实的差距仍是关键挑战,将模拟环境中训练的策略迁移到真实世界警报模式时,性能可能显著下降。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。