mlsanityData to 7 Oct 2026

LLMs as Hackers: Autonomous Linux Privilege Escalation Attacks

arXiv 2310.11409 ↗First posted 17 Oct 2023cs.CR cs.AIcited by 25

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  4. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  5. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  6. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  7. 2023A Survey of Large Language Modelscited by 2,537
  8. 2022Emergent Abilities of Large Language Modelscited by 2,483
  9. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
  10. 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
  11. 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 550
  12. 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 439
12 more
  1. 2023Better Zero-Shot Reasoning with Role-Play Promptingcited by 220
  2. 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
  3. 2023From ChatGPT to ThreatGPT: Impact of Generative AI in Cybersecurity and Privacycited by 137
  4. 2022Language Models as Agent Modelscited by 131
  5. 2023Language Models Implement Simple Word2Vec-style Vector Arithmeticcited by 97
  6. 2023PentestGPT: An LLM-empowered Automatic Penetration Testing Toolcited by 94
  7. 2023Getting pwn'd by AI: Penetration Testing with Large Language Modelscited by 82
  8. 2023Dynamic Planning with a LLMcited by 60
  9. 2023Benchmarks for Automated Commonsense Reasoning: A Surveycited by 40
  10. 2022CPL: Counterfactual Prompt Learning for Vision and Language Modelscited by 18
  11. 2023DarkBERT: A Language Model for the Dark Side of the Internetcited by 13
  12. 2023Understanding Hackers' Work: An Empirical Study of Offensive Security Practitionerscited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 5; 2025: 9; 2026: 10.

25 papers.

Sort:

By area:

  1. 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
  2. 2024AutoAttacker: A Large Language Model Guided System to Implement Automatic Cyber-attackscited by 94
  3. 2025VulnBot: Autonomous Penetration Testing for A Multi-Agent Collaborative Frameworkcited by 30
  4. 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
  5. 2025Benchmarking Practices in LLM-driven Offensive Security: Testbeds, Metrics, and Experiment Designcited by 13
  6. 2025OCCULT: Evaluating Large Language Models for Offensive Cyber Operation Capabilitiescited by 12
  7. 2024Towards Automated Penetration Testing: Introducing LLM Benchmark, Analysis, and Improvementscited by 11
  8. 2025AutoPentest: Enhancing Vulnerability Management With Autonomous LLM Agentscited by 8
  9. 2024AutoPT: How Far Are We from the End2End Automated Web Penetration Testing?cited by 7
  10. 2024CIPHER: Cybersecurity Intelligent Penetration-testing Helper for Ethical Researchercited by 6
  11. 2024Artificial Intelligence as the New Hacker: Developing Agents for Offensive Securitycited by 4
  12. 2025Generative AI for Internet of Things Security: Challenges and Opportunitiescited by 1
13 more
  1. 2026Scaling Trends for Multi-Hop Contextual Reasoning in Mid-Scale Language Modelscited by 1
  2. 2026Towards Reliable Local Security Agents: Verifiable Post-Training for Linux Privilege Escalationcited by 1
  3. 2026CritBench: A Framework for Evaluating Cybersecurity Capabilities of Large Language Models in IEC 61850 Digital Substation Environmentscited by 1
  4. 2026Enhancing Linux Privilege Escalation Attack Capabilities of Local LLM Agentscited by 1
  5. 2026The Ethics of Autonomous AI Agents for Offensive Securitycited by 1
  6. 2026Trident : How to Break Deep Reinforcement Learning Cyber Defenses (Agentic)cited by 1
  7. 2026Beyond End-to-End Success: Diagnosing Failures in Long-Horizon Security LLM Agentscited by 1
  8. 2025Recognition Without Mitigation: Ethical Frameworks in Autonomous Offensive-LLM Agent Researchcited by 0
  9. 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniquescited by 0
  10. 2025Breaking Android with AI: A Deep Dive into LLM-Powered Exploitationcited by 0
  11. 2026APIOT: Autonomous Vulnerability Management Across Bare-Metal Industrial OT Networkscited by 0
  12. 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectivescited by 0
  13. 2026Inference-Engine Fingerprinting Attacks are Practical: Exploring Model-Driven Environmental Discovery, Exploitation, and Escapecited by 0