Slither analyzes Solidity and Vyper smart contracts for vulnerabilities. It runs built-in detectors, prints contract summaries, and exposes a Python API for custom checks.
Overview
Slither is a static analysis framework for Solidity and Vyper smart contracts. It runs a suite of vulnerability detectors, highlights where issues appear in source code, and helps developers understand contract structure without manual line-by-line review.
Built-in detectors cover common smart contract problems such as reentrancy, unsafe delegatecall use, and functions that allow unauthorized contract destruction. Printers report summaries of functions, state variables, authorization patterns, and call graphs. Additional command-line utilities check ERC conformance, upgradeability patterns, storage reads, and related review tasks.
Slither integrates with continuous integration and common Ethereum build setups including Hardhat and Foundry. It can analyze full projects that rely on those compilers, or a single Solidity file when dependencies are not required. An intermediate representation called SlithIR supports precise analyses and taint tracking for custom detector plugins written in Python.
The tool is aimed at smart contract developers, security reviewers, and researchers who need fast feedback on Solidity code. Custom scripts can answer questions such as which functions write a given state variable or how control flow depends on particular values.
Key features
- Vulnerability detectors for Solidity and Vyper
- Source locations for reported issues
- CI integration with Hardhat and Foundry
- Contract summary and authorization printers
- Python API for custom analyses
- SlithIR intermediate representation
- Optional Markdown checklist reports
- Companion CLI tools for ERC and upgrades
Use cases
- Scanning contracts for known vulnerability patterns
- Running checks on each commit in CI
- Writing custom Python security analyses
- Quick review of function and auth layout
- Prototyping research analyses on smart contracts
Does the same job as
Slither doesn't name these products itself, but its own description shows it does the same job.