SynFuzz:通过分支条件综合的高效Concolic执行
SynFuzz: Efficient Concolic Execution via Branch Condition Synthesis
摘要:
Concolic执行是一种强大的程序分析技术,用于以系统的方式探索执行路径。与基于随机突变的模糊化相比,concolic执行特别擅长探索由复杂和紧密的分支谓词(例如,(a*b)== 0xdeadbeef)。然而,缺点是concolic执行引擎比本机执行慢得多。缓慢的一个主要原因是concolic执行引擎必须解释指令来维护程序变量的符号表达式。在这项工作中,我们提出了SynFuzz,一种新的方法来执行可扩展的concolic执行。SynFuzz通过用动态污点分析和程序合成代替解释来实现这一目标。特别是,为了翻转条件分支,SynFuzz首先使用操作感知的污点分析来记录部分表达式(即,一个草图)的分支谓词。然后使用Oracle引导的程序合成,根据输入输出对重构符号表达式。最后一步与传统的concolic执行相同- SynFuzz咨询SMT求解器以生成可以翻转目标分支的输入。通过这样做,SynFuzz可以实现接近模糊的执行速度,同时保留concolic执行翻转复杂分支谓词的能力。我们已经实现了SynFuzz的原型,并使用三组程序进行了评估:真实世界的应用程序,LAVA-M基准测试和Google Fuzzer测试套件(FTS)。评测结果表明,SynFuzz比传统concolic执行引擎具有更高的可扩展性,能够发现LAVA-M中比大多数最先进的concolic执行引擎(QSYM)更多的错误,并且在实际应用和FTS上实现了更好的代码覆盖。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。