← Lab /Security & privacy

LLM agents achieve mixed success on Linux privilege escalation, performance varies

LLM-based agents can automate Linux privilege escalation with heterogeneous success rates, and a specialized wrapper improves those rates

Security & privacy arXiv 8 Sep 2026 Measurement Prototype evidence Threat model

Published as “PrivEscalate: Measuring and Augmenting the Threat of LLM-Automated Linux Privilege Escalation”

Why it matters

Defenders should assess both LLM model choice and agent architecture, and consider configuration hardening and detection of enumeration patterns, because automated agents can reliably achieve root on many real-world privilege-escalation paths.

Summary

LLM agents can automatically perform Linux privilege escalation, but success varies widely across models, vulnerability classes, and environment perturbations; the domain-specialized PrivEscAgent boosts success rates (e.g., +34 pp for the strongest non-reasoning model) without changing the underlying LLM. The evidence comes from a 531-scenario benchmark plus 329 variants, showing heterogeneous model performance, sensitivity to configuration changes, and significant impact of agent architecture.

What they found 3

  1. No single LLM dominates across high-prevalence vulnerability classes

    “Model capability is heterogeneous across vulnerability classes, with no single model dominating across the high-prevalence classes”

  2. Success retention under environmental perturbation varies between 59.0% and 78.2%

    “perturbation sensitivity varies sharply across models: per-model success retention under environmental perturbation ranges from 59.0% to 78.2%”

  3. PrivEscAgent improves the success rate of the strongest non-reasoning model by about 34 percentage points

    “PrivEscAgent improves the SR of the strongest non-reasoning model by about 34 percentage points”

Caveats 4

  • Even with PrivEscAgent, the weakest evaluated model only reaches 39.5% success, indicating limited absolute effectiveness.
  • Configuration rotation reduces but does not eliminate exploitation success, so mitigation is incomplete.
  • Taxonomy coverage. The prior hackingBuddyGPT benchmark excluded kernel exploits (host instability under repeated runs), NFS root squashing (which requires a dedicated remote attacker host), and service-specific exploits (because of product and version dependence), and it omitted weak file-system permissions on sensitive system files. PrivEscalate retains the first three exclusions on those grounds but re-includes weak file-system permissions through two expert-authored scenarios because they remain operationally relevant in misconfigured deployments encountered in audits.
  • Evaluation scope: the 20-step cap follows prior automated Linux privilege-escalation agent studies and supports comparability, but may over-allocate easy scenarios and understate longer-chain cases.

What’s new here 4

  • A 531-scenario Dockerized benchmark covering 14 ATT&CK-mapped sub-categories, far larger than prior work (<15 scenarios).
  • Systematic generation of 329 parameterized variant scenarios to test sensitivity to environmental distractors.
  • Comprehensive evaluation of six LLMs across three agent architectures, revealing model-class heterogeneity and architecture effects.
  • PrivEscAgent, a domain-specialized wrapper that adds deterministic enumeration, category matching, and step planning to improve success without modifying the LLM.

Threat model stated by the source

Adversarypost-initial-access adversary with an unprivileged interactive shell on a Linux host
Capabilityautonomous LLM agent issuing arbitrary shell commands
Assumesno GUI access or human-in-the-loop assistance; excludes cross-host lateral movement, kernel-CVE exploitation, and post-root objectives; zero-knowledge about vulnerability category or exploit path