LLMs as Hackers: Autonomous Linux Privilege Escalation Attacks
Not on the map. Why?
Abstract (arXiv)
Penetration-testing is crucial for identifying system vulnerabilities, with privilege-escalation being a critical subtask to gain elevated access to protected resources. Language Models (LLMs) presents new avenues for automating these security practices by emulating human behavior. However, a comprehensive understanding of LLMs' efficacy and limitations in performing autonomous Linux privilege-escalation attacks remains under-explored. To address this gap, we introduce hackingBuddyGPT, a fully automated LLM-driven prototype designed for autonomous Linux privilege-escalation. We curated a novel, publicly available Linux privilege-escalation benchmark, enabling controlled and reproducible evaluation. Our empirical analysis assesses the quantitative success rates and qualitative operational behaviors of various LLMs -- GPT-3.5-Turbo, GPT-4-Turbo, and Llama3 -- against baselines of human professional pen-testers and traditional automated tools. We investigate the impact of context management strategies, different context sizes, and various high-level guidance mechanisms on LLM performance. Results show that GPT-4-Turbo demonstrates high efficacy, successfully exploiting 33-83% of vulnerabilities, a performance comparable to human pen-testers (75%). In contrast, local models like Llama3 exhibited limited success (0-33%), and GPT-3.5-Turbo achieved moderate rates (16-50%). We show that both high-level guidance and state-management through LLM-driven reflection significantly boost LLM success rates. Qualitative analysis reveals both LLMs' strengths and weaknesses in generating valid commands and highlights challenges in common-sense reasoning, error handling, and multi-step exploitation, particularly with temporal dependencies. Cost analysis indicates that GPT-4-Turbo can achieve human-comparable performance at competitive costs, especially with optimized context management.
Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Builds on 24 of its 92 references that are in the map. First posted on arXiv 17 Oct 2023.
Builds on
24 of 92 references.
References · 24
- 2017Attention Is All You Needcited by 59,932
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
- 2023A Survey of Large Language Modelscited by 2,537
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
- 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 550
- 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 439
12 more
- 2023Better Zero-Shot Reasoning with Role-Play Promptingcited by 220
- 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
- 2023From ChatGPT to ThreatGPT: Impact of Generative AI in Cybersecurity and Privacycited by 137
- 2022Language Models as Agent Modelscited by 131
- 2023Language Models Implement Simple Word2Vec-style Vector Arithmeticcited by 97
- 2023PentestGPT: An LLM-empowered Automatic Penetration Testing Toolcited by 94
- 2023Getting pwn'd by AI: Penetration Testing with Large Language Modelscited by 82
- 2023Dynamic Planning with a LLMcited by 60
- 2023Benchmarks for Automated Commonsense Reasoning: A Surveycited by 40
- 2022CPL: Counterfactual Prompt Learning for Vision and Language Modelscited by 18
- 2023DarkBERT: A Language Model for the Dark Side of the Internetcited by 13
- 2023Understanding Hackers' Work: An Empirical Study of Offensive Security Practitionerscited by 8
Built on by
Citing papers per year: 2023: 1; 2024: 5; 2025: 9; 2026: 10.
25 papers.
Sort:
By area:
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2024AutoAttacker: A Large Language Model Guided System to Implement Automatic Cyber-attackscited by 94
- 2025VulnBot: Autonomous Penetration Testing for A Multi-Agent Collaborative Frameworkcited by 30
- 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
- 2025Benchmarking Practices in LLM-driven Offensive Security: Testbeds, Metrics, and Experiment Designcited by 13
- 2025OCCULT: Evaluating Large Language Models for Offensive Cyber Operation Capabilitiescited by 12
- 2024Towards Automated Penetration Testing: Introducing LLM Benchmark, Analysis, and Improvementscited by 11
- 2025AutoPentest: Enhancing Vulnerability Management With Autonomous LLM Agentscited by 8
- 2024AutoPT: How Far Are We from the End2End Automated Web Penetration Testing?cited by 7
- 2024CIPHER: Cybersecurity Intelligent Penetration-testing Helper for Ethical Researchercited by 6
- 2024Artificial Intelligence as the New Hacker: Developing Agents for Offensive Securitycited by 4
- 2025Generative AI for Internet of Things Security: Challenges and Opportunitiescited by 1
13 more
- 2026Scaling Trends for Multi-Hop Contextual Reasoning in Mid-Scale Language Modelscited by 1
- 2026Towards Reliable Local Security Agents: Verifiable Post-Training for Linux Privilege Escalationcited by 1
- 2026CritBench: A Framework for Evaluating Cybersecurity Capabilities of Large Language Models in IEC 61850 Digital Substation Environmentscited by 1
- 2026Enhancing Linux Privilege Escalation Attack Capabilities of Local LLM Agentscited by 1
- 2026The Ethics of Autonomous AI Agents for Offensive Securitycited by 1
- 2026Trident : How to Break Deep Reinforcement Learning Cyber Defenses (Agentic)cited by 1
- 2026Beyond End-to-End Success: Diagnosing Failures in Long-Horizon Security LLM Agentscited by 1
- 2025Recognition Without Mitigation: Ethical Frameworks in Autonomous Offensive-LLM Agent Researchcited by 0
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniquescited by 0
- 2025Breaking Android with AI: A Deep Dive into LLM-Powered Exploitationcited by 0
- 2026APIOT: Autonomous Vulnerability Management Across Bare-Metal Industrial OT Networkscited by 0
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectivescited by 0
- 2026Inference-Engine Fingerprinting Attacks are Practical: Exploring Model-Driven Environmental Discovery, Exploitation, and Escapecited by 0
- 2026Inference-Engine Fingerprinting Attacks are Practical: Exploring Model-Driven Environmental Discovery, Exploitation, and Escape17 Sep 2026
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectives15 Sep 2026
- 2026Beyond End-to-End Success: Diagnosing Failures in Long-Horizon Security LLM Agents20 Aug 2026
- 2026Trident : How to Break Deep Reinforcement Learning Cyber Defenses (Agentic)5 Aug 2026
- 2026The Ethics of Autonomous AI Agents for Offensive Security22 Jul 2026
- 2026APIOT: Autonomous Vulnerability Management Across Bare-Metal Industrial OT Networks4 May 2026
- 2026Enhancing Linux Privilege Escalation Attack Capabilities of Local LLM Agents29 Apr 2026
- 2026CritBench: A Framework for Evaluating Cybersecurity Capabilities of Large Language Models in IEC 61850 Digital Substation Environments7 Apr 2026
- 2026Towards Reliable Local Security Agents: Verifiable Post-Training for Linux Privilege Escalation18 Mar 2026
- 2026Scaling Trends for Multi-Hop Contextual Reasoning in Mid-Scale Language Models6 Jan 2026
- 2025Breaking Android with AI: A Deep Dive into LLM-Powered Exploitation9 Sep 2025
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniques18 Jul 2025
13 more
- 2025Recognition Without Mitigation: Ethical Frameworks in Autonomous Offensive-LLM Agent Research10 Jun 2025
- 2025AutoPentest: Enhancing Vulnerability Management With Autonomous LLM Agents15 May 2025
- 2025Benchmarking Practices in LLM-driven Offensive Security: Testbeds, Metrics, and Experiment Design14 Apr 2025
- 2025Frontier AI's Impact on the Cybersecurity Landscape7 Apr 2025
- 2025OCCULT: Evaluating Large Language Models for Offensive Cyber Operation Capabilities18 Feb 2025
- 2025Generative AI for Internet of Things Security: Challenges and Opportunities13 Feb 2025
- 2025VulnBot: Autonomous Penetration Testing for A Multi-Agent Collaborative Framework23 Jan 2025
- 2024AutoPT: How Far Are We from the End2End Automated Web Penetration Testing?2 Nov 2024
- 2024Towards Automated Penetration Testing: Introducing LLM Benchmark, Analysis, and Improvements22 Oct 2024
- 2024CIPHER: Cybersecurity Intelligent Penetration-testing Helper for Ethical Researcher21 Aug 2024
- 2024Artificial Intelligence as the New Hacker: Developing Agents for Offensive Security9 May 2024
- 2024AutoAttacker: A Large Language Model Guided System to Implement Automatic Cyber-attacks2 Mar 2024
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Ugly4 Dec 2023
- 2025VulnBot: Autonomous Penetration Testing for A Multi-Agent Collaborative Frameworkcited by 30
- 2025AutoPentest: Enhancing Vulnerability Management With Autonomous LLM Agentscited by 8
- 2024Artificial Intelligence as the New Hacker: Developing Agents for Offensive Securitycited by 4
- 2026Towards Reliable Local Security Agents: Verifiable Post-Training for Linux Privilege Escalationcited by 1
- 2026Enhancing Linux Privilege Escalation Attack Capabilities of Local LLM Agentscited by 1
- 2026The Ethics of Autonomous AI Agents for Offensive Securitycited by 1
- 2026Trident : How to Break Deep Reinforcement Learning Cyber Defenses (Agentic)cited by 1
- 2026Beyond End-to-End Success: Diagnosing Failures in Long-Horizon Security LLM Agentscited by 1
- 2025Recognition Without Mitigation: Ethical Frameworks in Autonomous Offensive-LLM Agent Researchcited by 0
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectivescited by 0
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectives15 Sep 2026
- 2026Beyond End-to-End Success: Diagnosing Failures in Long-Horizon Security LLM Agents20 Aug 2026
- 2026Trident : How to Break Deep Reinforcement Learning Cyber Defenses (Agentic)5 Aug 2026
- 2026The Ethics of Autonomous AI Agents for Offensive Security22 Jul 2026
- 2026Enhancing Linux Privilege Escalation Attack Capabilities of Local LLM Agents29 Apr 2026
- 2026Towards Reliable Local Security Agents: Verifiable Post-Training for Linux Privilege Escalation18 Mar 2026
- 2025Recognition Without Mitigation: Ethical Frameworks in Autonomous Offensive-LLM Agent Research10 Jun 2025
- 2025AutoPentest: Enhancing Vulnerability Management With Autonomous LLM Agents15 May 2025
- 2025VulnBot: Autonomous Penetration Testing for A Multi-Agent Collaborative Framework23 Jan 2025
- 2024Artificial Intelligence as the New Hacker: Developing Agents for Offensive Security9 May 2024
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2024AutoAttacker: A Large Language Model Guided System to Implement Automatic Cyber-attackscited by 94
- 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
- 2025Benchmarking Practices in LLM-driven Offensive Security: Testbeds, Metrics, and Experiment Designcited by 13
- 2025OCCULT: Evaluating Large Language Models for Offensive Cyber Operation Capabilitiescited by 12
- 2024Towards Automated Penetration Testing: Introducing LLM Benchmark, Analysis, and Improvementscited by 11
- 2024AutoPT: How Far Are We from the End2End Automated Web Penetration Testing?cited by 7
- 2024CIPHER: Cybersecurity Intelligent Penetration-testing Helper for Ethical Researchercited by 6
- 2025Generative AI for Internet of Things Security: Challenges and Opportunitiescited by 1
- 2026CritBench: A Framework for Evaluating Cybersecurity Capabilities of Large Language Models in IEC 61850 Digital Substation Environmentscited by 1
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniquescited by 0
- 2025Breaking Android with AI: A Deep Dive into LLM-Powered Exploitationcited by 0
12 most cited of 14 All 14 (JSON)
- 2026Inference-Engine Fingerprinting Attacks are Practical: Exploring Model-Driven Environmental Discovery, Exploitation, and Escape17 Sep 2026
- 2026APIOT: Autonomous Vulnerability Management Across Bare-Metal Industrial OT Networks4 May 2026
- 2026CritBench: A Framework for Evaluating Cybersecurity Capabilities of Large Language Models in IEC 61850 Digital Substation Environments7 Apr 2026
- 2025Breaking Android with AI: A Deep Dive into LLM-Powered Exploitation9 Sep 2025
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniques18 Jul 2025
- 2025Benchmarking Practices in LLM-driven Offensive Security: Testbeds, Metrics, and Experiment Design14 Apr 2025
- 2025Frontier AI's Impact on the Cybersecurity Landscape7 Apr 2025
- 2025OCCULT: Evaluating Large Language Models for Offensive Cyber Operation Capabilities18 Feb 2025
- 2025Generative AI for Internet of Things Security: Challenges and Opportunities13 Feb 2025
- 2024AutoPT: How Far Are We from the End2End Automated Web Penetration Testing?2 Nov 2024
- 2024Towards Automated Penetration Testing: Introducing LLM Benchmark, Analysis, and Improvements22 Oct 2024
- 2024CIPHER: Cybersecurity Intelligent Penetration-testing Helper for Ethical Researcher21 Aug 2024
12 newest of 14 All 14 (JSON)