arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.20183cs.SEcs.CR
收藏

揭示Go的隐藏bug:一种新的并发框架

Exposing Go's Hidden Bugs: A Novel Concolic Framework

Telecom Paris(巴黎电信学院);Ledger Donjon

Karolina Gorna, Nicolas Iooss, Yannick Seurin, Rida Khatoun

AI总结:

本文提出Zorya框架,结合具体和符号执行技术全面评估Go程序,通过系统探索执行路径发现传统测试无法检测的漏洞,并利用Ghidra的P-Code中间表示进行分析。

摘要:

Go编程语言在基础设施后端和区块链项目中的广泛应用提高了安全措施的需求。已有的单元测试、静态分析和程序模糊测试提供了基础保护机制。尽管符号执行工具已做出显著贡献,但仍有机会解决Go运行时和并发模型的复杂性。本文提出Zorya,一种利用具体和符号(并发)执行的新型方法,以全面评估Go程序。通过系统探索执行路径以发现传统测试无法检测的漏洞,符号执行提供独特优势,结合具体执行可缓解路径爆炸问题。我们的解决方案使用Ghidra的P-Code作为中间表示(IR)。该实现检测TinyGo编译器中的运行时恐慌,并支持通用和自定义不变量。此外,P-Code的通用IR性质使能够分析其他语言(如C)编写的程序。未来可能的增强包括智能分类并发执行日志以识别漏洞模式。

英文摘要:

The widespread adoption of the Go programming language in infrastructure backends and blockchain projects has heightened the need for improved security measures. Established techniques such as unit testing, static analysis, and program fuzzing provide foundational protection mechanisms. Although symbolic execution tools have made significant contributions, opportunities remain to address the complexities of Go's runtime and concurrency model. In this work, we present Zorya, a novel methodology leveraging concrete and symbolic (concolic) execution to evaluate Go programs comprehensively. By systematically exploring execution paths to uncover vulnerabilities beyond conventional testing, symbolic execution offers distinct advantages, and coupling it with concrete execution mitigates the path explosion problem. Our solution employs Ghidra's P-Code as an intermediate representation (IR). This implementation detects runtime panics in the TinyGo compiler and supports both generic and custom invariants. Furthermore, P-Code's generic IR nature enables analysis of programs written in other languages such as C. Future enhancements may include intelligent classification of concolic execution logs to identify vulnerability patterns.

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

↑