Symbolon:通过学习代码变换实现符号执行 Symbolon: Symbolic Execution by Learning Code Transformation 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-06-27
⬇️ 3 次下载
👁️ 预览文献
💡 AI 中文简介
符号执行是漏洞检测、安全测试等领域的强大程序分析技术,但面对真实程序常因路径爆炸和复杂约束而难以扩展。本文提出Symbolon框架,把代码变换的发现建模为程序表示上的搜索问题:先在小程序上离线学习变换,提炼为可复用的智能体技能库,再由智能体在仓库级目标上按上下文实例化。实验表明,Symbolon在32个真实程序、16种搜索策略下将KLEE的行覆盖率平均提升3.69倍,峰值内存和单查询求解时间分别降低29.2倍和123倍,并在最新Linux内核中发现21个此前未知的漏洞,均已上报维护者。
领域程序分析与软件安全(符号执行、程序变换)
适合谁读需要一定专业背景(程序分析、符号执行与编译原理基础)
核心贡献1. 将代码变换的发现形式化为程序表示上的搜索问题,并设计在小程序上离线学习、提炼为可复用智能体技能库、再在仓库级目标上按上下文实例化的框架;2. 在KLEE上跨16种搜索策略、32个真实程序显著提升覆盖率并大幅降低内存与求解开销,并在最新Linux内核中发现21个新漏洞。
关键数据行覆盖率平均提升3.69倍;峰值内存降低29.2倍;单查询求解时间降低123倍;在32个真实程序、16种搜索策略上验证;在最新Linux内核中发现21个此前未知漏洞并全部上报维护者。
推荐理由如果你关心符号执行怎么才能真正跑得动大程序,这篇把“学代码变换”玩成了智能体技能库,效果和挖到的内核漏洞都很硬核,值得一读。
关键词["符号执行", "代码变换", "程序表示", "智能体技能", "漏洞检测", "可扩展性"]

原文摘要

查看英文原文摘要

Symbolic execution is a powerful program analysis technique with broad applications, such as vulnerability detection, security testing, and malware analysis. However, this technique is known to suffer from scalability issues, e.g., path explosion, complex constraints, due to certain structural and semantic patterns commonly presented in real-world programs. Existing approaches attempt to escape these patterns by transforming programs into new representations to reduce the execution cost. Unfortunately, these transformations are often too rigid to exploit diverse local program semantics and sometimes rely on compiler optimizations designed for concrete execution that may misalign with the goals of symbolic execution. We present Symbolon, a framework that automatically learns diverse code transformations and applies them context-sensitively to improve symbolic execution. Our key insight is to formulate transformation discovery as a search problem over program representations. To make the search practical, Symbolon learns transformations cheaply offline on small programs, distills them into a reusable library of agent skills, and uses an agent to instantiate these skills on repo-level targets. Our evaluation shows that Symbolon substantially improves the symbolic execution engine KLEE across 16 search strategies on 32 real-world programs, increasing line coverage by 3.69x on average while reducing peak memory and per-query solver time by 29.2x and 123x, respectively. When applied to the latest Linux kernel, Symbolon uncovers 21 previously unknown bugs, all of which have been reported to the kernel maintainers.