Filtering the Noise: A Comparative Study of LLM Agents in Vulnerability False Positive FilteringSifting the Noise: A Comparative Study of LLM Agents in Vulnerability False Positive Filtering
SWE-agent with Claude Sonnet 4 has residual FPR 6.3% on OWASP, but misses some true vulnerabilities.
- SAST false positives are numerous, causing triage burden and alert fatigue. Existing LLM methods are mostly one-shot prompts that cannot search the codebase or iteratively verify. The authors want to compare how different agent architectures filter false positives, their collateral damage to true vulnerabilities, and computational cost.
- Compares three agents against zero-shot prompting, with backbones Claude Sonnet 4, DeepSeek Chat, GPT-5. Data are OWASP, Vul4J, and post-cutoff OSS-Fuzz; SWE-agent with Claude is then ablated on cross-file navigation and multi-turn interaction.
- On OWASP, SWE-agent with Claude Sonnet 4 has a remaining FPR of 6.3%. On Vul4J, GPT-5 with OpenHands has an FP identification recall of 93.3%. On OSS-Fuzz, the former has both identification rate and precision of 95.5%, while zero-shot is 36.4%.
- The authors state that temperature set to 0 still does not guarantee deterministic results; the 50-alert Vul4J sample may not represent the original distribution, and OSS-Fuzz is a 50-alert validation set that cannot be treated as a full C/C++ ranking of all frameworks. The authors plan CWE-aware, cost-adaptive, and human-in-the-loop approaches, and to expand languages and scanners.
- Evaluated models
- Claude Sonnet 4 (claude-sonnet-4-20250514)DeepSeek Chat (deepseek-chat)GPT-5 (gpt-5-2025-08-07)
- Benchmarks
- OWASP Benchmark v1.2Vul4JOSS-Fuzz
- Metrics
- FPRFP identification rateprecisionrecallF1accuracyTP retention
An arXiv paper compares three LLM agent frameworks—Aider, OpenHands, and SWE-agent—on vulnerability false positive filtering. On the OWASP Benchmark, the best configuration reduces the initial false positive rate of over 92% to 6.3%; on real Java projects, the best configuration achieves up to 93.3% false positive identification for CodeQL alerts. On a post-cutoff OSS-Fuzz dataset, SWE-agent with Claude Sonnet 4 identifies 95.5% of false positives while maintaining 95.5% precision, compared to 36.4% for plain prompting. The authors note that agent benefits depend on the backbone model and CWE type, with clear advantages over plain prompting for stronger models such as Claude Sonnet 4 and GPT-5, but limited gains for weaker backbones; aggressive false positive reduction may suppress real vulnerabilities, and computational costs vary considerably across frameworks.
Paper analysis
What problem does this paper attempt to solve?
The authors want to compare whether three LLM agents can filter out SAST false positives, and the accuracy–cost trade-off.
The question the authors want to answer is: SAST alerts have many false positives; can different LLM agents filter them down to a triageable set, and will they miss true vulnerabilities or differ in cost.
- Scenario: The authors state that SAST has been integrated into IDEs and CI/CD, but warnings are often only syntactically vulnerability-like and not actually exploitable. The noise causes manual triage and alert fatigue, and developers even suppress entire classes of warnings; the result the authors cite states that 50.8% of suppressions do not suppress any warning and may also hide future true vulnerabilities.
- Existing shortcomings: The authors state that learning-based classifiers, as well as LLM4SA, which they call state-of-the-art, rely mainly on one-shot prompting. Such methods cannot browse the codebase, gather evidence, or iteratively correct; the authors believe that merely merging or tuning existing scanners is also insufficient for large-scale use.
- Observation: On OWASP Benchmark, the authors state that the union of multiple SAST tools marks almost all non-vulnerability cases as suspicious, and many false positives are shared across tools, more like a correlated semantic blind spot. The motivating example is a HashMap where a tainted value and a constant are stored under different keys and the constant is then retrieved, yet the scanner still reports command injection.
- This paper: Compares Aider, OpenHands, and SWE-agent, with backbones Claude Sonnet 4, DeepSeek Chat, and GPT-5. The full cross-evaluation uses OWASP Benchmark v1.2 and Vul4J; the authors then select the configuration with the lowest remaining FPR and run generalization and capability ablations on OSS-Fuzz C/C++ after the training cutoff.
- Task setup:
- Goal: Given a static alert and code access, determine whether it is a true vulnerability or a false positive.
- Input: SAST warning, the flagged file or repository, and a prompt asking to verify the finding.
- Constraints: In the evaluation, browser and web tools are disabled as much as possible to avoid looking up benchmark answers or fix commits.
- Judgment: Compare against benchmark labels or human annotations, while also recording cases where true vulnerabilities are labeled as FP.
What related research exists?
The authors divide prior work into SAST false positives, one-shot LLM checks, and repository-level agents.
- SAST and false positives: Query-based tools such as CodeQL, Joern, and Semgrep turn code into relational databases or graphs and use queries to connect sources and sinks. The authors state that industrial deployments often sacrifice context and path sensitivity for scale, leading to high false-positive rates; Hu et al. (2025) report that 50.8% of suppressions are useless.
- One-shot LLM checks: Guo et al. (2023) and Kang et al. (2022) use learning-based methods to classify or rank static warnings; Kharkar et al. (2022) use Transformers to distinguish false positives from true vulnerabilities. The authors state that LLM4SA (Wen et al., 2024) improves precision by using alerts plus code context; Du et al. (2025) address path feasibility, IRIS (Li et al., 2025) infers taint specifications, and LLMxCPG (Lekssays et al., 2025) uses code property graphs for slicing. The authors believe most of this work treats the LLM as a one-shot classifier over fixed snippets that cannot verify on its own or navigate across files.
- Repository-level agents: ReAct (Yao et al., 2023) uses a perception–reasoning–action–observation loop; OpenHands (Wang et al., 2025) and SWE-agent (Yang et al., 2024) perform repository-level tool interaction. The authors also mention agents on tasks such as program repair and state that their effectiveness at filtering SAST false positives has not yet been examined.
- Baselines and data: The main comparison baseline is zero-shot prompting with the same backbone. RQ3 additionally sets up LLM4SA-style prompts, heuristic cross-file context, and an oracle-context that directly gives the model the files visited by a full run. The data are OWASP Benchmark v1.2, Vul4J, and OSS-Fuzz.
The authors state this paper is the first systematic examination of whether agent reasoning, tool use, and environment interaction can improve the triageability of SAST results, and also the first comparative evaluation of these three frameworks for false-positive filtering.
How does the paper address this problem?
Compares three agents against zero-shot prompting under a unified alert verification task, and ablates cross-file and multi-turn capabilities.
The authors place Aider, OpenHands, SWE-agent in the same alert verification task, compare with zero-shot prompting, then do capability ablations with a single configuration.
Where Alerts Come From
- OWASP: Use v1.2 built-in labels. Table 1 has 2,740 total, 1,415 positive, 1,325 negative, covering 11 CWEs. Default rule scanning: CodeQL CLI v2.23.7, Semgrep v1.145.0, SonarQube Community v9.9.8, Joern v4.0.454.
- Union: At least one tool reporting positive enters the candidate set. CodeQL uses analyze results as positive; Semgrep uses scan results as positive; SonarQube counts only VULNERABILITY-type issues, not security hotspots; Joern treats each line of joern-scan Result as positive.
- Vul4J: 79 reproducible branches, 6,786,406 lines total, CodeQL yields 3,426 alerts. Fixed random seed samples 50, covering 26 projects, 16 rules, 37% of the original scan rules. Patches matched at method level automatically label 2 TPs; the remaining 48 are labeled by the first author with 6 years of experience, about 20 person-hours; final 31 FPs, 19 TPs.
- OSS-Fuzz: Traced back from public OSV records; fix commits are 10–12 months later than the known training cutoff of Claude Sonnet 4. After filtering out tests, generated files, and non-security or non-CWE-tagged items, 804 remain; seed=42 samples 50, from mpv, gpsd, libical, libhevc, quickjs. Two annotators with 6+ years of experience initially agree on 43/50, Cohen's κ=0.725; after discussion, 22 FPs, 28 TPs.
Agents and Prompts
- Frameworks: Aider v0.86.1 for pair programming, OpenHands Agent SDK v1.5.2 provides editor, terminal, and browser-style workspace, SWE-agent (commit 1d3cfb) for repository-level autonomous operations. Backbones are claude-sonnet-4-20250514, deepseek-chat, gpt-5-2025-08-07.
- Input: Each task gives SAST warnings, test code or full repository, and a prompt asking to verify whether the finding is a true vulnerability or false positive. Zero-shot prompt sets a security review role, gives repository structure, full text of flagged files, and original finding, and requires read-only. Full templates are in the reproduction package; the main text does not list them in full.
- Browser: Disabled when possible to avoid retrieving scorecards, discussions, or fix commits. The authors use OpenHands with Claude, shuffle from completed browser-disabled runs with a fixed seed and take the first 50, then rerun with browser enabled. The paper does not give the seed value.
Metrics and Ablations
- RQ1: Compare against benchmark labels for TP, FP, TN, FN. FPR is the proportion of non-vulnerable instances flagged positive by at least one SAST; report remaining FPR after filtering.
- RQ2/RQ3: Treat SAST FPs as the positive class. Four outcomes: identified FPs, missed FPs, true vulnerabilities labeled as FP, and correctly retained true vulnerabilities. Recall is FP identification rate; precision is the proportion of alerts labeled FP that are indeed FP.
- RQ3 design: Only take the configuration the authors call strongest in RQ1, i.e., Claude Sonnet 4 with SWE-agent. Remove multi-turn interaction, cross-file navigation, tool verification (e.g., arithmetic checks), or config file reading. LLM4SA-style baseline does not reproduce its program-dependent context extraction; only applies task description and output labels, filling CodeQL JSON into Bug Report and reported source files into Code Snippet. Context augmentation uses call graph neighbors, direct includes, and CodeQL data flow; oracle-context receives the same files that the full configuration accessed in successful runs.
Trajectory Coding
- Samples: Success set is 256 trajectories where zero-shot judged TP but SWE-agent with Claude Sonnet 4 correctly judged FP, covering 11 OWASP categories. Failure set is 103 missed FPs, including 59 where both frameworks failed, and the authors name CWE-327 and CWE-614.
- Coding: Record steps, opened files, and tools, then categorize into cross-file semantics, constant folding, config checking, attempted execution, and wrong CWE attribution, over-conservative threat model, stopping at API.
What experiments did the paper conduct?
SWE-agent with Claude has residual FPR 6.3% on OWASP, and a false negative rate of 22.25% on positive examples.
Experimental Setup
- Backbones: Claude Sonnet 4 (claude-sonnet-4-20250514), DeepSeek Chat (deepseek-chat), GPT-5 (gpt-5-2025-08-07). All three are evaluated on their own results.
- Frameworks and baselines: Aider v0.86.1, OpenHands Agent SDK v1.5.2, SWE-agent commit 1d3cfb; the control is zero-shot prompting with the same backbone. RQ3 additionally includes LLM4SA-style, context augmentation, and oracle-context, still using Claude Sonnet 4.
- Data: OWASP Benchmark v1.2 has 2,740 entries (1,415 positive, 1,325 negative). Vul4J has 79 branches, 3,426 CodeQL alerts, triage sample n=50 (31 FP, 19 TP). OSS-Fuzz sampled n=50 from 804 (22 FP, 28 TP).
- Initial scan: Four tools use default rules. Agents see the union of alerts; RQ2 and RQ3 real-project alerts come from CodeQL. The authors state false positives are heavily shared: 36 common across all four tools, 710 common across CodeQL, Semgrep, and SonarQube.
- Metrics: RQ1 is residual FPR. RQ2/RQ3 treat SAST FP as the positive class and report accuracy, precision, recall, F1; recall is the FP identification rate. True vulnerability retention rate and false negative rate are also reported.
- Judgment and repetition: OWASP uses suite labels; Vul4J uses patch matching plus first author; OSS-Fuzz is double-annotated, raw agreement 86.0% (43/50), κ=0.725. §5.6 states temperature is set to 0 but determinism is not guaranteed. The paper does not report the number of repetitions and does not use a separate LLM reviewer model.
Main Results
According to Table 3, the table below shows residual FPR after filtering on OWASP Benchmark, where lower means fewer false positives left behind. The union baseline in §4.1.2 is 98.3% (1,303/1,325 non-vulnerability instances flagged by at least one SAST).
Swipe horizontally to read the table
Backbone Vanilla LLM Aider OpenHands SWE-agent Claude Sonnet 4 23.0% 14.3% 14.9% 6.3% DeepSeek Chat 11.2% 13.2% 15.8% 13.1% GPT-5 20.4% 20.3% 16.3% 14.1% - Backbone differences: The authors state Claude and GPT-5 benefit from the agent pipeline, DeepSeek has no stable benefit, and its zero-shot residual FPR is lower than all three agent configurations.
- Class imbalance: The authors state SWE-agent is more stable on injection classes and CWE-330, while policy and crypto classes regress. The text states Claude with SWE-agent improves in 10 of 11 CWEs, CWE-330 from 51.6% to 96.0% (+44.4 percentage points), CWE-78 from 69.9% to 98.4%; OpenHands drops CWE-614 from 74.2% to 32.3% and CWE-327 from 55.2% to 29.2%. DeepSeek with OpenHands and SWE-agent drops CWE-614 by 67.7 and 80.6 percentage points, and CWE-327 by 69.0 and 63.8 percentage points. The authors state GPT-5 with agents has almost no regression.
- Two phrasings: The abstract writes initial FP detection rate exceeds 92%; §4.1.2 writes union baseline 98.3%. Table 3 marks SWE-agent with Claude with ↓92.1%.
Real Java CodeQL Alerts
- What was tested: Vul4J sampled 50 alerts, initial FP precision 62%. Three frameworks times three backbones, then zero-shot. The paper does not state how many each configuration completed; the numbers below are Table 4 proportions.
- Results: The authors state Claude with Aider has recall 76.7%, precision 85.2%; the same model with OpenHands has precision 91.3%, recall 67.7%. GPT-5 with OpenHands has recall 93.3%, precision 70.0%, and Aider's F1 is 83.3%. DeepSeek with OpenHands has precision 100.0%, recall 38.7%; its zero-shot recall is 67.7%, precision 65.6%.
- Authors' interpretation: The authors state Claude benefits most clearly from agents, GPT-5's gap to zero-shot narrows, and DeepSeek trades off between precision and recall; high identification rates are insufficient if they come at the cost of true vulnerabilities.
Post-cutoff C/C++ and Ablations
- What was tested: Only Claude Sonnet 4 with SWE-agent, compared against variants that remove multi-turn, cross-file, tool verification, or config reading, plus zero-shot, LLM4SA-style, context augmentation, and oracle-context. The fix commits postdate the model's known training cutoff by 10–12 months.
- Results: In Table 5 the full configuration has accuracy 96.0%, precision, recall, and F1 all 95.5%; zero-shot recall 36.4%, F1 51.6%. Removing cross-file gives accuracy 44.0%, F1 62.5%; removing multi-turn gives F1 56.3%. oracle-context recall remains 36.4%, F1 51.6%. LLM4SA-style recall 77.3%, F1 70.8%; context augmentation recall 54.5%, F1 66.7%.
- Authors' interpretation: The authors believe the gains come mainly from cross-file navigation and multi-turn forensics, not context volume. Removing config reading gives accuracy 98.0%, F1 97.7%; the authors state no full-correct cases were lost and the impact is negligible.
How Many True Vulnerabilities Are Suppressed
- Setup: Claude Sonnet 4 with SWE-agent, run on OWASP positive examples. 1,411 of 1,415 completed, completion rate 99.7%.
- Results: 314 true vulnerabilities were labeled FP, retention rate 77.7%, false negative rate 22.25%. The authors give false negative rates: CWE-78 2.38%, CWE-89 1.10%, CWE-79 0.41%, CWE-90 and CWE-643 0%; CWE-327 77.17%, CWE-328 84.50%, CWE-501 77.11%, CWE-614 50.00%.
- Authors' interpretation: The authors believe false negatives are low on explicit taint flows; crypto and policy classes need domain knowledge or threat modeling, and the agent may treat alerts as normative suggestions or infer mitigations that do not exist.
Other Ablations and Analyses
- Browser (OpenHands+Claude, 50 cases): off 86.0% (43/50), on 82.0% (41/50); the authors state no measurable advantage.
- Cost (Table 8): OpenHands+Claude averages 20.5 turns, 219,299 tokens, 0.1867 USD; SWE-agent+Claude 9.0 turns, 130,846 tokens, 0.1501 USD; Aider+DeepSeek 1.0 turns, 0.0028 USD.
- Contamination check: given only file names, Claude 51.6%, GPT-5 51.0%, DeepSeek 49.8%; no statement in 15,636 OWASP trajectories claims to have seen the benchmark.
- DeepSeek paired 1,303 times: 145 times zero-shot was correct and SWE-agent reclassified a non-vulnerability as TP; the authors believe the loop shifts from verifying alerts to broader vulnerability hunting.
- 256 successful trajectories: median 11 steps, median 2 files; 51.2% read non-target files, 25.0% of final rationales cite these files. view covers all 256 trajectories, 1,488 times total.
- Initial SAST (Table 2): CodeQL F1 74.4%, FPR 68.2% (904 FPs); SonarQube FPR 94.6% (1,254 FPs); Joern recall 8.2%, FPR 7.2%.
What are some points that can be further explored?
In the validity threats, the authors write about reproduction, samples, and the judgment criteria, and plan human-in-the-loop strategies.
Limitations and Future Directions Noted by the Authors
- Nondeterminism: The authors state LLM nondeterminism accumulates over multi-step reasoning, and temperature set to 0 only encourages, not guarantees, reproducibility (§5.6).
- Vul4J sample: The authors state only 50 CodeQL alerts were evaluated due to manual triage capacity, with most labels given by the first author after patch matching; a fixed seed makes sampling reproducible, but the sample may not represent the original alert distribution, and rule combinations also affect measurement (§5.6).
- OSS-Fuzz scope: The authors state this is a 50-alert validation set, not a full C/C++ benchmark; the full cross-comparison is on OWASP and Vul4J, and OSS-Fuzz only tests what the authors call the strongest configuration, so it should not be read as a complete ranking of all agents or backbones on C/C++ (§5.6).
- Alert scope: The authors state that judging by the reported alert has limitations: an agent can reject that alert's reasoning while pointing to another real security issue on the same path, which still counts as wrong under the current metric, possibly undercounting security utility outside the alert's scope (§5.6).
- Future work: The authors plan CWE-aware, cost-adaptive agent strategies and human-in-the-loop auditing to maintain FP filtering while reducing TP loss, and to evaluate generalization on more programming languages and SAST tools (§6).
Experimental Coverage
- The full cross-comparison uses backbones Claude Sonnet 4, DeepSeek Chat, GPT-5, frameworks Aider v0.86.1, OpenHands Agent SDK v1.5.2, SWE-agent commit 1d3cfb, and baseline zero-shot prompting (§3.2, §3.3).
- OWASP Benchmark v1.2 has 2,740 entries; initial tools are CodeQL CLI v2.23.7, Semgrep v1.145.0, SonarQube Community v9.9.8, Joern v4.0.454. Vul4J agent evaluation uses 50 CodeQL alerts.
- OSS-Fuzz evaluation uses Claude Sonnet 4 with SWE-agent, including four capability ablations, plus LLM4SA-style, context augmentation, and oracle-context; the authors state they did not reproduce LLM4SA's separate program-dependency context extraction pipeline (§3.4).
- True vulnerability retention is measured only on OWASP positive examples with Claude Sonnet 4 and SWE-agent, completing 1,411/1,415 (§5.2). Cost is reported per task in turns, tokens, and USD (Table 8).
- Success judgment uses benchmark labels or manual annotation. OSS-Fuzz reports κ=0.725; Vul4J does not report a second annotator. The paper does not report the number of experimental repetitions. The browser ablation is a 50-case paired run of OpenHands with Claude (§3.2).
Summarize the main content of the paper
Agents can remove a large amount of SAST noise, but the benefit varies with backbone and CWE, and they label some true vulnerabilities as false positives.
This is a comparative study of three LLM agent frameworks for filtering SAST false positives.
- Problem: Scanners trade precision for scale, and false positives cause alert fatigue and warning suppression. The authors argue one-shot prompting lacks cross-file forensics and multi-step correction.
- Approach: The task is to judge alerts as true vulnerabilities or false positives against ground-truth labels. Frameworks are Aider, OpenHands, SWE-agent; backbones are Claude Sonnet 4, DeepSeek Chat, GPT-5. Data are OWASP Benchmark v1.2, Vul4J CodeQL alerts, and post-training-cutoff OSS-Fuzz.
- OWASP: Union baseline FP rate is 98.3%. In Table 3, SWE-agent with Claude Sonnet 4 has residual FPR 6.3%, while the same model's zero-shot is 23.0%. DeepSeek's zero-shot is 11.2%, lower than its agent configurations.
- Real alerts and generalization: On the 50-alert Vul4J sample, GPT-5 with OpenHands has FP identification recall 93.3%, precision 70.0%. On OSS-Fuzz, SWE-agent with Claude has identification rate and precision both 95.5%, zero-shot identification rate 36.4%. The authors believe gains come mainly from cross-file navigation and multi-turn interaction.
- Trade-off: The same Claude with SWE-agent configuration labels 314 true vulnerabilities as FP on OWASP positive examples, false negative rate 22.25%, retention rate 77.7%, higher for crypto and policy classes. In Table 8, per-task cost ranges from 0.0028 USD for Aider with DeepSeek to 0.1867 USD for OpenHands with Claude.
- Authors' conclusion: The authors believe agents can remove most SAST noise, but the benefit depends on backbone and CWE, and is not suitable for unconditional automatic warning suppression. The authors plan CWE-aware cost-adaptive strategies and human-in-the-loop auditing.