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.
Taming Various Privilege Escalation in LLM-Based Agent Systems: A Mandatory Access Control Framework
Hong Kong University of Science and Technology(香港科技大学);Lingnan University(岭南大学);ETH Zurich(苏黎世联邦理工学院);Zhejiang University of Technology(浙江工业大学);University of Oregon(俄勒冈大学)
Ambient Persuasion in a Deployed AI Agent: Unauthorized Escalation Following Routine Non-Adversarial Content Exposure
Digital Epidemiology Laboratory, Digital Futures, University of Cincinnati(数字流行病学实验室,数字未来,辛辛那提大学);Center for Humanities and Technology (CHaT), University of Cincinnati(人文与科技中心(CHaT),辛辛那提大学);Norwegian University of Science and Technology(挪威科技大学)
A Blind Trust, the Bloody Thrust: When Attacker-Controlled Hook Updates Steer AI Agent Harnesses towards Malicious Behaviors
Beijing University of Posts and Telecommunications(北京邮电大学);Data Technology Support Center of the Cyberspace Administration of China(中央网络安全和信息化委员会办公室数据技术支持中心);Beihang University(北京航空航天大学);Zhejiang University(浙江大学)
Agent Skills in the Wild: An Empirical Study of Security Vulnerabilities at Scale
Tianjin University(天津大学);Southern Cross University(南方十字大学);School of Cybersecurity, Tianjin University(安全学院,天津大学);Nanyang Technological University(南洋理工大学);University of New South Wales(新南威尔士大学);Griffith University(格里菲斯大学)
ClawKeeper: Comprehensive Safety Protection for OpenClaw Agents Through Skills, Plugins, and Watchers
Beijing University of Posts and Telecommunications(北京邮电大学);Beijing Academy of Artificial Intelligence(北京人工智能研究院);China Academy of Information and Communications Technology(信息通信技术研究院)
KubeCap: A Framework for Capability Minimization in Kubernetes via Static Analysis and LLM-Assisted Rule Inference
Key Laboratory of Data and Intelligent System Security, Ministry of Education, China (DISSec), Tianjin Key Laboratory of Network and Data Security Technology (NDST), College of Cryptology and Cyber Science, Nankai University(南开大学密码学与网络科学学院)
Automated Post-Exploitation Attack Chain Exploration Based on a Phase-guided Hybrid Planning-Monte Carlo Tree Search Algorithm
College of Information and Intelligent Engineering, Zhejiang Wanli University(浙江万里大学信息与智能工程学院);College of Computer Science and Technology, Zhejiang University of Technology(浙江工业大学计算机科学与技术学院)