Can LLMs Hack Enterprise Networks? Autonomous Assumed Breach Penetration-Testing Active Directory Networks
The DOI matches its Crossref record; 12 of the 12 references it cites were found in a registry or an index.
Abstract
Traditional enterprise penetration-testing, while critical for validating defenses and uncovering vulnerabilities, is often limited by high operational costs and the scarcity of human expertise. This article investigates the feasibility and effectiveness of using Large Language Model (LLM)-driven autonomous systems to address these challenges in real-world Active Directory (AD) enterprise networks. We introduce a novel prototype, cochise , designed to employ LLMs to autonomously perform Assumed Breach penetration-testing against enterprise networks. Our system represents the first demonstration of a fully autonomous, LLM-driven framework capable of compromising accounts within a real-life Microsoft Active Directory testbed, the Game of Active Directory (GOAD). The evaluation deliberately utilizes GOAD to capture the intricate interactions and sometimes nondeterministic outcomes of live network penetration-testing, moving beyond the limitations of synthetic benchmarks. We perform our empirical evaluation using five LLMs, comparing reasoning to non-reasoning models as well as including open-weight models. Through comprehensive quantitative and qualitative analysis, incorporating insights from cybersecurity experts, we demonstrate that autonomous LLMs can effectively conduct Assumed Breach simulations. Key findings highlight their ability to dynamically adapt attack strategies, perform inter-context attacks (e.g., web application audits, social engineering, and unstructured data analysis for credentials), and generate scenario-specific attack parameters like realistic password candidates. The prototype also exhibits robust self-correction mechanisms, automatically installing missing tools and rectifying invalid command generations. Critically, we find that the associated costs are competitive with, and often significantly lower than, those incurred by professional human penetration testers, suggesting a path toward democratizing access to essential security testing for organizations with budgetary constraints. However, our research also illuminates existing limitations, including instances of LLM “going down rabbit holes,” challenges in comprehensive information transfer between planning and execution modules, and critical safety concerns that necessitate human oversight. Our findings lay foundational groundwork for future software engineering research into LLM-driven cybersecurity automation, emphasizing that the prototype’s underlying LLM-driven architecture and techniques are domain-agnostic and hold promise for improving autonomous LLM usage in broader software engineering domains. The source code, traces, and analyzed logs are open-sourced to foster collective cybersecurity and future research.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Heuristic evaluation of user interfaces
Nielsen, J., & Molich, R. (1990) · Proceedings of the SIGCHI conference on Human factors in computing systems Empowering people - CHI '90 · doi:10.1145/97243.97281 · Cited by 3,533
ReAct: Synergizing Reasoning and Acting in Language Models
Yao, S., Zhao, J., Yu, D., Du, N., Shafran, I., Narasimhan, K., & Cao, Y. (2022) · arXiv · doi:10.48550/arxiv.2210.03629 · Cited by 608
Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Models
Wang, L., Xu, W., Lan, Y., Hu, Z., Lan, Y., Lee, R. K.-W., & Lim, E.-P. (2023) · Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2023.acl-long.147 · Cited by 344
Getting pwn’d by AI: Penetration Testing with Large Language Models
Happe, A., & Cito, J. (2023) · Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3611643.3613083 · Cited by 144
Self-citationShojaee, P., Mirzadeh, I., Alizadeh, K., Horton, M., Bengio, S., & Farajtabar, M. (2025) · arXiv · doi:10.48550/arxiv.2506.06941 · Cited by 45
PentestGPT: An LLM-empowered Automatic Penetration Testing Tool
Deng, G., Liu, Y., Mayoral-Vilches, V., Liu, P., Li, Y., Xu, Y., Zhang, T., Liu, Y., Pinzger, M., & Rass, S. (2023) · arXiv · doi:10.48550/arxiv.2308.06782 · Cited by 37
LLM Agents can Autonomously Exploit One-day Vulnerabilities
Fang, R., Bindu, R., Gupta, A., & Kang, D. (2024) · arXiv · doi:10.48550/arxiv.2404.08144 · Cited by 26
PenHeal: A Two-Stage LLM Framework for Automated Pentesting and Optimal Remediation
Huang, J., & Zhu, Q. (2023) · Proceedings of the Workshop on Autonomous Cybersecurity · doi:10.1145/3689933.3690831 · Cited by 25
NYU CTF Bench: A Scalable Open-Source Benchmark Dataset for Evaluating LLMs in Offensive Security
Shao, M., Jancheska, S., Udeshi, M., Dolan-Gavitt, B., Xi, H., Milner, K., Chen, B., Yin, M., Garg, S., Krishnamurthy, P., et al. (2024) · arXiv · doi:10.48550/arxiv.2406.05590 · Cited by 18
LLM Agents can Autonomously Hack Websites
Fang, R., Bindu, R., Gupta, A., Zhan, Q., & Kang, D. (2024) · arXiv · doi:10.48550/arxiv.2402.06664 · Cited by 16
Research works printed but not linked: 47
- Ron Alford, Dean Lawrence, and Michael Kouremetis. 2022. Caldera: A Red-Blue Cyber Operations Automation Platform. MITRE, Bedford, MA.
- 10.1109/NCG.2018.8593188 · doi:10.1109/ncg.2018.8593188
- 10.1191/1478088706qp063oa · DOI · Paper page
- Kathy Charmaz. 2006. Constructing Grounded Theory: A Practical Guide through Qualitative Analysis. Sage.
- 10.4324/9781315129945 · DOI
- Richard Fang Rohan Bindu Akul Gupta Qiusi Zhan and Daniel Kang. 2024. Teams of LLM agents can exploit zero-day vulnerabilities. arXiv:2406.01637. Retrieved from https://arxiv.org/abs/2406.01637 · arXiv
- Daya Guo Dejian Yang Haowei Zhang Junxiao Song Ruoyu Zhang Runxin Xu Qihao Zhu Shirong Ma Peiyi Wang Xiao Bi et al. 2025. Deepseek-r1: Incentivizing reasoning capability in LLMs via reinforcement learning. arXiv:2501.12948. Retrieved from https://arxiv.org/abs/2501.12948 · arXiv
- 10.1145/3611643.3613900 · DOI
- Andreas Happe and Jürgen Cito. 2025. Benchmarking practices in LLM-driven offensive security: testbeds metrics and experiment design. arXiv:2504.10112. Retrieved from https://arxiv.org/abs/2504.10112. · arXiv
- Andreas Happe and Jürgen Cito. 2025. On the ethics of using LLMs for offensive security. arXiv:2506.08693. Retrieved from https://arxiv.org/abs/2506.08693 · arXiv
- Andreas Happe Aaron Kaplan and Juergen Cito. 2024. Llms as hackers: Autonomous Linux privilege escalation attacks. arXiv:2310.11409. Retrieved from https://arxiv.org/abs/2310.11409 · arXiv
- 10.1016/j.socscimed.2021.114523 · DOI · Paper page
- Isamu Isozaki Manil Shrestha Rick Console and Edward Kim. 2024. Towards automated penetration testing: Introducing LLM benchmark analysis and improvements. arXiv:2410.17141. Retrieved from https://arxiv.org/abs/2410.17141 · arXiv
- Aaron Jaech Adam Kalai Adam Lerer Adam Richardson Ahmed El-Kishky Aiden Low Alec Helyar Aleksander Madry Alex Beutel Alex Carney et al. 2024. OpenAI O1 system card. arXiv:2412.16720. Retrieved from https://arxiv.org/abs/2412.16720 · arXiv
- 10.1109/ICBATS54253.2022.9759000 · DOI
- 10.1016/j.eswa.2021.116198 · DOI
- 10.1051/e3sconf/202455601006 · DOI
- Robert R. King. 2006. Mastering Active Directory for Windows Server 2003. John Wiley & Sons.
- 10.1109/TSE.2002.1027796 · DOI · Paper page
- Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2022. Large language models are zero-shot reasoners. Advances in Neural Information Processing Systems 35 (2022), 22199–22213.
- He Kong Die Hu Jingguo Ge Liangxiong Li Tong Li and Bingzhen Wu. 2025. VulnBot: Autonomous penetration testing for a multi-agent collaborative framework. arXiv:2501.13411. Retrieved from https://arxiv.org/abs/2501.13411 · arXiv
- Xiaomin Li Zhou Yu Zhiwei Zhang Xupeng Chen Ziji Zhang Yingying Zhuang Narayanan Sadagopan and Anurag Beniwal. 2025. When thinking fails: The pitfalls of reasoning for instruction-following in LLMs. arXiv:2505.11423. Retrieved from https://arxiv.org/abs/2505.11423 · arXiv
- Kamilė Lukošiūtė and Adam Swanda. 2025. LLM cyber evaluations don’t capture real-world risk. arXiv250200072 [csCR]. Retrieved from https://arxiv.org/abs/2502.00072 · arXiv
- Lajos Muzsai David Imolai and András Lukács. 2024. HackSynth: LLM agent and evaluation framework for autonomous penetration testing. arXiv:2412.01778. Retrieved from https://arxiv.org/abs/2412.01778 · arXiv
- 10.1109/ISSE54508.2022.10005490 · doi:10.1109/isse54508.2022.10005490
- Sho Nakatani. 2025. RapidPen: Fully automated IP-to-shell penetration testing with LLM-based agents. arXiv:2502.16730. Retrieved from https://arxiv.org/abs/2502.16730 · arXiv
- Giulio De Pasquale, Ilya Grishchenko, Riccardo Iesari, Gabriel Pizarro, Lorenzo Cavallaro, Christopher Kruegel, and Giovanni Vigna. 2024. ChainReactor: Automated privilege escalation chain discovery via AI planning. In 33rd USENIX Security Symposium (USENIX Security 24). USENIX Association, Philadelphia, PA, 5913–5929. Retrieved from https://www.usenix.org/conference/usenixsecurity24/presentation/de-pasquale
- Ivo Petrov Jasper Dekoninck Lyuben Baltadzhiev Maria Drencheva Kristian Minchev Mislav Balunović Nikola Jovanović and Martin Vechev. 2025. Proof or Bluff? Evaluating LLMs on 2025 USA math olympiad. arXiv:2503.21934. Retrieved from https://arxiv.org/abs/2503.21934 · arXiv
- Pat Rondon Renyao Wei José Cambronero Jürgen Cito Aaron Sun Siddhant Sanyam Michele Tufano and Satish Chandra. 2025. Evaluating agent-based program repair at Google. arXiv:2501.07531. Retrieved from https://arxiv.org/abs/2501.07531 · DOI
- Shanto Roy Emmanouil Panaousis Cameron Noakes Aron Laszka Sakshyam Panda and George Loukas. 2023. SoK: The MITRE ATT&CK framework in research and practice. arXiv:2304.07411. Retrieved from https://arxiv.org/abs/2304.07411 · arXiv
- Carlos Sarraute, Olivier Buffet, and Jörg Hoffmann. 2012. POMDPs make better hackers: Accounting for uncertainty in penetration testing. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 26, 1816–1824.
- Carlos Sarraute Olivier Buffet and Jörg Hoffmann. 2013. Penetration testing== POMDP solving? arXiv:1306.4714. Retrieved from https://arxiv.org/abs/1306.4714 · arXiv
- Minghao Shao Boyuan Chen Sofija Jancheska Brendan Dolan-Gavitt Siddharth Garg Ramesh Karri and Muhammad Shafique. 2024. An empirical evaluation of LLMs for solving offensive security challenges. arXiv:2402.11814. Retrieved from https://arxiv.org/abs/2402.11814 · arXiv
- Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. 2024. Reflexion: Language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems, Vol. 36.
- Brian Singer Keane Lucas Lakshmi Adiga Meghna Jain Lujo Bauer and Vyas Sekar. 2025. On the feasibility of using LLMs to execute multistage network attacks. arXiv:2501.16466. Retrieved from https://arxiv.org/abs/2501.16466 · arXiv
- 10.1109/SP.2010.25 · DOI · Paper page
- V. Stafford. 2020. Zero trust architecture. NIST Special Publication 800, 207 (2020), 800–207.
- Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V. Le, Denny Zhou, et al. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems 35 (2022), 24824–24837.
- Benlong Wu Guoqiang Chen Kejiang Chen Xiuwei Shang Jiapeng Han Yanru He Weiming Zhang and Nenghai Yu. 2024. AutoPT: How far are we from the End2End automated web penetration testing? arXiv:2411.01236. Retrieved from https://arxiv.org/abs/2411.01236 · arXiv
- Siwei Wu Zhongyuan Peng Xinrun Du Tuney Zheng Minghao Liu Jialong Wu Jiachen Ma Yizhi Li Jian Yang Wangchunshu Zhou et al. 2024. A comparative study on reasoning patterns of OpenAI’s o1 model. arXiv:2410.13639. Retrieved from https://arxiv.org/abs/2410.13639 · arXiv
- Jiacen Xu Jack W. Stokes Geoff McDonald Xuesong Bai David Marshall Siyue Wang Adith Swaminathan and Zhou Li. 2024. Autoattacker: A large language model guided system to implement automatic cyber-attacks. arXiv:2403.01038. Retrieved from https://arxiv.org/abs/2403.01038 · arXiv
- An Yang Anfeng Li Baosong Yang Beichen Zhang Binyuan Hui Bo Zheng Bowen Yu Chang Gao Chengen Huang Chenxu Lv et al. 2025. Qwen3 technical report. arXiv:2505.09388. Retrieved from https://arxiv.org/abs/2505.09388 · arXiv
- John Yang Carlos E. Jimenez Alexander Wettig Kilian Lieret Shunyu Yao Karthik Narasimhan and Ofir Press. 2024. Swe-agent: Agent-computer interfaces enable automated software engineering. arXiv:2405.15793. Retrieved from https://arxiv.org/abs/2405.15793 · arXiv
- 10.3724/SP.J.1042.2022.00511 · DOI
- Andy K. Zhang Neil Perry Riya Dulepet Joey Ji Justin W. Lin Eliot Jones Celeste Menders Gashon Hussein Samantha Liu Donovan Jasper et al. 2024. Cybench: A framework for evaluating cybersecurity capabilities and risks of language models. arXiv:2408.08926. Retrieved from https://arxiv.org/abs/2408.08926 · arXiv
- Zhuosheng Zhang Aston Zhang Mu Li and Alex Smola. 2022. Automatic chain of thought prompting in large language models. arXiv:2210.03493. Retrieved from https://arxiv.org/abs/2210.03493 · arXiv
- Tianyang Zhong Zhengliang Liu Yi Pan Yutong Zhang Yifan Zhou Shizhe Liang Zihao Wu Yanjun Lyu Peng Shu Xiaowei Yu et al. 2024. Evaluation of openai o1: Opportunities and challenges of agi. arXiv:2409.18486. Retrieved from https://arxiv.org/abs/2409.18486 · arXiv
Metadata
- Authors
- Happe, A., & Cito, J.
- Venue
- ACM Transactions on Software Engineering and Methodology
- Published
- 2026-05-13
- Volume
- 35
- Issue
- 6
- Pages
- 1-54
- ISSN
- 1049-331X
- 1557-7392
- Cited by
- 17
- References
- 12
- Language
- en
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Can LLMs Hack Enterprise Networks? Autonomous Assumed Breach Penetration-Testing Active Directory Networks. https://app.cochat.ai/papers/10.1145/3766895
- The paper
- Happe, A., & Cito, J. (2026). Can LLMs Hack Enterprise Networks? Autonomous Assumed Breach Penetration-Testing Active Directory Networks. ACM Transactions on Software Engineering and Methodology. https://doi.org/10.1145/3766895
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.