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.
Modeling Penetration Testing with Reinforcement Learning Using Capture-the-Flag Challenges: Trade-offs between Model-free Learning and A Priori Knowledge
渗透测试是一种通过生成和执行可能的攻击来评估网络安全的方法。这样做可以自动进行定期和系统的测试,而无需大量的人力。一个关键问题是如何产生攻击。这自然是一个规划问题。以前的工作(Lucangeli et al. 2010)使用经典规划,因此忽略了所有黑客特有的不完整知识。最近的工作(Sarraute等人,2011)为了扩展而做出了强有力的独立性假设,并且缺乏关于攻击规划问题实际上是什么的明确的正式概念。在这里,我们模型的部分可观察马尔可夫决策过程(POMDP)的问题。这是渗透测试在一个良好的研究形式主义的基础,突出了这个问题的性质的重要方面。POMDPs允许将信息收集建模为问题的一个组成部分,从而首次提供了一种智能地将扫描操作与实际利用混合在一起的方法。
Evaluation of Reinforcement Learning for Autonomous Penetration Testing using A3C, Q-learning and DQN
German Research Center for Artificial Intelligence (DFKI)(德国人工智能研究中心);OPS-GDA, ESA-ESOC(欧洲空间操作中心(ESA-ESOC)OPS-GDA部门);Technische Universität Kaiserslautern(凯泽斯劳滕工业大学)
Learning Robust Penetration Testing Policies under Partial Observability: A systematic evaluation
Cyber Defence Lab, CISS Department Royal Military Academy(国防网络安全实验室,信息与系统科学系皇家军事学院);AI Lab, Department of Computer Science Vrije Universiteit Brussel(人工智能实验室,计算机科学系自由大学布鲁塞尔)
Mind the Gap: Towards Generalizable Autonomous Penetration Testing via Domain Randomization and Meta-Reinforcement Learning
College of Electronic Engineering, National University of Defense Technology(国防科技大学电子工程学院);Beijing National Research Center for Information Science and Technology, Tsinghua University(清华大学北京信息科学与技术国家研究中心);College of Computer Science and Technology, National University of Defense Technology(国防科技大学计算机学院)
Pentest-R1: Towards Autonomous Penetration Testing Reasoning Optimized via Two-Stage Reinforcement Learning
State Key Laboratory of Cyberspace Security Defense, Institute of Information Engineering, Chinese Academy of Sciences(中国科学院网络空间安全防御重点实验室,信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络与安全学院)
AutoPT: How Far Are We from the End2End Automated Web Penetration Testing?
University of Science and Technology of China(中国科学技术大学);QI-ANXIN Technology Research Institute(奇安信技术研究院);Chaitin Future Technology Co., Ltd(观想未来科技有限公司)
Guided Reasoning in LLM-Driven Penetration Testing Using Structured Attack Trees
Department of Electrical and Computer Engineering, Rochester Institute of Technology(罗切斯特理工学院电子与计算机工程系);Institute for Informatics and Applied Technology, Gonzaga University(贡萨加大学信息学与应用技术研究所)
PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Design
School of Computing and Information Systems, Singapore Management University(计算与信息系统学院,新加坡国立管理大学);School of Computer Science and Engineering, Nanyang Technological University(计算机科学与工程学院,南洋理工大学);School of Cyber Security, Tianjin University(网络安全学院,天津大学)