analyzing-ethereum-smart-contract-vulnerabilities — Claude Code skill
Runs static and symbolic analysis on Solidity smart contracts using Slither and Mythril. Catches reentrancy, integer overflows, and access flaws before deployment.
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a claude-codeWhat analyzing-ethereum-smart-contract-vulnerabilities does
This skill organizes Solidity smart contract auditing into four distinct steps. Slither executes static analysis across intermediate code representations, scanning contracts against more than 90 built-in detectors. Next, Mythril performs symbolic execution using SMT solvers to test execution paths for reentrancy, integer overflows, and unchecked external calls.
Findings from both tools are combined, deduplicated, and ranked by exploitability. The final deliverable is a structured JSON audit report containing SWC identifiers, affected functions, and remediation steps.
Execution will fail unless the environment includes Python 3.10+, slither-analyzer, mythril, and solc. Project-level analysis can also hook into Foundry or Hardhat if they are configured.
What it helps with
- detect reentrancy bugs and integer overflows in Solidity code
- run Slither static checks with over 90 security detectors
- execute Mythril symbolic analysis across contract call paths
- generate structured JSON audit reports with SWC weakness identifiers
Example prompts for the agent
- Audit Token.sol for reentrancy and access control flaws using Slither and Mythril
- Run symbolic execution on Vault.sol and report execution path vulnerabilities
- Analyze our Solidity smart contracts and produce a JSON report with SWC mappings
How to install analyzing-ethereum-smart-contract-vulnerabilities
1Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a claude-code2Manually: put the files in place
~/.claude/skills/analyzing-ethereum-smart-contract-vulnerabilities/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/analyzing-ethereum-smart-contract-vulnerabilities/
1Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a codex2Manually: put the files in place
.agents/skills/analyzing-ethereum-smart-contract-vulnerabilities/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a cursor2Manually: put the files in place
.cursor/skills/analyzing-ethereum-smart-contract-vulnerabilities/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install mukul975/Anthropic-Cybersecurity-Skills analyzing-ethereum-smart-contract-vulnerabilities2Manually: put the files in place
.github/skills/analyzing-ethereum-smart-contract-vulnerabilities/SKILL.md1Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a gemini-cli2Platform CLI
gemini skills install https://github.com/mukul975/Anthropic-Cybersecurity-Skills --path skills/analyzing-ethereum-smart-contract-vulnerabilitiesManually: put the files in place
.devin/skills/analyzing-ethereum-smart-contract-vulnerabilities/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about analyzing-ethereum-smart-contract-vulnerabilities
How do I install analyzing-ethereum-smart-contract-vulnerabilities in Claude Code?
Run npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a claude-code.
What does analyzing-ethereum-smart-contract-vulnerabilities do?
It coordinates Slither and Mythril against Solidity contracts, deduplicates the findings, and produces a JSON audit report with severity ratings and SWC identifiers.
What are the prerequisites for running the analysis?
You must have Python 3.10+, Slither (pip install slither-analyzer), Mythril (pip install mythril), solc, and solc-select installed on your machine.
Source text
SKILL.md · Apache-2.0
--- name: analyzing-ethereum-smart-contract-vulnerabilities description: Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to detect reentrancy, integer overflow, access control, and other vulnerability classes before deployment to Ethereum mainnet. domain: cybersecurity subdomain: blockchain-security tags: - ethereum - solidity - smart-contract - slither - mythril - blockchain - defi - audit version: '1.0' author: mahipal license: Apache-2.0 nist_csf: - PR.DS-01 - PR.DS-02 - ID.RA-01 mitre_attack: - T1190 - T1059 --- # Analyzing Ethereum Smart Contract Vulnerabilities ## Overview Smart contract vulnerabilities have led to billions of dollars in losses across DeFi protocols. Unlike traditional software, deployed smart contracts are immutable and handle real financial assets, making pre-deployment security analysis critical. Slither performs fast static analysis using an intermediate representation to detect over 90 vulnerability patterns in seconds, while Mythril uses symbolic execution and SMT solving to discover complex execution path vulnerabilities like reentrancy and integer overflows. This skill covers running both tools against Solidity contracts, interpreting results, triaging findings by severity, and generating audit reports. ## When to Use - When investigating security incidents that require analyzing ethereum smart contract vulnerabilities - When building detection rules or threat hunting queries for this domain - When SOC analysts need structured procedures for this analysis type - When validating security monitoring coverage for related attack techniques ## Prerequisites - Python 3.10+ with pip - Slither (pip install slither-analyzer) and solc compiler - Mythril (pip install mythril) with solc-select for compiler version management - Solidity source code or compiled contract bytecode - Foundry or Hardhat development framework (optional, for project-level analysis) ## Steps ### Step 1: Run Slither Static Analysis Execute Slither against the contract codebase to identify vulnerability patterns, optimization opportunities, and code quality issues using its 90+ built-in detectors. ### Step 2: Run Mythril Symbolic Execution Run Mythril deep analysis to explore execution paths and discover reentrancy, unchecked external calls, and arithmetic vulnerabilities that require path-sensitive analysis. ### Step 3: Triage and Correlate Findings Combine results from both tools, deduplicate findings, assess severity based on exploitability and financial impact, and filter false positives. ### Step 4: Generate Audit Report Produce a structured audit report with vulnerability descriptions, affected code locations, exploit scenarios, and remediation recommendations. ## Expected Output JSON report listing vulnerabilities with SWC (Smart Contract Weakness Classification) identifiers, severity ratings, affected functions, and suggested fixes.
© mahipal · Apache-2.0 · mukul975/Anthropic-Cybersecurity-Skills