arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.17246cs.CRcs.LG
收藏

NASimEmu:用于训练可泛化到新场景的智能体的网络攻击模拟器与仿真器

NASimEmu: Network Attack Simulator & Emulator for Training Agents Generalizing to Novel Scenarios

Czech Technical University in Prague(捷克布拉格技术大学)

Jaromír Janisch, Tomáš Pevný, Viliam Lisý

AI总结:

本文提出 NASimEmu 框架,通过共享接口连接增强后的 NASim 模拟器与基于 Vagrant、VirtualBox、Metasploit 的工业级仿真器,训练并验证可迁移到未知网络场景的渗透测试强化学习智能体。

摘要:

当前使用深度强化学习训练攻击性渗透测试智能体的框架,难以培养出在真实场景中表现良好的智能体,原因在于基于模拟的框架存在现实差距,而基于仿真的框架缺乏可扩展性。此外,现有框架通常采用不切实际的指标,仅衡量智能体在训练数据上的表现。本文提出的新框架 NASimEmu 通过提供共享接口的模拟器和仿真器解决了这些问题。该方法允许智能体在模拟中训练并部署到仿真器中,从而验证所用抽象的真实性。我们的框架促进了通用智能体的开发,使其能够迁移到训练期间未见过的新场景。在模拟部分,我们采用现有模拟器 NASim 并增强其真实性。仿真器使用 Vagrant、VirtualBox 和 Metasploit 等工业级工具实现。实验表明,在模拟中训练的智能体可以部署到仿真环境中,并且我们展示了如何使用该框架训练可迁移到全新的、结构不同的场景中的通用智能体。NASimEmu 以开源形式提供。

英文摘要:

Current frameworks for training offensive penetration testing agents with deep reinforcement learning struggle to produce agents that perform well in real-world scenarios, due to the reality gap in simulation-based frameworks and the lack of scalability in emulation-based frameworks. Additionally, existing frameworks often use an unrealistic metric that measures the agents' performance on the training data. NASimEmu, a new framework introduced in this paper, addresses these issues by providing both a simulator and an emulator with a shared interface. This approach allows agents to be trained in simulation and deployed in the emulator, thus verifying the realism of the used abstraction. Our framework promotes the development of general agents that can transfer to novel scenarios unseen during their training. For the simulation part, we adopt an existing simulator NASim and enhance its realism. The emulator is implemented with industry-level tools, such as Vagrant, VirtualBox, and Metasploit. Experiments demonstrate that a simulation-trained agent can be deployed in emulation, and we show how to use the framework to train a general agent that transfers into novel, structurally different scenarios. NASimEmu is available as open-source.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑