Hyenas: Scalable Repository-Level Vulnerability Discovery with Collaborative AgentsHyenas: Scalable Repository-Wide Vulnerability Discovery with Coordinated Agents
The authors propose a repository-level vulnerability discovery system, Hyenas, reporting 266 new CVEs and achieving a 91% success rate on CyberGym.
- Repository-level vulnerability discovery requires covering multiple security perspectives, understanding cross-function context, and allocating limited LLM budget and time between expanding audit scope and validating candidates.
- Hyenas organizes analysis into Prepare, Scan, Validate and Prove: sharing cross-function security attributes, scheduling complementary auditors per function, then performing static validation and plugin-based dynamic PoC confirmation, interleaved by priority.
- The authors report 266 new CVEs, of which 73.7% are Critical or High; the CyberGym success rate is 91%. In the component experiments, code enrichment improves recall but increases LLM cost, and scheduling finds results earlier than a random strategy.
- The authors note that the system cannot guarantee finding all vulnerabilities, that incorrect enriched code propagates, and that results depend on LLM capability; three repetitions cannot fully characterize variation, LLM judges may err jointly, and new vulnerabilities outside the GT lower precision.
- Metrics
- RecallPrecisionFound GTTPLLM costCyberGym success rateCVE 数量与 CVSS 等级
Researchers from Microsoft and other institutions propose Hyenas, a system that uses collaborative LLM agents for repository-level vulnerability discovery; the unknown vulnerabilities it has found have received 266 CVEs. The system organizes analysis into four stages—Prepare, Scan, Validate, Prove—dispatching a general, a variant, and 151 specialized auditors for each function, sharing cross-function context built by code enrichment, and producing reproducible PoCs through static validation and plug-in dynamic validation. Hyenas has been integrated into the Windows CI/CD pipeline; of the 266 CVEs, 225 are in Windows and 33 in the Linux kernel, 73.7% are rated critical or high, and all were fixed through responsible disclosure; on the CyberGym benchmark it achieves a 91% success rate and ranked first as of August 2026. It has also found more than 70 new vulnerabilities in projects such as Redis and Escargot, and obtained 8 CVEs in projects such as curl, Node.js, and vLLM.
Why it was selectedThe paper integrates an agentic vulnerability discovery system into Windows CI/CD and produces 266 CVEs, providing a concrete reference for evaluating the capabilities of LLM agents in real-world software security.
Related events and news
1 events · 0 news mentions
- This event's paper
微软等提出Hyenas智能体系统 发现漏洞获266个CVE
Paper analysis
What problem does this paper attempt to solve?
Coordinate multi-perspective auditing, cross-function context, and candidate validation across the entire repository to discover vulnerabilities under limited resources.
The core problem is how to enable an LLM agent to continuously discover vulnerabilities across an entire repository, rather than auditing only a given location or fuzzing harness.
- Application motivation: the authors take the DARPA AI Cyber Challenge as background, hoping to extend agents from vulnerability discovery on a given harness to full repositories, and to support continuous auditing of real software.
- Multi-perspective coverage: general auditors may miss specific vulnerability types, and specialized auditors can supplement them, but running all auditors on every function is costly, and it is also necessary to record from which perspectives each function has been audited.
- Context reuse: auditing often requires understanding callers and callees; rebuilding context separately for each auditor duplicates analysis and also diverts its reasoning resources away from finding vulnerabilities.
- Evidence and resource competition: static validation is used to judge whether a candidate is feasible under the threat model, and dynamic validation confirms with a PoC; both compete with continued code scanning for LLM budget and time.
- Proposed system: the authors propose Hyenas, composed of Prepare, Scan, Validate and Prove, combining complementary auditors, code enrichment, an evidence funnel and priority scheduling, and integrated into Windows CI/CD and open-source projects.
- Task boundaries: Prepare generates the audit scope, function database and call graph, historical vulnerabilities and threat model from the repository; the threat model identifies attack surfaces, trust boundaries and security concerns, rather than presupposing a unified external attacker capability.
What related research exists?
Related work covers LLM static auditing, PoC generation, AIxCC systems, as well as traditional static analysis, fuzzing and benchmarks.
LLM static vulnerability discovery
- General and data-flow analysis: LLMDFA splits data-flow analysis for a given source/sink into LLM subtasks; RepoAudit audits a repository against a given bug description and validates path conditions; IRIS combines static taint analysis with an LLM for specific CWEs; LLMxCPG generates code-property-graph queries.
- Variant analysis: KNighter synthesizes Linux static checkers from fix patches; BugStone finds duplicate bugs from one fixed instance; SpecAuditor and VulGenie extract audit specifications or Java API security rules from patches; BugAuditor infers the intent of defensive code when no patch is available.
- Domain-specific analysis: NEO traces cross-service data flows to detect microservice privilege escalation; GPTScan matches smart contract code against logic-vulnerability scenarios and then confirms candidates with static analysis.
PoC generation and AIxCC
- Harness-dependent methods: GONDAR combines Java sink analysis with a coverage-guided fuzzer; CtxFuzz turns reachability obstacles into directed mutation scripts; PBFuzz combines constraint inference with property-based input generation; CVE-Genie reconstructs environments from CVE information and generates PoCs.
- AIxCC CRS: The competing systems combine LLM static analysis, fuzzing and PoC generation on OSS-Fuzz C and Java projects, relying on harnesses and sanitizers to filter candidates.
- Difference noted in the paper: The PoC methods above depend on harnesses or detailed vulnerability information, whereas Hyenas's Prove receives only the repository and its own candidates and must build the execution environment itself; AIxCC's predefined harnesses also differ from Hyenas's repository-level threat model.
Traditional security analysis and evaluation
- Static analysis and fuzzing: Query tools such as CodeQL, consistency checks such as APISan and Juxta, and various specialized bug detectors are cited as sources of the idea of complementary auditors; traditional and LLM-assisted fuzzing cover concolic execution, directed exploration, input specifications and mutator generation.
- Security agent benchmarks: CyberGym evaluates vulnerability discovery and PoC on ARVO tasks; CyberGym-E2E extends to patch generation, and ExploitGym and ExploitBench evaluate exploitation capability.
Experimental comparisons in this paper: The component experiments compare Hyenas with Hyenasno-enrich without code enrichment, and compare random, Oracleranker and Oracleall scheduling; they use a self-built six-project GT set and CyberGym, and do not implement the static audit systems above as baselines. The authors position their system as combining general, variant and specialized perspectives and sharing cross-function context at the repository level.
How does the paper address this problem?
Hyenas organizes repository auditing with shared security attributes, per-function auditor selection, layered validation and a unified priority queue.
The overall approach is to have Hyenas separate program understanding from vulnerability auditing, then advance candidates along a Scan–Validate–Prove evidence funnel; the stages do not run sequentially to completion but are interleaved by the Schedule according to priority.
Prepare and audit units
- Repository-level context: the Scope Resolver distinguishes audit targets from read-only reference files; the system uses tree-sitter to build a function database and call graph, the Repo Summarizer summarizes the repository, and the Prior-Vuln Collector collects historical vulnerabilities from Git history and web search.
- Threat model: the Threat Modeler generates attack surfaces, trust boundaries and security concerns based on the repository summary, historical vulnerabilities and on-demand file inspection.
- Coverage tracking: each function–auditor pair is an audit unit, used to record from which perspectives a function has been audited and which remain incomplete; completing a unit does not mean all related vulnerabilities have been found.
Code Enricher and complementary auditors
- Shared context: the Code Enricher writes line-level comments next to security-relevant operations, each attribute containing a tag, requirement and status; the status is Enforced, Delegated, Violated or Unresolved. The tags in Table 1 cover preconditions, data flow, ownership, lifetime, bounds, locks and error paths, among others.
- Recursive context acquisition: attributes are inferred only once and reused; when the enriched code of a callee is needed, a sub-agent can be launched to recurse along the call graph, stopping and retaining Unresolved if the request forms a cycle. Callee attributes are not directly inherited but re-determined by the current function in light of the evidence.
- Three types of auditors: the General Auditor performs open-ended inspection; the Variant Auditor checks variants using patches, external APIs and an invariant catalog derived from the threat model; Specialized Auditors target specific vulnerability classes and can use pre-analysis such as regex extraction to construct customized prompts.
- Scheduling selection: General and Variant are always dispatched; specialized auditors are first filtered by repository domain and threat model, then selected by an LLM based on language, activation keywords and enriched code, with a default of at most K=5 per function. The current 151 specialized auditors were synthesized by AI agents based on historical vulnerabilities, patches and security research papers.
Validate, Prove and success determination
- Candidate format: auditors report the vulnerability location, trigger conditions, expected vulnerable behavior, CWE, and a LIKELY or SUSPECT confidence; the shared system prompt requires reporting only candidates with evidence.
- Static validation: the Static Validator checks code reachability, trigger conditions and expected behavior under the threat model, giving LIKELY, SUSPECT or UNLIKELY with evidence.
- Dynamic confirmation: Prove handles LIKELY and SUSPECT candidates, iteratively generating, executing and revising PoCs based on feedback; only if both the generation stage and clean replay trigger the expected behavior is it marked CONFIRMED, returning a replayable artifact; otherwise the Validate conclusion is retained.
- Plugins and bug oracle: three types of provers—Docker, Windows and Linux kernel—prepare containers, virtual machine snapshots or KASAN/KCOV kernel environments respectively. The oracle can use sanitizers, plugin checks or behavior checks constructed by an agent; the authors caution that agent-generated oracles should be reviewed by humans.
- Privilege separation: the environment builder can access the network and configure the environment, the PoC Generator's network is limited to explicitly permitted endpoints and it cannot modify environment templates; clean replay discards its instance changes.
Scheduling and implementation
- Priority: the Function Ranker gives a score of 0–100 based solely on the threat model and the function's path, name and body, without calling tools; a low score only defers scanning and does not exclude the function.
- Queue order: High Prove=120, High Validate=110, Scan=0–100, Low Validate=60, Low Prove=30; within the same priority, order of enqueueing applies. The authors' design intent is to prioritize advancing existing candidates while letting low-confidence tasks compete with some scanning.
- Engineering implementation: the system is 208K lines of TypeScript, based on the GitHub Copilot SDK; stages and scheduling account for 120K lines, of which specialized auditors account for 45K lines. Figure 3 gives a simplified audit prompt and candidate format.
What experiments did the paper conduct?
The experiments cover real-software CVEs, a six-project component ablation, scheduling and CyberGym; the improvements come with costs and evaluation error.
Experimental setup
- Real targets: Windows is integrated into CI/CD; the Linux kernel uses commit 6916d57 and currently covers about 5% of the code; Redis, Escargot, OpenAPV, curl, Node.js, Apple container, vLLM and other projects are also tested.
- Component benchmark: Six projects—curl, Gitea, Jenkins, MLflow, Next.js and OpenSSL—with 225 target files, 193.0K LoC and 294 GT in total; versions were released shortly after GPT-5.4's 2025-08-31 knowledge cutoff, and GT comes from CVEs disclosed afterwards.
- Component configuration: Prove is disabled, all agents use GPT-5.4; web search is disabled and the network allows only the LLM endpoint. Each configuration is run three times, reusing the same Prepare and Function Ranker results, and the table reports averages.
- GT determination: GPT-5.4, Claude Opus 4.6 and Claude Sonnet 4.6 independently judge whether a candidate and a GT in the same file are the same vulnerability, and at least two agreeing counts as a match; descriptions, line numbers or observation points need not agree.
- Metrics: TP is the number of candidates matching a GT, and Found GT is the number of distinct GTs; Precision=TP/Reports, Recall=Found GT/GT. The main values in Table 4 use only LIKELY candidates after Validate, and parentheses use all Scan candidates before Validate.
- CyberGym: All 1,507 Level 1 tasks are run, each providing a vulnerability description and unpatched code, with one PoC submitted at the end. Prepare, Scan and Validate use GPT-5.4, Code Enricher uses Claude Sonnet 4.6, and Prove uses Claude Opus 4.6, with one hour per candidate.
Main results
The table below gives the Total row of Table 4 and the costs in Table 5, all averaged over three runs; parentheses are Scan-stage results.
Swipe horizontally to read the table
Configuration Recall after Validate Scan Recall Precision after Validate Scan Precision LLM cost Hyenas 60.7% 69.6% 22.9% 14.2% $4,718.0 Hyenasno-enrich 49.7% 56.8% 23.7% 19.9% $2,000.0 - Findings and cost: The authors report that Scan's Found GT rises from 167.0 to 204.7, stating that code enrichment finds 22.6% more GTs; the total cost in Table 5 is 2.4 times that of the no-enrichment configuration, and still 1.6 times after removing enrichment generation.
- Static validation: The authors report that LIKELY candidates in both configurations cover about 87% of the GTs found by Scan; precision after Validate improves by 61.3% and 19.1% relative to Scan respectively, but the different candidate sets mean this comparison cannot directly isolate the effect of enrichment on Validate.
- Real vulnerabilities: Table 3 totals 266 new CVEs—Windows 225, Linux kernel 33, other projects 8; Critical 14, High 182, Medium 68, Low 2—and the authors report that 73.7% are Critical or High, and that the corresponding vulnerabilities have all been patched.
Auditor complementarity and scheduling
- Audit coverage: In Figure 4, the General Auditor finds 193.3 of the 204.7 discovered GTs; Variant and Specialized perform 54.0% and 69.5% as many audits as General, with unique findings of 2.7 and 8.3 GTs respectively.
- Authors' interpretation: On this basis the authors argue that different auditors can find complementary vulnerabilities in the same function, supporting tracking coverage by function–auditor pair; General's greater coverage is also related to its auditing every function.
- Scheduling comparison: Figure 5 compares the normalized time–GT recall curves of Hyenas, random, Oracleranker and Oracleall; the latter three are evaluated by offline replay of the Table 4 runs. The authors state that Hyenas produces results earlier than random but lags the two oracle strategies.
- Direction for improvement: The authors state that the gap between Oracleranker and Oracleall is smaller than that between Hyenas and Oracleranker, and therefore argue that future work should improve the Function Ranker; the translated text does not provide readable numeric endpoints for Figure 5.
CyberGym and failure cases
- Main result: Hyenas reproduces the target vulnerability in 91% of the 1,507 tasks, and the authors report that as of August 2026 it ranks first on the CyberGym leaderboard.
- Non-target and failures: Another 5.55% of tasks generate a PoC that triggers a crash but does not match the task description; the remaining 3.45% fail, of which Scan missing the target accounts for 0.53%, Validate wrongly rejecting a valid result 0.66%, and Prove failing to generate a PoC 2.26%.
- Comparison limits: The authors note that other systems on the latest leaderboard report higher scores but may use newer LLMs, and that some task descriptions do not clearly distinguish the target vulnerability from other bugs in the same codebase, making direct comparison difficult.
Other ablations and analyses
- Fixed-candidate validation: Re-running Validate without enriched code on the same Scan candidates from the three Hyenas runs lowers Recall by 2.5 pp to 58.2% and Precision by 0.4 pp to 22.5% (§8.3).
- Linux filtering: 621 PoC-reproduced cases are deduplicated by root cause to 355, then 163 cases with limited security impact and 133 already reported or fixed cases are excluded, leaving 59 submitted, which have so far produced 33 CVEs (§8.1).
- Linux exploit confirmation: Of the 33 Linux CVEs, 24 are Critical or High; for 8 of them a working LPE exploit was confirmed, and the authors did not disclose these exploits (§8.1).
- Other projects: The Docker prover found more than 70 previously unknown vulnerabilities that do not yet have CVEs; interactive PoC analysis yielded another 8 CVEs, in curl, Node.js, Apple container and vLLM (§8.1).
What are some points that can be further explored?
The authors discuss coverage guarantees, context error propagation and evaluation validity, and propose directions such as improving enrichment reliability.
Limitations and future directions noted by the authors
- Cannot guarantee completeness: §9 notes that Hyenas cannot guarantee discovering all vulnerabilities, and that completing a function–auditor pair does not mean that auditor has found all related vulnerabilities; tracking completed items can only expose coverage gaps.
- Judgments are not definitive: §9 notes that neither LIKELY nor UNLIKELY is a definitive conclusion; the absence of a PoC is not necessarily a false positive, because Prove is limited by time and LLM capability.
- Context error propagation: §9 notes that incorrect enriched code may cause agents reusing it to miss real vulnerabilities or produce invalid candidates; repeating enrichment and comparing results may mitigate this, but increases cost and may reproduce the same errors.
- Future reliability research: §9 explicitly lists "improving enrichment reliability at reasonable cost" as future work; the same section also notes that different agents can be assigned suitable LLMs to improve effectiveness and cost.
- Boundaries of repeated experiments: §9 Threats to validity notes that three runs cannot fully characterize run-to-run variation; majority agreement among three judges reduces reliance on a single judgment but cannot eliminate joint errors.
- GT and generalization issues: §9 notes that new vulnerabilities outside the GT may be recorded as unmatched, thereby underestimating precision; models may have seen earlier versions of target repositories during training, so results may not generalize to unseen repositories.
Scope of experimental coverage
- Component models: in the component experiments of §8.2, all agents use GPT-5.4; for CyberGym, GPT-5.4, Claude Sonnet 4.6 and Claude Opus 4.6 are used by stage.
- Component scope: Table 4 covers six projects, 225 files containing GT and 294 GT; to reduce LLM cost, audit targets are limited to these files, and Prove is disabled in this group of experiments.
- Real deployment scope: §8.1 reports Windows CI/CD, about 5% of Linux kernel code and several open-source projects; the 33 Linux CVEs come from the currently analyzed scope.
- Repetition and judging: each component configuration is run three times; GT matching requires agreement of at least two of three LLM judges, and the paper does not report a human agreement evaluation.
- Comparison method: §8.6 compares with other systems using CyberGym's publicly reported results; the authors note that differences in model versions and task descriptions make direct comparison difficult.
Summarize the main content of the paper
Hyenas applies multi-perspective auditing, shared context and layered verification to repository-level vulnerability discovery, and reports real CVEs and benchmark results.
Hyenas is an LLM agent vulnerability discovery system for entire code repositories; its focus is not single-shot bug localization but continuously coordinating audit coverage, cross-function understanding and candidate validation.
- Problem to solve: which vulnerabilities a repository contains is not known in advance, and general and specialized audit perspectives need to be combined; cross-function context should not be rebuilt repeatedly; scanning more code and validating existing candidates share a limited budget.
- Method highlights: Prepare establishes scope, call graph, historical vulnerabilities and threat model; Scan shares line-level security attributes and selects auditors per function; Validate performs static filtering; Prove generates and clean-replays PoCs through plugins; a unified priority queue interleaves these tasks.
- Real-software results: the authors report 266 assigned new CVEs, of which 225 are Windows, 33 Linux kernel and 8 other projects; 73.7% are Critical or High, and the corresponding vulnerabilities have all been patched (Table 3).
- Component results: averaged over three runs on six projects, Recall after Validate is 60.7%, versus 49.7% without code enrichment; the corresponding costs are $4,718.0 and $2,000.0, which the authors summarize as trading higher analysis cost for more findings (Tables 4, 5).
- Benchmark results: the success rate on the 1,507 tasks of CyberGym Level 1 is 91%; additionally, 5.55% trigger non-target crashes and 3.45% fail. The authors report that as of August 2026 it ranks first on the leaderboard, while cautioning that direct comparison with other systems is difficult.
- Authors' conclusion: the authors consider that complementary auditors, code enrichment and priority scheduling make repository-level discovery more scalable; at the same time they explicitly state that finding all vulnerabilities is not guaranteed, that incorrect context propagates, and that LLM judging, limited repetition and training-data exposure all affect the interpretation of results.