- Rating
- 3
- Clarity
- 2
- Confidence
- 3
- Originality
- 2
- Quality
- 2
- Significance
- 2
Read review
Summary
The paper introduces PathAgent, an agentic framework to mitigate false positives in vulnerability detection using the static program analyzer. The paper focuses on addressing the limited capabilities of existing LLM-assisted analyzers in handling long and complex contexts. It decomposes complex inter-procedure analysis into localized reasoning sub-tasks, then applies the on-demand contextual exploration strategy to retrieve only the necessary code context. It also constructs a new dataset, SAFP-BENCH-C, with manually labeled real bugs and false positives in various real-world projects. The experiments show the effectiveness of PathAgent compared to existing baselines in detecting bugs and mitigating false positives.
Strengths and weaknesses
Strengths
- Quality
- The quality of the paper is reasonable. The key approaches and techniques proposed by the paper generally make sense, but I have several concerns, as discussed in the weaknesses.
- Clarity
- The paper reads generally well, but there are several issues that remain, as discussed in the weaknesses.
- Significance
- The proposed approach, PathAgent, outperforms existing baselines. However, the weaknesses discussed in the following sections hinder the paper from being significant to the community.
Weaknesses
- Quality
- I have several concerns about the proposed approach and experiment:
- The justification for the reliability of using LLMs for the assigned tasks could be stronger. The paper uses LLMs in symbolic range reasoning, but it doesn’t explain why the ranges generated by LLMs are reasonable and reliable. Similarly, the paper relies on LLM’s self-planning capabilities to determine whether contextual functions should be analyzed. Whether the self-planning capabilities of LLMs work well in this task is unclear. Although in Appendix E, the paper acknowledges that there are failed cases caused by LLM reasoning errors, I still believe a comprehensive analysis on how LLM behaves in these tasks in general cases (not only in bad cases) could make things much clearer. For example, I am curious if the symbolic ranges it generates are always reasonable in the “good cases”, or will LLMs be conservative/aggressive/hallucinated?
- I have several concerns about the proposed approach and experiment:
- Clarity
- There are two directions the paper could consider to improve the clarity of the paper:
- The paper explains its approach clearly, but has redundancies in explanations that could be refined;
- The format of the tables could also be improved. Please refer to the accepted papers in previous years for a better table format.
- There are two directions the paper could consider to improve the clarity of the paper:
- Originality & Significance
- There are several critical existing works that the paper didn’t mention and might hinder the originality of the paper:
- IRIS: LLM-Assisted Static Analysis for Detecting Security Vulnerabilities, ICLR 2025
- Reducing False Positives in Static Bug Detection with LLMs: An Empirical Study in Industry
- LLM-based Vulnerability Detection at Project Scale: An Empirical Study
- REPOAUDIT: An Autonomous LLM-Agent for Repository-Level Code Auditing
- These papers also study how combining LLMs and traditional approaches improves program analysis. Without discussing these papers (especially the IRIS paper that also leverages LLMs for reducing FP rates of static analyzers) and the papers that they cited/citing them, the originality and significance of the paper are unclear.
- There are several critical existing works that the paper didn’t mention and might hinder the originality of the paper:
Questions
- Could you justify the reliability of using LLMs for the symbolic range reasoning and on-demand contextual exploration, as discussed in the weaknesses?
- Could you justify the position of PathAgent relative to the missing papers mentioned above?
- How many new bugs did PathAgent find in real-world projects?
- How to understand the results of the project libav with a very low precision and a recall rate of 1?
Limitations
Yes
Paper formatting concerns
N/A
Final justification
The authors addressed most of my questions in the rebuttal, which I appreciate very much. However, I am still not fully convinced about their benchmark SAFP-BENCH-C: with 0 real bugs in 3 of the 5 types, those types cannot be meaningfully evaluated regardless of how the distribution is weighted. Overall, I decided to raise my rating from 2 to 3.
Question-1: Reliability of LLM symbolic range reasoning and self-planning
To further investigate this issue, we conducted an independent validation study using 50 randomly sampled cases analyzed by our approach with GPT-4o-mini. Specifically, we inspected whether the inferred symbolic ranges were correct and whether the agent successfully retrieved the necessary contextual functions. The 50 cases include 10 false positives (FPs), 2 false negatives (FNs), and 38 successfully analyzed cases.
Among the 38 successfully analyzed cases, the LLM performed correct reasoning in 32 cases. The remaining 6 cases include 5 over-approximations and 1 under-approximation. Nevertheless, the final path-feasibility decisions were still correct because the explicit feasible path conditional expression extracted by static analysis provided sufficient evidence. For example, path constraints such as
if (x == NULL) returncan directly establish the infeasibility of a NPD warning path. The agent successfully retrieved all necessary contextual functions in all 38 correctly analyzed cases. Among the 10 FP cases, 8 were attributable to LLM reasoning errors, all of which were caused by over-approximation. In 3 of these cases, the over-approximation of key variables was further caused by the failure to retrieve necessary contextual functions. Among the 2 FN cases, one was caused by an under-approximation in LLM reasoning, while the other resulted from incorrect extraction for critical path conditional expression.Overall, the LLM achieved a correct reasoning rate of 70% (35/50) and successfully retrieved the necessary contextual functions in 94% (47/50). Most reasoning errors were caused by over-approximation, which primarily leads to FP, whereas under-approximation leads to FN. Nevertheless, LLM-based reasoning enables PATHAGENT to successfully analyze many complex cases that are challenging for traditional approaches.
Question-2: Relation to IRIS and other closely related work
Comparison with IRIS
We would like to clarify that PATHAGENT and IRIS focus on different stages of static bug analysis. IRIS primarily leverages LLMs to identify sources and sinks, while relying on CodeQL's underlying implementation for path reasoning. In contrast, PATHAGENT focuses on precisely determining the feasibility of a specific source-to-sink warning trace reported by static analyzers. Although IRIS includes a lightweight false-positive filtering step, its filtering design is the same as our studied baseline LLM4SA, which both directly feed code context to an LLM in a single prompt to determine whether it is a false positive. Therefore, our current outperformance over LLM4SA already indicates the outperformance over the false-positive reduction strategy in IRIS.
Comparison with RepoAudit
The path feasibility analysis component in RepoAudit is actually closer to our studied baseline LLMDFA: It first prompts the LLM to summarize dataflow information within individual functions and then aggregates these summaries for subsequent path-feasibility validation. To provide a more direct comparison, we applied the
PathValidatorcomponent of RepoAudit to our SAFP-Bench-C benchmark and evaluated it with GPT-4o-mini. As shown below, PATHAGENT substantially outperforms RepoAudit across all evaluation metrics:These results further demonstrate the advantage of PATHAGENT's fine-grained path-feasibility reasoning over coarse-grained approaches.
Comparison with Existing Empirical Studies
The reviewer also pointed us to two relevant empirical studies, which do not propose new methods themselves but are comparable with our work. In particular, it is worth noting that, as shown in the first empirical study ( Reducing False Positives in Static Bug Detection with LLMs: An Empirical Study in Industry ), the strongest baseline LLM4PFA is actually the arXiv version of our PATHAGENT approach. The authors of the empirical study evaluated our work in the industry setting, further providing additional and independent empirical evidence to show the consistently strong performance of our approach. That said, given the double-blind review policy, we kindly ask the reviewer not to search the arXiv version of our work, which might leak our identity.
In summary, our studied baselines LLMDFA and LLM4SA are already representative categories of LLM-based false positive reduction techniques, and the false positive strategies adopted by the two mentioned technical papers (IRIS and RepoAudit) fall into both categories. Moreover, PATHAGENT is complementary to the focus of RepoAudit and IRIS and could potentially be integrated into these pipelines to further improve their path-feasibility analysis capabilities.
Question-3: Number of newly found vulnerabilities
Through our benchmark construction process, we confirmed 47 real bugs among all reported warnings, all of which were previously unknown vulnerabilities. In the future, PATHAGENT can be combined with additional static analyzers and security checkers to analyze a broader range of warnings and potentially discover more previously unknown vulnerabilities.
Question-4: Explanation of the Libav results
The relatively low precision on Libav is mainly caused by its extremely imbalanced warning distribution. As shown in Table 6, Libav contains 114 warnings but only 4 real bugs. With 110 false positives, even 4 false positives misclassified as real bugs would reduce precision to 0.5. Therefore, all evaluated methods achieve relatively low precision on Libav. Meanwhile, because the real bugs are relatively simple and all methods successfully preserve them, all methods achieve a recall of 1.0.