← Lab /Software

Role-based agentic workflow detects 44% of vulnerabilities and fixes 19%

The proposed role-based agentic workflow achieves 44% detection accuracy and 19% fix accuracy on real-world C/C++ bugs

Software arXiv 12 Jun 2026 Measurement Prototype evidence

Published as “Security in a Workflow: Exploring Role-Based Agentic Architectures for Vulnerability Handling”

Why it matters

The results suggest that explicit role separation and planning can modestly improve detection, but current LLMs still produce low-quality patches, indicating a continued need for human-in-the-loop review in security-critical settings.

Summary

The role-based agentic workflow (without CodeQL) achieved 44% vulnerability detection accuracy comparable to GPT-5.5, but only 19% fix accuracy and 69% verifier accuracy; adding CodeQL lowered detection to 31% and fix to 13%, and removing the planner dropped detection to 13%, showing limited effectiveness on a small curated set of 25 real-world C/C++ CVEs.

What they found 3

  1. 44% detection accuracy comparable to GPT-5.5

    “The study reports 44% vulnerability detection accuracy comparable to GPT 5.5 and 19% fix accuracy.”

  2. 19% fix accuracy and 69% verifier accuracy in the best setting

    “Answer- RQ1 & RQ2: The role-based agentic workflow without CodeQL using nemotron-cascade-2:30b, achieved 44% detection accuracy which was comparable to GPT 5.5, while fix accuracy was lower at 19% and verifier reached 69% accuracy.”

  3. CodeQL integration reduced detection to 31% and fix to 13%

    “Workflow 2 with CodeQL yielded 31% detection accuracy and 13% fix accuracy.”

Caveats 6

  • Removing the Planner reduced correct detections by 45%, underscoring the importance of explicit planning and role separation.
  • The analyzer results suggest that most failures arose from two main sources: (i) the Planner failed to surface the required vulnerability pattern, accounting for 16% of cases, and (ii) even when the Planner provided the correct signal, the Analyzer often struggled to prioritize the most relevant vulnerability cue.
  • The study uses a curated set of 25 real-world C-language CVEs across five CWE categories.
  • While this supports controlled exploratory evaluation, it limits generalizability to other vulnerability classes, programming languages, and repository-scale workflows.
  • The study is intentionally conducted at the vulnerable file level rather than the full repository level.
  • We position this work as a methodology-oriented exploratory study rather than a large-scale benchmark.

What’s new here 4

  • Introduces a four-role (Planner, Analyzer, Fixer, Verifier) agentic workflow for vulnerability handling.
  • Integrates a static-analysis tool (CodeQL) via MCP into the Analyzer role.
  • Evaluates the workflow on a curated set of 25 real-world C/C++ CVEs across five CWE categories.
  • Provides open-source CrewAI implementation and prompts for reproducibility.