NeuroSCA:面向智能合约混合模糊测试的神经符号约束抽象
NeuroSCA: Neuro-Symbolic Constraint Abstraction for Smart Contract Hybrid Fuzzing
AI总结:
NeuroSCA通过神经符号约束抽象技术,提升智能合约混合模糊测试的效率和效果。
摘要:
混合模糊测试结合了灰盒模糊测试的吞吐量与符号执行的精确性,以揭示深层智能合约漏洞。然而,其有效性往往受到约束污染的限制:在现实世界合约中,路径条件会从全局状态和防御性检查中拾取语义噪声,这些检查在语法上与目标分支交织在一起,但语义上与之无关,导致SMT超时。我们提出NeuroSCA(神经符号约束抽象),一种轻量级框架,该框架会选择性地插入大型语言模型(LLM)作为语义约束抽象层。NeuroSCA利用LLM识别一小部分目标相关的约束,仅用SMT求解器解决此抽象,并通过验证器在循环中的验证机制进行验证,该机制重新引入任何遗漏的约束并保持正确性。在现实世界合约上的实验表明,NeuroSCA在受污染的路径上加快了解决速度,提高了代表性困难合约的覆盖率和漏洞发现率,并通过其选择性调用策略,仅以微小的开销实现了这些增益,且在简单合约上没有失去有效性。
英文摘要:
Hybrid fuzzing combines greybox fuzzing's throughput with the precision of symbolic execution to uncover deep smart contract vulnerabilities. However, its effectiveness is often limited by constraint pollution: in real world contracts, path conditions pick up semantic noise from global state and defensive checks that are syntactically intertwined with, but semantically peripheral to, the target branch, causing SMT timeouts. We propose NeuroSCA (Neuro-Symbolic Constraint Abstraction), a lightweight framework that selectively inserts a Large Language Model (LLM) as a semantic constraint abstraction layer. NeuroSCA uses the LLM to identify a small core of goal-relevant constraints, solves only this abstraction with an SMT solver, and validates models via concrete execution in a verifier-in-the-loop refinement mechanism that reintroduces any missed constraints and preserves soundness. Experiments on real-world contracts show that NeuroSCA speeds up solving on polluted paths, increases coverage and bug-finding rates on representative hard contracts, and, through its selective invocation policy, achieves these gains with only modest overhead and no loss of effectiveness on easy contracts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。