AI 编程 4.0 · 优秀 2026-10-16 · 文章

Agent Security League AI Coding Agent Security Benchmark

Endor Labs 的 Agent Security League 是一个持续更新的开放基准,用真实任务同时测 AI 编码代理的功能正确性与安全正确性,覆盖 Claude CodeCodexCursorSWE-Agent 等框架 33 个代理+模型组合核心发现是两条轴之间的落差:功能正确性最高 87.2%(Claude Code + Claude Fable 5.1),而同一头部组合的安全正确性只有 37.4%能跑通的代码经常是不安全的公开榜单按安全正确性排序,随新代理和模型发布逐条标注日期(头部条目为 2026-09 至 2026-10)

打开原文回到归档

Agent Security League: AI Coding Agent Security Benchmark

中文导读

Endor Labs 的 Agent Security League 是一个持续更新的开放基准,用真实任务同时测 AI 编码代理的功能正确性与安全正确性,覆盖 Claude Code、Codex、Cursor、SWE-Agent 四种 harness 共 33 个代理+模型组合。核心发现是两条轴之间的落差:功能正确性最高 87.2%(Claude Code + Claude Fable 5.1),而同一头部组合的安全正确性只有 37.4%——能跑通的代码经常是不安全的。榜单按安全正确性排序、逐条标注日期(头部条目 2026-06 至 2026-10),随新代理和模型发布持续更新。方法上承袭 CMU 的 SusVibes 基准:200 个任务来自 108 个开源 Python 项目、跨 77 个 CWE 漏洞类;FuncPass 指过功能测试,SecPass 指同时过安全测试;评测管线配提示加固、工作区清洗和自动作弊检测。

为什么值得关注

功能/安全双轴的落差在这里是可量化的:榜首组合 87.2% 对 37.4%,差了近 50 个点,33 个组合的安全分全部低于 35%,说明代码能跑与代码安全当前是两条独立曲线。 Relevance for field notes: a continuously updated leaderboard separating functional correctness (FuncPass) from security correctness (SecPass) for AI coding agents - the top combo (Claude Code + Fable 5.1) hits 87.2% functional but only 37.4% secure, and every one of the 33 combos scores below 35% on security across 200 real-world tasks spanning 77 CWE classes, with the methodology extending CMU's peer-reviewed SusVibes benchmark.

关键信息

  • 文章标题: AI Coding Agent Security Benchmark (Agent Security League)
  • 作者: Endor Labs Research
  • 原文: https://www.endorlabs.com/research/ai-code-security-benchmark
  • 发布时间: 2026-10-16(榜单随新代理/模型发布持续更新)
  • 方法要点: 200 任务 / 108 个开源 Python 项目 / 77 个 CWE 漏洞类;FuncPass vs SecPass 双指标;防作弊措施(提示加固、工作区清洗、自动检测);扩展自 CMU SusVibes(arXiv 2512.03262)
  • 头部数据: Claude Code+Fable 5.1 87.2/37.4;Codex+GPT-6 Astra 82.1/34.6;Codex+GPT-6.1 Sol 77.7/34.1;Claude Code+Opus 5.5 68.7/33.5
  • 关联标签: coding-agents, security-benchmark, harness-eval, vulnerability

English Summary

Endor Labs' Agent Security League is an open, continuously updated benchmark tracking both the functional and the security correctness of popular AI coding agent harnesses (Claude Code, Codex, Cursor, SWE-Agent) across 33 agent+model combinations on real-world tasks. The headline finding is the gap between the two axes: the best functional correctness score is 87.2% (Claude Code with Claude Fable 5.1), while the best security correctness for that same top combo is only 37.4% - code that works is routinely insecure. The public leaderboard is sorted by security correctness and dated per combo as new commercial agents and models ship (top entries 2026-06 through 2026-10). Methodology extends CMU's SusVibes: 200 tasks drawn from 108 open-source Python projects spanning 77 CWE vulnerability classes, FuncPass (generated code passes the functional test suite) vs SecPass (also passes security tests), with prompt hardening, workspace sanitization, and automated cheating detection.

Obsidian Notes

  • Fetched 2026-10-24 12:24 UTC via opencli web read --wait-until networkidle (default domstable attempt was navigation-rejected); grounded in the full leaderboard page including the methodology and anti-cheating sections.
  • Chinese body anchors on the entry's summary_zh; leaderboard numbers added only from the fetched page text.