0x-shashi/web3-audit-skills/static-analysis
Claude Code and agent skill by 0x-shashi/web3-audit-skills
- community
Checking that the SKILL.md file is still in the repository.
Integrate automated static analysis tools (Slither, Mythril, Aderyn, Semgrep) into the audit workflow to catch known vulnerability patterns before manual review. Use when starting an audit to establish a coverage baseline, or when configuring static analysis tooling for a project.
Install
npx vskill@latest install 0x-shashi/web3-audit-skills/static-analysisSKILL.md
Static Analysis Skill
Integrate automated static analysis tools into the audit workflow to catch low-hanging vulnerabilities before manual review. Static analysis should be the FIRST step after compilation — it surfaces issues that automated tools excel at finding, freeing manual review time for complex logic and economic vulnerabilities.
Why Static Analysis First?
| Benefit | Details | |
|---|---|---|
| Coverage baseline | Ensures known vulnerability patterns are checked across ALL functions | |
| Prioritization | Findings direct manual reviewer to highest-risk areas | |
| Speed | Minutes vs hours/days for manual review | |
| Consistency | Never misses a pattern it knows about (humans do) | |
| Documentation | Generates structured output for audit reports |
Detection Capabilities
What Static Analysis Catches Well
| Category | Examples | |
|---|---|---|
| Reentrancy | All variants: ETH, ERC-20, cross-function, read-only | |
| Unchecked calls | Missing return value checks on transfer, send, low-level call | |
| Access control | Unprotected selfdestruct, missing modifiers, tx.origin auth | |
| State issues | Uninitialized storage, shadowed variables, redundant state | |
| Dangerous patterns | Controlled delegatecall, hardcoded gas, block.timestamp dependency | |
| Code quality | Floating pragma, unused variables, dead code, naming conventions | |
| Standard compliance | ERC-20 / ERC-721 interface compliance | |
| Compiler issues | Use of deprecated patterns, assembly without memory safety |
What Static Analysis Misses
| Category | Why | |
|---|---|---|
| Business logic | Tools don't understand protocol semantics | |
| Economic attacks | Flash loan manipulation, oracle gaming | |
| Cross-contract interactions | Limited to single-contract analysis (mostly) | |
| Governance attacks | Vote manipulation, proposal hijacking | |
| MEV / sandwich | Requires mempool context | |
| Timing attacks | Cross-block state dependencies | |
| Complex math errors | Rounding, precision loss in multi-step calculations |
Tool Comparison
| Tool | Language | Approach | Speed | False Positives | Best For | |
|---|---|---|---|---|---|---|
| Slither | Python | AST + data flow | Fast (seconds) | Low-Medium | Broad vulnerability detection, code quality | |
| Mythril | Python | Symbolic execution + SMT | Slow (minutes-hours) | Low | Deep state reachability, proving exploitability | |
| Aderyn | Rust | AST analysis | Very fast | Low | Quick scans, CI/CD integration | |
| Semgrep | Python | Pattern matching | Fast | Depends on rules | Custom rules, org-specific patterns | |
| Foundry invariant tests | Solidity | Fuzzing | Medium | Very low | Invariant verification | |
| Echidna | Haskell | Property-based fuzzing | Slow | Very low | Finding edge cases in complex state | |
| Medusa | Go | Parallel fuzzing | Medium | Very low | Faster alternative to Echidna |
Recommended Workflow
Slither Quick Reference
Installation
Common Commands
Aderyn Quick Reference
Installation
Usage
Key Detectors
| Detector | Description | |
|---|---|---|
centralization-risk | Functions callable by single address | |
unsafe-erc20-functions | Direct transfer/approve without Safe wrapper | |
push-0 | PUSH0 opcode incompatible with older EVM versions | |
solmate-safe-transfer-lib | Solmate SafeTransferLib doesn't check contract existence | |
unprotected-init | Missing initializer guard |
Semgrep Quick Reference
Custom Rule Example
Resources
- Slither Guide — Full configuration, detectors, triage
Workflows
- Static Analysis Workflow — Step-by-step process
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/static-analysis/SKILL.md
Popularity
- Repository stars
- 46
- Repository forks
- 6
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/0x-shashi/web3-audit-skills/static-analysis)