arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.13041cs.SEcs.AIcs.HC
收藏

针对静态分析漏洞发现的代码基础型智能体解释

Code-Grounded Agentic Explanations for Static Analysis Vulnerability Findings

Fraunhofer IEM(弗劳恩霍夫工业工程研究所);Heinz Nixdorf Institute, Paderborn University(海因茨·诺伊多夫学院,帕德博恩大学);Amazon Web Services(亚马逊云科技)

Oshando Johnson, Ranjith Krishnamurthy, Rohith Kumar Shanmuganathan, Goran Piskachev, Eric Bodden

AI总结:

该研究针对SAST工具漏洞发现解释不足的问题,重新设计SAFE插件,采用代码基础型智能体解释,实验显示可用性和修复正确率显著提升。

摘要:

静态应用安全测试(SAST)工具可早期发现漏洞,其判定基于规则且可审计。但开发者通常会忽略无法解读的发现结果。大型语言模型可提供缺失的解释,但若同时将检测任务交给模型,就会丧失使静态分析具备可辩护性的可审计性。我们保留分析器的检测功能,仅让模型负责解释。针对20名参与者的初步用户研究和19名从业者的研讨会得出了5项需求。基于这些需求,我们重新设计了SAFE(一款开源IntelliJ IDEA插件),该插件可解释任何以静态分析结果交换格式(SARIF)输出的分析器的发现结果。它按需求分层提供解释,将解释与报告的数据流关联,并将单提示后端替换为智能体,该智能体在回答前必须查阅代码仓库和触发的规则。针对24名参与者的被试内交叉实验将重新设计的版本与其前身进行了比较。系统可用性量表(SUS)上的感知可用性从77.3提升至85.0。在解释质量项中,可操作性提升最大,这是早期两项研究均指出的最薄弱方面,且正确修复的几率提高了2.6倍。分类准确率和每个发现的时间无差异,我们将其解读为无信息而非等价。信任是唯一未发生变化的指标,后续访谈表明,代码基础使发现结果更易理解而非更易信任。参与者还提出了一项未被任何需求预见的边界,希望工具在他们判断和应用时能同时进行发现和解释。

英文摘要:

Static application security testing (SAST) tools surface vulnerabilities early and their verdicts are rule-based and auditable. Yet developers routinely dismiss findings they cannot interpret. Large language models can supply the missing explanation, but designs that also hand the model the detection give up the auditability that makes static analysis defensible. We keep detection with the analyser and give the model only the explaining. A preliminary user study with 20 participants and a workshop with 19 practitioners yielded five requirements. Guided by these we redesigned SAFE, an open-source IntelliJ IDEA plugin that explains findings from any analyser reporting in the Static Analysis Results Interchange Format. It tiers explanations by demand, ties them to the reported data flow, and replaces the single-prompt backend with an agent that must consult the repository and the rule that fired before answering. A within-subjects crossover experiment with 24 participants compared the redesign against its predecessor. Perceived usability rose from 77.3 to 85.0 on the System Usability Scale. Actionability gained most among the explanation-quality items, the aspect both earlier studies flagged as weakest, and the odds of a correct remediation were 2.6 times higher. Triage accuracy and time per finding were indistinguishable, which we read as uninformative rather than as equivalence. Trust was the one measure that did not move, and the closing interviews indicate that grounding made findings easier to understand rather than easier to believe. Participants also drew a boundary no requirement anticipated, wanting the tool to find and explain while they judge and apply.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑