0x-shashi/web3-audit-skills/static-analysis

Claude Code and agent skill by 0x-shashi/web3-audit-skills

Trust tier 3
  • community
Source check pending

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-analysis

SKILL.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?

BenefitDetails
Coverage baselineEnsures known vulnerability patterns are checked across ALL functions
PrioritizationFindings direct manual reviewer to highest-risk areas
SpeedMinutes vs hours/days for manual review
ConsistencyNever misses a pattern it knows about (humans do)
DocumentationGenerates structured output for audit reports

Detection Capabilities

What Static Analysis Catches Well
CategoryExamples
ReentrancyAll variants: ETH, ERC-20, cross-function, read-only
Unchecked callsMissing return value checks on transfer, send, low-level call
Access controlUnprotected selfdestruct, missing modifiers, tx.origin auth
State issuesUninitialized storage, shadowed variables, redundant state
Dangerous patternsControlled delegatecall, hardcoded gas, block.timestamp dependency
Code qualityFloating pragma, unused variables, dead code, naming conventions
Standard complianceERC-20 / ERC-721 interface compliance
Compiler issuesUse of deprecated patterns, assembly without memory safety
What Static Analysis Misses
CategoryWhy
Business logicTools don't understand protocol semantics
Economic attacksFlash loan manipulation, oracle gaming
Cross-contract interactionsLimited to single-contract analysis (mostly)
Governance attacksVote manipulation, proposal hijacking
MEV / sandwichRequires mempool context
Timing attacksCross-block state dependencies
Complex math errorsRounding, precision loss in multi-step calculations

Tool Comparison

ToolLanguageApproachSpeedFalse PositivesBest For
SlitherPythonAST + data flowFast (seconds)Low-MediumBroad vulnerability detection, code quality
MythrilPythonSymbolic execution + SMTSlow (minutes-hours)LowDeep state reachability, proving exploitability
AderynRustAST analysisVery fastLowQuick scans, CI/CD integration
SemgrepPythonPattern matchingFastDepends on rulesCustom rules, org-specific patterns
Foundry invariant testsSolidityFuzzingMediumVery lowInvariant verification
EchidnaHaskellProperty-based fuzzingSlowVery lowFinding edge cases in complex state
MedusaGoParallel fuzzingMediumVery lowFaster alternative to Echidna
Recommended Workflow
1. Slither (always — fast, broad coverage)
│
2. Aderyn (always — fast, complementary detectors)
│
3. Semgrep with custom rules (if org has rules)
│
4. Mythril (selectively — on high-risk functions only)
│
5. Echidna/Medusa (if invariant tests needed)

Slither Quick Reference

Installation
bash
pip install slither-analyzer
# Requires solc installed (managed by solc-select)
pip install solc-select
solc-select install 0.8.20
solc-select use 0.8.20
Common Commands
bash
# Full scan
slither .
# Filter out dependencies
slither . --filter-paths "node_modules|lib|test"
# Specific detectors
slither . --detect reentrancy-eth,arbitrary-send-eth,controlled-delegatecall
# JSON output
slither . --json output.json
# Code analysis printers
slither . --print contract-summary
slither . --print function-summary
slither . --print inheritance-graph
slither . --print call-graph
slither . --print variable-order # Storage layout

Aderyn Quick Reference

Installation
bash
cargo install aderyn
# Or via npm
npm install -g aderyn
Usage
bash
# Full scan
aderyn .
# Specific scope
aderyn . --src src/
# Markdown output
aderyn . --output report.md
Key Detectors
DetectorDescription
centralization-riskFunctions callable by single address
unsafe-erc20-functionsDirect transfer/approve without Safe wrapper
push-0PUSH0 opcode incompatible with older EVM versions
solmate-safe-transfer-libSolmate SafeTransferLib doesn't check contract existence
unprotected-initMissing initializer guard

Semgrep Quick Reference

bash
# Install
pip install semgrep
# Run with Solidity rules
semgrep --config "p/solidity" .
# Custom rule example
semgrep --config custom-rules/ .
Custom Rule Example
yaml
rules:
- id: unchecked-low-level-call
patterns:
- pattern: |
(bool $SUCCESS, ) = $ADDR.call{...}(...);
- pattern-not-inside: |
require($SUCCESS, ...);
message: "Low-level call return value not checked"
severity: ERROR
languages: [solidity]

Resources

Workflows

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/0x-shashi/web3-audit-skills/static-analysis/badge)](https://verified-skill.com/skills/0x-shashi/web3-audit-skills/static-analysis)

Something wrong with this skill or its page? Tell us.