从TinyGo到gc编译器:扩展Zorya框架以支持现实世界的Go二进制文件
From TinyGo to gc Compiler: Extending Zorya's Concolic Framework to Real-World Go Binaries
AI总结:
本文扩展了Zorya框架,使其能够处理由Go标准gc编译器生成的多线程二进制文件,通过恢复操作系统线程状态、中和运行时抢占和引入具有复制-on-写语义的叠加路径分析来检测未被取的分支中的隐蔽漏洞。
摘要:
Zorya是一种基于约束的执行框架,它将编译后的二进制文件提升到Ghidra的P-Code中间表示,并使用Z3 SMT求解器通过同时推理具体和符号值来检测漏洞。先前版本仅支持单线程的TinyGo二进制文件。在本文中,我们扩展Zorya以支持由Go标准gc编译器生成的多线程二进制文件。这通过从gdb转储中恢复操作系统线程状态、中和运行时抢占以及引入具有复制-on-写语义的叠加路径分析来检测未被取的分支中的隐蔽漏洞。我们严格评估Zorya在11个现实世界中的漏洞,这些漏洞来自生产中的Go项目,如Kubernetes、Go-Ethereum和CoreDNS。我们的评估显示,Zorya在二进制级别检测到七个错误,包括一个未被其他评估工具发现的隐蔽整数溢出错误。
英文摘要:
Zorya is a concolic execution framework that lifts compiled binaries to Ghidra's P-Code intermediate representation and uses the Z3 SMT solver to detect vulnerabilities by reasoning over both concrete and symbolic values. Previous versions supported only single-threaded TinyGo binaries. In this paper, we extend Zorya to multi-threaded binaries produced by Go's standard gc compiler. This is achieved by restoring OS thread states from gdb dumps, neutralizing runtime preemption, and introducing overlay path analysis with copy-on-write semantics to detect silent vulnerabilities on untaken branches. We rigorously assess Zorya on 11 real-world vulnerabilities from production Go projects such as Kubernetes, Go-Ethereum, and CoreDNS. Our evaluation shows that Zorya detects seven bugs at the binary level, including a silent integer overflow detects no other evaluated tool finds without a manually written oracle.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。