InSPECtor:通过代理提升SLEIGH处理器规格的准确性 InSPECtor: Improving SLEIGH Processor Specification Veracity via Proxy 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-08-13
⬇️ 9 次下载
👁️ 预览文献
💡 AI 中文简介
处理器规格说明书是反汇编器、反编译器和模拟器等安全工具的基础,但其正确性很少被检查。错误会导致程序行为扭曲、漏洞被掩盖。我们首次实现了对开源SLEIGH语言规格(主要用于Ghidra)的系统性验证。我们设计了一个基于代理的自动化测试框架,利用规格自身的结构枚举可解码指令并生成初始状态,然后通过比较模拟器与硬件参考来测试指令的解码和模拟。在x86-64、AArch64、ARM/Thumb、RISC-V、MSP430等规格上,我们发现了超过38,920处差异,导致125个独特错误,并提出了修复建议。我们还提炼出8条具体建议以改进未来工作。
领域程序分析、安全工具、处理器规格验证
适合谁读需要一定专业背景
核心贡献["首次实现SLEIGH处理器规格的系统性验证,提出基于代理的自动化测试框架InSPECtor。", "在多种架构中发现大量差异和错误,并给出修复建议和8条改进建议。"]
关键数据发现超过38,920处差异,导致125个独特错误,覆盖5种架构。
推荐理由如果你关心反编译器和模拟器的可靠性,这篇论文提供了首个系统性验证工具,能帮你发现隐藏的处理器规格错误。
关键词["处理器规格验证", "SLEIGH", "Ghidra", "差分测试", "指令模拟", "安全工具"]

原文摘要

查看英文原文摘要

Processor specifications underpin critical security and program- analysis tools such as disassemblers, decompilers, and emulators, yet, their correctness is rarely examined. Errors in specifications distort program behaviour, obscure vulnerabilities, and enable analysis-evasion techniques. Validating processor specifications is a non-trivial task. Our study is a significant undertaking to enable, for the first time, the systematic validation of open-source SLEIGH language specifications, predominantly used by Ghidra. We design and implement a testing framework based on an automated oracle validation strategy by proxy. Our approach leverages the structure encoded in a specification itself to enumerate decodable instruction forms and generate targeted initial states. Then differentially test the successful decoding and emulation of those instructions by comparing emulators exercising the processor specification against hardware references. Applying InSPECtor across diverse, open-source specifications---x86-64, AArch64, ARM/Thumb, RISC-V, MSP430---embedding differences in specification styles, author preferences, and instruction set architecture designs, we uncovered over 38,920 discrepancies that led to 125 unique bugs with proposed fixes, identifying decoding and semantic defects as well as cross-vendor inconsistencies. We distill our findings into 8 concrete recommendations to drive future improvements. Our work underscores the importance of specification correctness and provides a practical tool to substantially improve the fidelity of SLEIGH processor specifications, strengthening the reliability of downstream security and analysis tools.