arXiv:2604.27143cs.CRcs.AI2026-04中稿 · RAISE workshop被引 3

小模型本地执行提权攻击成功率仅8%,通过五项技术提升至67%。

Enhancing Linux Privilege Escalation Attack Capabilities of Local LLM Agents

论文配图:Enhancing Linux Privilege Escalation Attack Capabilities of Local LLM Agents
图 1 · 摘自论文原文
  • 用思维链、检索增强等五种技术增强小模型的提权能力
  • 80亿参数模型在指导下成功率达67%,接近大模型表现
  • 反射分析是关键,适合开发本地安全工具或研究防御机制

基于云的大语言模型可自主完成如Linux提权等渗透测试任务,但存在安全与隐私风险。本地部署的开源模型虽无此问题,但先前研究显示小型开源模型仅能在8%-16%的标准提权任务中成功,远低于云端前沿模型。本文通过实证研究分析小型模型失败原因,并探索工程优化方法以缩小差距。从执行轨迹中提炼出六类典型失败模式,对应匹配已有改进技术。评估了五种可复现的增强手段:思维链提示、检索增强生成、结构化提示、历史压缩和反思分析,集成至开源黑客助手框架hackingBuddyGPT。在统一测试环境与相同条件下,这些技术使两个小型模型(Llama3.1 8B 和 Qwen2.5 7B)成功率从8%提升至67%,达到有指导的GPT-4o水平;更大规模的开源模型(Llama3.1 70B)达83%。全因子消融实验表明,反思类技术贡献最大,且发现漏洞比利用漏洞更成瓶颈。研究成果为构建可靠本地进攻代理提供可迁移经验,亦可助防御者识别潜在威胁。

原文摘要 · Abstract (English)

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.

LLM安全本地推理提权攻击模型优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。