Skip to main content
QUICK REVIEW

[论文解读] SynFuzz: Efficient Concolic Execution via Branch Condition Synthesis

Wookhyun Han, Md Lutfor Rahman|arXiv (Cornell University)|May 23, 2019
Software Testing and Debugging TechniquesComputer Science参考文献 49被引用 3
一句话总结

SynFuzz 提出了一种新颖的 concolic 执行框架,该框架用动态污点分析和基于 oracle 的程序合成替代了符号指令解释,从而在保持翻转复杂分支谓词能力的同时实现了接近模糊测试的性能。通过从输入-输出对中合成符号表达式,并仅使用 SMT 求解器进行约束求解,SynFuzz 在可扩展性和代码覆盖率方面显著优于传统 concolic 执行器。

ABSTRACT

Concolic execution is a powerful program analysis technique for exploring execution paths in a systematic manner. Compare to random-mutation-based fuzzing, concolic execution is especially good at exploring paths that are guarded by complex and tight branch predicates (e.g., (a*b) == 0xdeadbeef). The drawback, however, is that concolic execution engines are much slower than native execution. One major source of the slowness is that concolic execution engines have to the interpret instructions to maintain the symbolic expression of program variables. In this work, we propose SynFuzz, a novel approach to perform scalable concolic execution. SynFuzz achieves this goal by replacing interpretation with dynamic taint analysis and program synthesis. In particular, to flip a conditional branch, SynFuzz first uses operation-aware taint analysis to record a partial expression (i.e., a sketch) of its branch predicate. Then it uses oracle-guided program synthesis to reconstruct the symbolic expression based on input-output pairs. The last step is the same as traditional concolic execution - SynFuzz consults a SMT solver to generate an input that can flip the target branch. By doing so, SynFuzz can achieve an execution speed that is close to fuzzing while retain concolic execution's capability of flipping complex branch predicates. We have implemented a prototype of SynFuzz and evaluated it with three sets of programs: real-world applications, the LAVA-M benchmark, and the Google Fuzzer Test Suite (FTS). The evaluation results showed that SynFuzz was much more scalable than traditional concolic execution engines, was able to find more bugs in LAVA-M than most state-of-the-art concolic execution engine (QSYM), and achieved better code coverage on real-world applications and FTS.

研究动机与目标

  • 解决由缓慢的符号解释和 SMT 求解引起的 concolic 执行可扩展性瓶颈。
  • 实现对由复杂分支条件保护的深层嵌套路径的高效探索。
  • 在不牺牲路径覆盖率或精度的前提下,减少对符号解释的依赖。
  • 在保持对难以翻转分支的有效性的同时,将 concolic 执行性能提升至接近模糊测试的水平。
  • 为现有 concolic 执行和基于学习的模糊测试技术提供一种可扩展、可迁移的替代方案。

提出的方法

  • 使用动态污点分析追踪影响分支谓词的输入字节,捕获分支条件的部分符号表达式(即‘草图’)。
  • 基于 oracle 的程序合成从执行过程中收集的输入-输出对中重建分支谓词的完整符号公式。
  • 将合成的符号表达式与 SMT 求解器结合,生成能够翻转目标分支的输入。
  • 该方法消除了对指令级别符号解释的需求,显著降低了执行开销。
  • SynFuzz 集成到现有的 concolic 执行流水线中,用基于合成的公式重构替代符号解释。
  • 该方法通过分析条件与输入数据之间的依赖关系,支持嵌套分支的翻转。

实验结果

研究问题

  • RQ1程序合成是否能够比符号解释更高效地重构符号分支谓词?
  • RQ2动态污点分析与程序合成相结合,能否实现接近灰盒模糊测试的 concolic 执行性能?
  • RQ3消除符号解释是否能提升在深度或复杂执行路径上的可扩展性?
  • RQ4SynFuzz 是否能在漏洞发现和代码覆盖率方面超越最先进的 concolic 执行器(如 QSYM)?
  • RQ5该基于合成的方法在真实程序和结构化输入格式上的有效性如何?

主要发现

  • 在 LAVA-M 基准测试的 'uniq' 程序中,SynFuzz 找到了全部 29 个列出的漏洞,表现优于大多数其他工具。
  • 在 'who' 程序中,SynFuzz 发现了 2,218 个漏洞——仅次于 Redqueen(2,462 个)和 Neuzz(1,582 个)发现的数量。
  • 在 Google FTS 套件中,SynFuzz 的代码覆盖率高于 QSYM、Angora 及其他领先的 concolic 执行器。
  • 在 'md5sum' 程序中,SynFuzz 找到了全部 61 个列出的漏洞,性能与 QSYM 和 Neuzz 相当或更优。
  • SynFuzz 实现了接近模糊测试的执行速度,同时保持了对 (a*b) == 0xdeadbeef 等复杂谓词保护路径的探索能力。
  • 原型验证表明,程序合成能够有效替代符号解释,降低开销并提升可扩展性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。