Enhancing Linux Privilege Escalation Attack Capabilities of Local LLM Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Cloud-based Large Language Models (LLMs) can perform autonomous penetration-testing sub-tasks such as Linux privilege escalation, but raise security, privacy, and sovereignty concerns. Locally hosted open-weight models avoid these issues, yet prior work reports that small open-weight models succeed on only 8-16% of standardized privilege-escalation tasks, far below frontier cloud models. This paper is an empirical study of why small models fail at this task and which engineering techniques close the gap. From execution traces we distill six recurring failure modes, map each to an established enhancement technique, and evaluate five (chain-of-thought prompting, retrieval-augmented generation, structured prompting, history compression, and reflective analysis) as reproducible extensions to the open-source hackingBuddyGPT framework. Under a single shared harness and matched conditions, the set of techniques we evaluate raise two SLMs (Llama3.1 8B, Qwen2.5 7B) from 8% to 67% with guidance, matching guided GPT-4o. A larger open-weight reference model (Llama3.1 70B) reaches 83%. A full-factorial ablation shows that reflection-based techniques contribute most and reveals vulnerability discovery, not exploitation, as the main constraint for local models. We report these as transferable lessons for building reliable local offensive agents as well as to inform defenders.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 27 of its 42 references that are in the map. First posted on arXiv 29 Apr 2026.
Builds on
27 of 42 references.
References · 27
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 560
- 2023Zephyr: Direct Distillation of LM Alignmentcited by 506
- 2024To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoningcited by 263
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 131
15 more
- 2024A Comprehensive Survey of Small Language Models in the Era of Large Language Models: Techniques, Enhancements, Applications, Collaboration with LLMs, and Trustworthinesscited by 127
- 2023PentestGPT: An LLM-empowered Automatic Penetration Testing Toolcited by 97
- 2024AutoAttacker: A Large Language Model Guided System to Implement Automatic Cyber-attackscited by 96
- 2023Getting pwn'd by AI: Penetration Testing with Large Language Modelscited by 83
- 2024Fine-Tuned 'Small' LLMs (Still) Significantly Outperform Zero-Shot Generative AI Models in Text Classificationcited by 70
- 2023Enhancing Financial Sentiment Analysis via Retrieval Augmented Large Language Modelscited by 68
- 2024RULE: Reliable Multimodal RAG for Factuality in Medical Vision Language Modelscited by 60
- 2024Finetuning Large Language Models for Vulnerability Detectioncited by 40
- 2024PenHeal: A Two-Stage LLM Framework for Automated Pentesting and Optimal Remediationcited by 30
- 2023LLMs as Hackers: Autonomous Linux Privilege Escalation Attackscited by 27
- 2023Out of the Cage: How Stochastic Parrots Win in Cyber Security Environmentscited by 18
- 2025Can LLMs Hack Enterprise Networks? Autonomous Assumed Breach Penetration-Testing Active Directory Networkscited by 12
- 2024CaseGPT: a case reasoning framework based on language models and retrieval-augmented generationcited by 7
- 2024CIPHER: Cybersecurity Intelligent Penetration-testing Helper for Ethical Researchercited by 6
- 2024Got Root? A Linux Priv-Esc Benchmarkcited by 4
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026The Ethics of Autonomous AI Agents for Offensive Security22 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026PrivEscalate: Measuring and Augmenting the Threat of LLM-Automated Linux Privilege Escalation ↗
- 2026Towards Reliable Local Security Agents: Verifiable Post-Training for Linux Privilege Escalation
- 2025Prompt Flow Integrity to Prevent Privilege Escalation in LLM Agents
- 2025SBASH: a Framework for Designing and Evaluating RAG vs. Prompt-Tuned LLM Honeypots
- 2026Patch-to-PoC: A Systematic Study of Agentic LLM Systems for Linux Kernel N-Day Reproduction
- 2026Systematic Capability Benchmarking of Frontier Large Language Models for Offensive Cyber Tasks
- 2026Taming Various Privilege Escalation in LLM-Based Agent Systems: A Mandatory Access Control Framework
- 2026On Understanding, Identifying, and Mitigating Vulnerabilities in Agentic Large Language Models