TL;DR
Finding security bugs across an entire software repository with AI agents is like trying to inspect every room in a massive skyscraper for different kinds of hazards—if every specialist inspects every room from scratch, you quickly run out of time and budget. Hyenas solves this by analyzing each function's cross-function security context once, dispatching only relevant specialized auditors, and interleaving scanning with static and dynamic validation by priority. The result? 266 new CVEs in real-world software (including Windows and the Linux kernel) and a 91% success rate on CyberGym.
What Problem Does This Paper Address?
LLM-based agents have shown they can find and fix bugs when handed a specific fuzzing harness or a narrow bug pattern. Scaling them up to entire repositories, however, introduces three practical bottlenecks:
- Which auditors to run on which code? A general-purpose AI auditor can miss niche bug classes, while running dozens of specialized auditors on every single function is prohibitively expensive.
- How to share program context? Understanding a function often requires tracing its callers and callees. If every auditor reconstructs this cross-function context on its own, they waste tokens and reasoning repeating the same work.
- How to balance scanning vs. validation? Static and dynamic validation (like generating a Proof-of-Concept exploit) are expensive and compete with scanning new code for limited LLM budget and time.
Methods
Hyenas organizes repository-wide discovery into a four-stage evidence funnel—Prepare, Scan, Validate, and Prove—coordinated by a priority-based Schedule component.
- Prepare: Maps out the repository's audit scope, parses functions and their call graph, collects historical vulnerabilities, and builds a threat model.
- Scan (Code Enrichment + Complementary Auditors):
- Code Enricher: Infers cross-function security properties (e.g., object lifecycles, preconditions, locks) once per function and embeds them as line-level annotations (Enforced, Delegated, Violated, or Unresolved). All auditors and the validator reuse this enriched code.
- Audit Dispatcher: Always runs a General Auditor and a Variant Auditor (which checks security invariants), plus up to $K=5$ Specialized Auditors (selected from 151 specialists) tailored to the repository domain and function's enriched code.
- Validate: A Static Validator checks whether each candidate is reachable and feasible under the threat model, filtering out false positives and labeling candidates as
LIKELY,SUSPECT, orUNLIKELY. - Prove: Target-specific prover plugins (for Dockerized apps, Windows VMs, and the Linux kernel via QEMU/KASAN) build reusable execution environments, generate a PoC, and confirm the bug via a clean replay.
- Schedule: A Function Ranker scores functions (0–100) by security relevance, and a Task Scheduler interleaves Scan, Validate, and Prove tasks in a single priority queue—ensuring promising candidates are validated and proved before the full repository scan even finishes.
Datasets
- Real-World Deployments: Integrated into the Windows CI/CD pipeline, applied to 5% of the Linux kernel (networking, filesystems, security modules), and run on open-source projects like Redis, Escargot, OpenAPV, curl, and Node.js.
- Component Evaluation Benchmark: Six post-cutoff projects (curl, Gitea, Jenkins, MLflow, Next.js, OpenSSL) totaling 225 files (193.0K LoC) and 294 ground-truth CVEs.
- Comparison Benchmark: CyberGym Level 1 (1,507 tasks), which evaluates vulnerability discovery and PoC generation from bug descriptions.
Key Insights and Ideas
- Separate understanding from auditing: By having the Code Enricher annotate cross-function properties once, auditors can focus purely on spotting missing checks or inconsistencies rather than re-reading callees.
- Specialists catch what generalists miss: Even though the General Auditor runs on every function, specialized and variant auditors uniquely uncovered vulnerabilities (like a stale proxy password leak in
curl) that the generalist overlooked. - Prioritize depth over breadth for promising leads: Interleaving Scan, Validate, and Prove in a shared priority queue surfaces confirmed vulnerabilities much earlier than scanning an entire codebase first.
Key Results
- 266 New CVEs: Discovered and responsibly disclosed 225 CVEs in Windows, 33 in the Linux kernel, and 8 in other projects—73.7% rated critical or high.
- CyberGym #1: Reproduced 91% of target vulnerabilities across 1,507 tasks, ranking first on the CyberGym leaderboard as of August 2026.
- Code Enrichment Impact: In controlled benchmarks, code enrichment boosted Scan recall by 22.6% (69.6% vs. 56.8%) and post-Validate recall by 22.1% (60.7% vs. 49.7%), at 2.4× the LLM cost ($4,718 vs. $2,000).
Limitations and Future Work
- No completeness guarantee: Completing a function–auditor pair doesn't mean all bugs were found, and lacking a PoC doesn't prove a candidate is a false positive.
- Error propagation: Because enriched code is shared, mistakes made by the Code Enricher can mislead downstream auditors and validators. Improving enrichment reliability cost-effectively remains future work.
- Model dependence: Different stages have different needs—smaller models (e.g., GPT-5.4-mini) suffice for ranking and dispatching, while PoC generation benefits from specialized cybersecurity LLMs that won't refuse exploit-generation requests.
Summary updated