Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/analyzing-ethereum-smart-contract-vulnerabilities/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/analyzing-ethereum-smart-contract-vulnerabilities/

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

Similar skills

Everything for Security →

From the same set89

analyzing-network-traffic-of-malware Walks through a malware PCAP to find C2 protocols, exfiltration channels and payload downloads. Useful for sandbox runs and live incident response. CX Codex +1 413installs analyzing-malicious-url-with-urlscan This skill walks through scanning suspicious and phishing URLs with URLScan.io and pulling the screenshot, DOM, redirect chain and IOCs out of the report. CX Codex +1 411installs analyzing-web-server-logs-for-intrusion This skill parses Apache and Nginx logs, flags attack patterns, and builds a findings report. Use it for incident analysis or monitoring checks. CX Codex +1 408installs analyzing-cobalt-strike-beacon-configuration This skill extracts Cobalt Strike Beacon configuration from PE files and memory dumps. Use it to inspect C2 infrastructure, malleable C2 settings, and operator clues. CX Codex +1 404installs analyzing-malicious-pdf-with-peepdf This skill statically inspects suspicious PDFs with peepdf, pdfid.py, and pdf-parser.py. Use it to triage attachments, inspect exploit documents, and collect detection indicators. CX Codex +1 387installs testing-api-for-mass-assignment-vulnerability Tests APIs for mass assignment by adding undocumented request fields and checking whether they persist. Use it for profile, registration, and object-creation endpoints. CX Codex +1 385installs analyzing-network-covert-channels-in-malware Reads a PCAP for DNS tunneling, ICMP exfiltration and C2 hidden in HTTP. Useful during incident response or a hunt for exfiltration channels. CX Codex +1 372installs analyzing-network-flow-data-with-netflow This skill parses NetFlow v9 and IPFIX records to spot volumetric anomalies, port scanning, data exfiltration and C2 beaconing. CX Codex +1 372installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor