智能体符号执行框架用 CrossHair 在 11 个开源 Python 应用中发现 1,050 个 bug
Bug Finding With Agentic Symbolic Execution
AI 导读
研究团队设计一个智能体框架,编排 CrossHair 符号执行工具与 AI 编码智能体,自动为仓库添加断言并为外部数据库合成约束感知的符号环境。
推荐理由
论文给出智能体与符号执行结合的具体数据和两类互补的 bug 分布,读者可据此评估能否迁移到自己的 Python 项目。
正文 · 原文
Abstract:Symbolic execution, in tools such as CrossHair for Python, is a powerful technique for finding bugs, but two barriers hinder its adoption: the human effort of annotating code with assertions, and the need to model the execution environment outside Python, such as an external database. To overcome both, we design an agentic harness that orchestrates the symbolic execution tool CrossHair together with an AI coding agent. Without human intervention, it instruments a repository with assertions, synthesizes a constraint-aware symbolic environment for the database, runs symbolic execution, and constructs a concrete test as evidence for each bug it reports. We evaluate our harness on 1,156,044 lines of Python code over 11 popular open-source Python web applications (Zulip, NetBox, Apache Superset, and others). With the synthesized environment, CrossHair executes 81% of the 5,406 contracted functions, against 4.5% without it. Our pipeline finds 1,050 bugs, each reproduced by a test against the unmodified application, 221 of them by CrossHair, and 312 of them are missed by a baseline in which the same LLM inspects the code. The two find different kinds of bugs: CrossHair's are mostly crashes on input-domain corner cases that validation admits, such as empty strings, missing fields and unusual characters, while inspection's are mostly bugs that produce wrong output. Our framework thus lets symbolic execution supplement inspection-based bug finding.
| Subjects: | Software Engineering (cs.SE); Artificial Intelligence (cs.AI); Logic in Computer Science (cs.LO); Symbolic Computation (cs.SC) |
| Cite as: | arXiv:2611.15596 [cs.SE] |
| (or arXiv:2611.15596v1 [cs.SE] for this version) | |
| https://doi.org/10.48550/arXiv.2611.15596 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: George Granberry [view email]
[v1]
Wed, 11 Nov 2026 15:15:01 UTC (351 KB)
来源:arXiv cs.AI · arxiv.org