arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.08926cs.CRcs.AIcs.CLcs.CYcs.LG
收藏

Cybench:评估语言模型网络安全能力与风险的框架

Cybench: A Framework for Evaluating Cybersecurity Capabilities and Risks of Language Models

Stanford University(斯坦福大学)
Andy K. Zhang, Neil Perry, Riya Dulepet, Joey Ji, Celeste Menders, Justin W. Lin, Eliot Jones, Gashon Hussein, Samantha Liu, Donovan Jasper, Pura Peetathawatcha… 展开作者

Andy K. Zhang, Neil Perry, Riya Dulepet, Joey Ji, Celeste Menders, Justin W. Lin, Eliot Jones, Gashon Hussein, Samantha Liu, Donovan Jasper, Pura Peetathawatchai, Ari Glenn, Vikram Sivashankar, Daniel Zamoshchin, Leo Glikbarg, Derek Askaryar, Mike Yang, Teddy Zhang, Rishi Alluri, Nathan Tran, Rinnara Sangpisit, Polycarpos Yiorkadjis, Kenny Osele, Gautham Raghupathi, Dan Boneh, Daniel E. Ho, Percy Liang

AI总结:

针对网络安全语言模型智能体的能力量化需求,本文提出Cybench评估框架,包含40个专业CTF任务及子任务分解机制,评估8个模型后发现顶尖模型可解决人类需11分钟完成的任务,相关资源已公开。

摘要:

能够自主识别漏洞并执行利用的网络安全语言模型(LM)智能体可能产生现实世界影响。人工智能与网络安全领域的政策制定者、模型提供者及研究人员希望量化这类智能体的能力,以帮助缓解网络风险并探索渗透测试的机会。为此,我们引入Cybench——一个用于指定网络安全任务并评估智能体任务表现的框架。我们包含了来自4个不同夺旗(CTF)竞赛的40个专业级CTF任务,这些任务经过筛选,具有近期性、意义性且覆盖广泛难度范围。每个任务都有自己的描述、启动文件,并在智能体可执行命令和观察输出的环境中初始化。由于许多任务超出了现有LM智能体的能力范围,我们为每个任务引入了子任务,将任务分解为中间步骤以进行更详细的评估。为评估智能体能力,我们构建了一个网络安全智能体,并评估了8个模型:GPT-4o、OpenAI o1-preview、Claude 3 Opus、Claude 3.5 Sonnet、Mixtral 8x22b Instruct、Gemini 1.5 Pro、Llama 3 70B Chat和Llama 3.1 405B Instruct。对于表现最佳的模型(GPT-4o和Claude 3.5 Sonnet),我们进一步研究了它们在4种智能体支架(结构化bash、仅动作、伪终端和网络搜索)下的表现。在没有子任务指导的情况下,使用Claude 3.5 Sonnet、GPT-4o、OpenAI o1-preview和Claude 3 Opus的智能体成功解决了人类团队最长需11分钟完成的完整任务;相比之下,最困难的任务需人类团队24小时54分钟完成。所有代码和数据均可在https://cybench.github.io公开获取。

英文摘要:

Language Model (LM) agents for cybersecurity that are capable of autonomously identifying vulnerabilities and executing exploits have potential to cause real-world impact. Policymakers, model providers, and researchers in the AI and cybersecurity communities are interested in quantifying the capabilities of such agents to help mitigate cyberrisk and investigate opportunities for penetration testing. Toward that end, we introduce Cybench, a framework for specifying cybersecurity tasks and evaluating agents on those tasks. We include 40 professional-level Capture the Flag (CTF) tasks from 4 distinct CTF competitions, chosen to be recent, meaningful, and spanning a wide range of difficulties. Each task includes its own description, starter files, and is initialized in an environment where an agent can execute commands and observe outputs. Since many tasks are beyond the capabilities of existing LM agents, we introduce subtasks for each task, which break down a task into intermediary steps for a more detailed evaluation. To evaluate agent capabilities, we construct a cybersecurity agent and evaluate 8 models: GPT-4o, OpenAI o1-preview, Claude 3 Opus, Claude 3.5 Sonnet, Mixtral 8x22b Instruct, Gemini 1.5 Pro, Llama 3 70B Chat, and Llama 3.1 405B Instruct. For the top performing models (GPT-4o and Claude 3.5 Sonnet), we further investigate performance across 4 agent scaffolds (structed bash, action-only, pseudoterminal, and web search). Without subtask guidance, agents leveraging Claude 3.5 Sonnet, GPT-4o, OpenAI o1-preview, and Claude 3 Opus successfully solved complete tasks that took human teams up to 11 minutes to solve. In comparison, the most difficult task took human teams 24 hours and 54 minutes to solve. All code and data are publicly available at https://cybench.github.io.

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

↑