A Rust-Powered Security Scanner for Ethereum Smart Contracts
# rust# ethereum# security# blockchain
Teycir Ben Soltane
Why I Built This Smart contract vulnerabilities cost billions in losses. Tools like...
Why I Built This
Smart contract vulnerabilities cost billions in losses. Tools like Slither and Mythril are excellent for static analysis, but they're fixed in their detection capabilities. I wanted something different: a tool that gets stronger over time as the community adds patterns.
That's SCPF (Smart Contract Pattern Finder).
The key difference: SCPF is extensible by design. Every new exploit, every discovered vulnerability pattern can be added as a YAML template. The more templates you have, the more powerful the scanner becomes.
What It Does
SCPF scans Ethereum smart contracts for security vulnerabilities using customizable YAML templates.
✅ Cascade API key system (up to 6 Etherscan keys with automatic failover)
How It Works
1️⃣ Define Patterns in YAML
id:reentrancy-basicname:Basic Reentrancy Patternseverity:highpatterns:-id:external-call-with-valuepattern:'\.call\{value:'message:External call with value transfer detected
Findings appear directly in GitHub's Security tab.
🏗️ Modular Architecture
scpf-types: Core data structures
scpf-core: Scanning engine with semantic analysis
scpf-cli: Command-line interface
scpf-server: Optional web dashboard
Current Limitations
⚠️ Ethereum only: Currently supports Ethereum mainnet via Etherscan API. Multi-chain support (BSC, Polygon, Arbitrum) is planned but not yet implemented.
⚠️ Pattern-based detection: SCPF finds patterns you define. It's not a symbolic execution engine like Mythril. Best used as a first-pass filter before deeper analysis.
⚠️ False positives: Context-aware filtering reduces obvious false positives, but manual review is still needed.
Getting Started
Installation
git clone https://github.com/Teycir/smartcontractpatternfinder.git
cd smartcontractpatternfinder
cargo build --release
High-performance Rust tool for detecting security vulnerabilities in smart contracts. Ethereum mainnet support with YAML-based pattern templates, CI/CD integration, and SARIF output for GitHub Security tab.
Smart Contract Pattern Finder (SCPF)
🔍 High-performance tool for detecting security vulnerabilities and patterns in Ethereum smart contracts.
How it works: Define patterns in YAML templates → SCPF scans smart contracts → Finds matching patterns → Reports vulnerabilities