构建高效攻防大模型智能体,优化参数并设计轻量级测评基准。
Towards Effective Offensive Security LLM Agents: Hyperparameter Tuning, LLM as a Judge, and a Lightweight CTF Benchmark
- 用大模型做裁判,细粒度评估攻防任务每步表现
- 提出新指标衡量解题接近人工标准的程度,支持部分正确判断
- 发现温度等超参对攻防策略生成的关键影响,适合作为安全研究参考
近年来,大模型代理系统在自动化攻防任务(尤其是夺旗赛)中取得进展。本文系统研究推动智能体成功的关键因素,提供构建高效攻防大模型代理的完整方案。首先,提出CTFJudge框架,利用大模型作为裁判,分析智能体行为轨迹并实现对夺旗解题各阶段的细粒度评估。其次,提出新型指标CTF能力指数(CCI),用于衡量部分正确性,揭示智能体解法与人工黄金标准的接近程度。第三,研究温度、top-p和最大生成长度等大模型超参数对智能体性能及自动网络安全任务规划的影响。为快速评估,我们构建了涵盖二进制漏洞利用、网络、逆向工程、取证和密码学的50个代表性挑战的轻量级基准CTFTiny。研究结果明确了多智能体协作的最优设置,为未来大模型代理在网络安全领域的研究奠定基础。相关代码与数据集已开源:CTFTiny https://github.com/NYU-LLM-CTF/CTFTiny,CTFJudge https://github.com/NYU-LLM-CTF/CTFJudge。
原文摘要 · Abstract (English)
Recent advances in LLM agentic systems have improved the automation of offensive security tasks, particularly for Capture the Flag (CTF) challenges. We systematically investigate the key factors that drive agent success and provide a detailed recipe for building effective LLM-based offensive security agents. First, we present CTFJudge, a framework leveraging LLM as a judge to analyze agent trajectories and provide granular evaluation across CTF solving steps. Second, we propose a novel metric, CTF Competency Index (CCI) for partial correctness, revealing how closely agent solutions align with human-crafted gold standards. Third, we examine how LLM hyperparameters, namely temperature, top-p, and maximum token length, influence agent performance and automated cybersecurity task planning. For rapid evaluation, we present CTFTiny, a curated benchmark of 50 representative CTF challenges across binary exploitation, web, reverse engineering, forensics, and cryptography. Our findings identify optimal multi-agent coordination settings and lay the groundwork for future LLM agent research in cybersecurity. We make CTFTiny open source to public https://github.com/NYU-LLM-CTF/CTFTiny along with CTFJudge on https://github.com/NYU-LLM-CTF/CTFJudge.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。