arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.17673cs.CRcs.AI
收藏

在Linux提权中使用可验证奖励进行训练后的本地LLM代理

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

Philipp Normann, Andreas Happe, Jürgen Cito, Daniel Arp

AI总结:

本文提出一种两阶段训练流程,通过监督微调和强化学习提升Linux提权任务的性能,实现高成功率和低推理成本。

摘要:

LLM代理在漏洞发现等研究领域日益相关。然而,最强的系统仍封闭且仅限云环境,使其资源密集、难以复现且不适合涉及专有代码或敏感数据的工作。因此,迫切需要小型本地模型,在严格资源预算下执行安全任务,但开发此类模型的方法仍不充分。本文通过提出两阶段训练流程填补这一空白。我们聚焦Linux提权问题,其中成功可自动验证且任务需多步骤交互推理。通过防止数据泄漏的实验设置,我们对4B模型进行两阶段后训练:首先在程序生成的提权环境轨迹上进行监督微调,随后使用可验证奖励进行强化学习。在12个Linux提权场景的验证基准上,仅监督微调使基线成功率在20轮后翻倍至200%,强化学习进一步将结果模型PrivEsc-LLM提升至95.8%,接近Claude Opus 4.6的97.5%。同时,成功提权的预期推理成本减少了超过100倍。

英文摘要:

LLM agents are increasingly important in security, yet leading systems are typically closed-source and cloud-hosted, limiting reproducibility and their use with sensitive data. This creates a need for small, local models that can perform security tasks under strict resource constraints, though effective methods for developing them remain underexplored. 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 automatically verifiable and requires multi-step interactive reasoning. Using an experimental setup that mitigates benchmark 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 nearly doubles the baseline success rate under a tight budget of 20 interaction rounds, and subsequent reinforcement learning improves our model, PrivEsc-LLM 4B, to 93.3% success, ahead of all other evaluated models that fit a single consumer GPU. At the same time, its expected inference cost per successful escalation is more than 80x lower than that of Claude Opus 4.7. Our findings show that small local models can be adapted to complex security tasks. We document the challenges involved and offer guidance for transferring this recipe to other settings.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑