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

基于强化学习的自主渗透测试

Autonomous Penetration Testing using Reinforcement Learning

University of Queensland(昆士兰大学)

Jonathon Schwartz, Hanna Kurniawati

摘要:

渗透测试涉及对计算机系统进行受控攻击,以评估其安全性。虽然渗透测试是一种有效的安全测试方法,但它需要高度熟练的从业人员,目前熟练的网络安全专业人员越来越短缺。缓解此问题的一个途径是使用人工智能技术自动化渗透测试过程。目前的自动渗透测试方法依赖于基于模型的规划,但是网络安全环境正在迅速变化,这使得维护最新的漏洞模型成为一项挑战。本计画探讨无模型强化学习在自动渗透测试中的应用。与基于模型的规划相比,无模型强化学习具有关键优势,即不需要环境模型,而是通过与环境的交互来学习最佳策略。我们首先设计并构建了一个快速,低计算模拟器,用于训练和测试自主渗透代理。我们通过将渗透测试作为马尔可夫决策过程来实现这一点,其中已知的网络配置作为状态,可用的扫描和利用作为动作,奖励由网络上机器的价值决定。然后,我们使用这个模拟器来研究无模型强化学习在渗透测试中的应用。我们测试了标准的Q-学习算法使用表格和神经网络的实现。我们发现,在模拟环境中,表格和神经网络实现都能够找到一系列不同网络拓扑和大小的最佳攻击路径,而无需动作行为模型。然而,所实现的算法仅适用于较小的网络和动作数量。需要进一步的工作来开发可扩展的RL算法,并在更大和更高保真的环境中测试这些算法。

英文摘要:

Penetration testing (pentesting) involves performing a controlled attack on a computer system in order to assess it's security. Although an effective method for testing security, pentesting requires highly skilled practitioners and currently there is a growing shortage of skilled cyber security professionals. One avenue for alleviating this problem is automate the pentesting process using artificial intelligence techniques. Current approaches to automated pentesting have relied on model-based planning, however the cyber security landscape is rapidly changing making maintaining up-to-date models of exploits a challenge. This project investigated the application of model-free Reinforcement Learning (RL) to automated pentesting. Model-free RL has the key advantage over model-based planning of not requiring a model of the environment, instead learning the best policy through interaction with the environment. We first designed and built a fast, low compute simulator for training and testing autonomous pentesting agents. We did this by framing pentesting as a Markov Decision Process with the known configuration of the network as states, the available scans and exploits as actions, the reward determined by the value of machines on the network. We then used this simulator to investigate the application of model-free RL to pentesting. We tested the standard Q-learning algorithm using both tabular and neural network based implementations. We found that within the simulated environment both tabular and neural network implementations were able to find optimal attack paths for a range of different network topologies and sizes without having a model of action behaviour. However, the implemented algorithms were only practical for smaller networks and numbers of actions. Further work is needed in developing scalable RL algorithms and testing these algorithms in larger and higher fidelity environments.

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

↑