arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.00151cs.SE
收藏

cozy:面向二进制程序的比较式符号执行

cozy: Comparative Symbolic Execution for Binary Programs

Caleb Helbling, Graham Leach-Krouse, Sam Lasser, Greg Sullivan

AI总结:

本研究提出二进制差异分析工具cozy,基于angr符号执行框架寻找补丁前后二进制的兼容终态并对比差异,配套网页可视化界面辅助微补丁验证。

摘要:

本文介绍了cozy,一款用于分析并可视化两个版本软件二进制程序间差异的工具。cozy的核心应用场景是验证“微补丁”——即插入现有已编译二进制程序中的小型二进制级或汇编级补丁。为完成该任务,cozy采用基于Python的angr符号执行框架。该工具分析符号执行的输出,寻找补丁前后二进制程序中相互兼容的终态(即可由同一输入到达的状态),随后对比兼容状态在寄存器、内存及副作用方面的可观测差异。为提升易用性,cozy配备了基于网页的可视化界面用于查看对比结果,该界面提供了丰富的操作功能,可对各类程序数据进行剪枝、筛选与探索。

英文摘要:

This paper introduces cozy, a tool for analyzing and visualizing differences between two versions of a software binary. The primary use case for cozy is validating "micropatches": small binary or assembly-level patches inserted into existing compiled binaries. To perform this task, cozy leverages the Python-based angr symbolic execution framework. Our tool analyzes the output of symbolic execution to find end states for the pre- and post-patched binaries that are compatible (reachable from the same input). The tool then compares compatible states for observable differences in registers, memory, and side effects. To aid in usability, cozy comes with a web-based visual interface for viewing comparison results. This interface provides a rich set of operations for pruning, filtering, and exploring different types of program data.

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

↑