mlsanityData to 14 Oct 2026

Towards Reliable Local Security Agents: Verifiable Post-Training for Linux Privilege Escalation

arXiv 2603.17673 ↗First posted 18 Mar 2026cs.CR cs.AIcited by 1

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

LLM agents are becoming increasingly important in the security domain, but leading systems are often closed-source, cloud-based, hard to reproduce or use with sensitive code. This creates a need for small, local models that can perform security tasks under strict resource constraints, though effective methods for developing them remain unexplored. In this paper, we address this gap by proposing a two-stage post-training recipe that turns a small local language model into a security agent. To this end, we focus on Linux privilege escalation as a representative setting to systematically study the training of local models, as the task is both automatically verifiable and requires multi-step interactive reasoning. Using an experimental setup that mitigates data leakage, we post-train a small 4B model in two stages: supervised fine-tuning on traces from procedural privilege-escalation environments, followed by reinforcement learning with verifiable rewards. On a held-out benchmark of 12 Linux privilege-escalation scenarios, supervised fine-tuning doubles the baseline success rate under a tight budget of 20 interaction rounds, and subsequent reinforcement learning training improves our model, PrivEsc-LLM 4B, to 93.3% success, behind only Claude Opus 4.7 at this budget. At the same time, the expected inference cost per successful escalation decreases by more than 80x. Our findings not only show that small local models can be adapted to complex security tasks, but also document the challenges involved, offering guidance for transferring this recipe to other settings.

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 34 of its 57 references that are in the map. First posted on arXiv 18 Mar 2026.

Builds on

34 of 57 references.

Closest ancestors · 1

Same direction, newest first

  1. 2025Training Language Model Agents to Find Vulnerabilities with CTF-Dojo25 Aug

Other references · 33

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  4. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  5. 2025Qwen3 Technical Reportcited by 8,820
  6. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  7. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  8. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  9. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
  10. 2017Deep reinforcement learning from human preferencescited by 3,912
  11. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
  12. 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
21 more
  1. 2020Extracting Training Data from Large Language Modelscited by 2,189
  2. 2020Shortcut Learning in Deep Neural Networkscited by 1,969
  3. 2019Language Models as Knowledge Bases?cited by 1,936
  4. 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 815
  5. 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 719
  6. 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 585
  7. 2019Leveraging Procedural Generation to Benchmark Reinforcement Learningcited by 483
  8. 2025ToolRL: Reward is All Tool Learning Needscited by 362
  9. 2025Reinforcement Learning with Verifiable Rewards Implicitly Incentivizes Correct Reasoning in Base LLMscited by 289
  10. 2024Cybench: A Framework for Evaluating Cybersecurity Capabilities and Risks of Language Modelscited by 164
  11. 2018Assessing Generalization in Deep Reinforcement Learningcited by 133
  12. 2025Echo Chamber: RL Post-training Amplifies Behaviors Learned in Pretrainingcited by 129
  13. 2020Dos and Don'ts of Machine Learning in Computer Securitycited by 102
  14. 2024How Do Large Language Models Acquire Factual Knowledge During Pretraining?cited by 90
  15. 2023Fuzz4All: Universal Fuzzing with Large Language Modelscited by 88
  16. 2023Getting pwn'd by AI: Penetration Testing with Large Language Modelscited by 83
  17. 2025CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scalecited by 78
  18. 2023LLMs as Hackers: Autonomous Linux Privilege Escalation Attackscited by 27
  19. 2025Chasing Shadows: Pitfalls in LLM Security Researchcited by 13
  20. 2026SoK: DARPA's AI Cyber Challenge (AIxCC): Competition Design, Architectures, and Lessons Learnedcited by 9
  21. 2025DEPO: Dual-Efficiency Preference Optimization for LLM Agentscited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Enhancing Linux Privilege Escalation Attack Capabilities of Local LLM Agents
  2. 2026PrivEscalate: Measuring and Augmenting the Threat of LLM-Automated Linux Privilege Escalation ↗
  3. 2025Prompt Flow Integrity to Prevent Privilege Escalation in LLM Agents
  4. 2026Patch-to-PoC: A Systematic Study of Agentic LLM Systems for Linux Kernel N-Day Reproduction
  5. 2026Scalable Weak-to-Strong Verifier Hardening for Agent Environments
  6. 2026AgentVisor: Defending LLM Agents Against Prompt Injection via Semantic Virtualization
  7. 2026Taming Various Privilege Escalation in LLM-Based Agent Systems: A Mandatory Access Control Framework
  8. 2026Learning to Generate Secure Code via Token-Level Rewards