利用Slither与区间分析构建一款静态分析工具
Leveraging Slither and Interval Analysis to build a Static Analysis Tool
AI总结:
针对现有顶尖工具难以完全检测智能合约缺陷的问题,本文基于Slither开发结合指令约束扩展区间分析的静态分析方案,验证了其检测特定代码缺陷的潜力。
摘要:
尽管在识别和缓解智能合约漏洞方面已取得诸多进展,但我们仍时常听闻编码或设计问题导致巨额经济损失的事件。本文介绍了我们在发现现有顶尖分析工具有时无法检测或无法完全检测出的缺陷方面的研究进展。虽仍处于初期阶段,我们已基于Slither(智能合约静态分析框架)开发出一套可行方案,该方案使用区间分析在每条指令执行期间评估合约状态。为提升结果准确性,我们对区间分析进行了扩展,同时纳入特定指令带来的约束条件。本文详细介绍了当前的方案架构,并说明了其可如何扩展至其他静态分析技术,包括如何与其他第三方工具集成。我们当前的基准测试包含多个智能合约示例,凸显了该方法在检测特定代码缺陷方面的潜力。
英文摘要:
Even though much progress has been made in identifying and mitigating smart contract vulnerabilities, we often hear about coding or design issues leading to great financial losses. This paper presents our progress toward finding defects that are sometimes not detected or completely detected by state-of-the-art analysis tools. Although it is still in its incipient phase, we developed a working solution built on top of Slither that uses interval analysis to evaluate the contract state during the execution of each instruction. To improve the accuracy of our results, we extend interval analysis by also considering the constraints imposed by specific instructions. We present the current solution architecture in detail and show how it could be extended to other static analysis techniques, including how it can be integrated with other third-party tools. Our current benchmarks contain examples of smart contracts that highlight the potential of this approach to detect certain code defects.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。