ComputingComputer EngineeringComputer ScienceCompilersProgramming LanguagesSoftware EngineeringCode Review For SecurityControl-flow AnalysisData-flow AnalysisSmart ContractsSoftware Vulnerability DiscoveryStatic Code AnalysisCode OptimizationCode ReviewConversion To Static Single AssignmentIntermediate Representation DesignReduced Instruction Set ComputingSmart Contract Vulnerability AnalysisStatic Bug DetectionStatic Single Assignment Form
Slither enables common program analysis techniques such as dataflow and taint tracking, supporting four main use cases: vulnerability detection, code optimization, contract comprehension, and code review assistance. The paper introduces Slither, a static analysis framework for Ethereum smart contracts, and outlines its design and evaluation on real‑world contracts. Slither converts Solidity contracts into SlithIR, an SSA‑based intermediate representation with a reduced instruction set that preserves semantics, enabling efficient analysis; the authors benchmarked it against other tools on a large dataset and manually reviewed 1,000 top contracts. Slither’s bug detection is faster, more accurate, and outperforms competing static analysis tools in speed, robustness, and balanced detection versus false positives.
This paper describes Slither, a static analysis framework designed to provide rich information about Ethereum smart contracts. It works by converting Solidity smart contracts into an intermediate representation called SlithIR. SlithIR uses Static Single Assignment (SSA) form and a reduced instruction set to ease implementation of analyses while preserving semantic information that would be lost in transforming Solidity to bytecode. Slither allows for the application of commonly used program analysis techniques like dataflow and taint tracking. Our framework has four main use cases: (1) automated detection of vulnerabilities, (2) automated detection of code optimization opportunities, (3) improvement of the user's understanding of the contracts, and (4) assistance with code review. In this paper, we present an overview of Slither, detail the design of its intermediate representation, and evaluate its capabilities on real-world contracts. We show that Slither's bug detection is fast, accurate, and outperforms other static analysis tools at finding issues in Ethereum smart contracts in terms of speed, robustness, and balance of detection and false positives. We compared tools using a large dataset of smart contracts and manually reviewed results for 1000 of the most used contracts.
5
Making Smart Contracts Smarter
Loi Luu, Duc-Hiep Chu, Hrishi Olickel et al. · 2016 · 2.2K citations
Petar Tsankov, Andrei Dan, Dana Drachsler-Cohen et al. · 2018 · 1K citations
Global value numbers and redundant computations
Barry K. Rosen, Mark N. Wegman, F. K. Zadeck · 1988 · 483 citations
Under-optimized smart contracts devour your money
Ting Chen, Xiaoqi Li, Xiapu Luo et al. · 2017 · 384 citations
Towards saving money in using smart contracts