← Lab /AI/ML

Post-training boosts small LLM success on Linux privilege escalation to 95.8%

A 4B local LLM can achieve 95.8% success on a 12-scenario Linux privilege-escalation benchmark after supervised fine-tuning and RL

AI/ML arXiv 18 Mar 2026 Method Prototype evidence

Published as “Post-Training Local LLM Agents for Linux Privilege Escalation with Verifiable Rewards”

Why it matters

The work shows that high-performing, low-cost, locally-run LLM agents can reliably automate Linux privilege escalation, enabling on-prem security testing without exposing sensitive code or system state to external services.

Summary

PrivEsc-LLM, a 4B open-weight model post-trained with supervised fine-tuning and reinforcement learning using verifiable rewards, achieves 95.8% success at reaching root within 20 interaction rounds, within 1.7 percentage points of the proprietary Claude Opus 4.6 (97.5%) and outperforms other baselines; this performance is demonstrated on 120 runs across 12 scenarios with statistical confidence, and the model runs locally at over 100× lower inference cost.

What they found 1

  1. PrivEsc-LLM reaches 95.8% success at R=20, close to Claude Opus 4.6 at 97.5%

    “At R=20, PrivEsc-LLM reaches 95.8% success, close to Claude Opus 4.6 at 97.5%, and leads all systems at R=5 before the curves converge at larger budgets.”

Caveats 2

  • PrivEsc-LLM fails 5 of 120 runs overall, indicating a non-zero failure rate despite high average success.
  • Per-scenario success drops to 6/10 on the Sudo GTFOBins scenario and 9/10 on Docker group escape, showing gaps on certain exploit classes.

What’s new here 4

  • Applies a two-stage post-training pipeline (SFT then RL with verifiable rewards) to a small open-weight model for a security task.
  • Achieves near-frontier API reliability under strict round budgets while running locally on consumer hardware.
  • Demonstrates >100× lower inference cost per successful privilege escalation compared to leading API models.
  • Uses procedurally varied training environments to ensure generalization rather than memorization of benchmark paths.