analyzing-ethereum-smart-contract-vulnerabilities — скилл Claude Code
Запускает статический и символьный анализ смарт-контрактов на Solidity через Slither и Mythril. Помогает находить reentrancy и ошибки переполнения до деплоя в сеть Ethereum.
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a claude-codeЧто делает analyzing-ethereum-smart-contract-vulnerabilities
Скилл выстраивает аудит безопасности смарт-контрактов в четыре этапа. Сначала Slither проводит статический анализ через промежуточное представление кода и проверяет проект по базе из более чем 90 встроенных детекторов. Затем Mythril выполняет символьное исполнение с SMT-солвером, проверяя пути выполнения на предмет reentrancy, переполнения целых чисел и необработанных внешних вызовов.
Результаты обоих анализаторов сводятся воедино: скилл дедуплицирует находки, фильтрует ложные срабатывания и оценивает серьёзность дефектов с учётом финансового риска. На выходе формируется отчёт в формате JSON с идентификаторами SWC, затронутыми функциями и шагами по устранению.
Инструмент требует предварительной настройки окружения: без Python 3.10+, утилит Slither, Mythril и компилятора solc анализ не запустится. Для переключения версий компилятора понадобится solc-select.
Какие задачи решает
- найти уязвимости reentrancy и переполнения целых чисел в смарт-контракте
- проверить код Solidity статическим анализатором Slither
- запустить глубокий символьный анализ путей исполнения через Mythril
- сформировать JSON-отчёт с классификацией дефектов по SWC
Примеры запросов агенту
- Проанализируй смарт-контракт Token.sol на уязвимости с помощью Slither и Mythril
- Запусти аудит безопасности контрактов в проекте и составь JSON-отчёт с кодами SWC
- Проверь контракт Vault.sol на возможность атак reentrancy и некорректный контроль доступа
Как установить analyzing-ethereum-smart-contract-vulnerabilities
1Через Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a claude-code2Вручную: положить файлы
~/.claude/skills/analyzing-ethereum-smart-contract-vulnerabilities/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/analyzing-ethereum-smart-contract-vulnerabilities/
1Через Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a codex2Вручную: положить файлы
.agents/skills/analyzing-ethereum-smart-contract-vulnerabilities/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a cursor2Вручную: положить файлы
.cursor/skills/analyzing-ethereum-smart-contract-vulnerabilities/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install mukul975/Anthropic-Cybersecurity-Skills analyzing-ethereum-smart-contract-vulnerabilities2Вручную: положить файлы
.github/skills/analyzing-ethereum-smart-contract-vulnerabilities/SKILL.md1Через Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a gemini-cli2Командой платформы
gemini skills install https://github.com/mukul975/Anthropic-Cybersecurity-Skills --path skills/analyzing-ethereum-smart-contract-vulnerabilitiesВручную: положить файлы
.devin/skills/analyzing-ethereum-smart-contract-vulnerabilities/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о analyzing-ethereum-smart-contract-vulnerabilities
Как установить analyzing-ethereum-smart-contract-vulnerabilities в Claude Code?
Выполните команду npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-ethereum-smart-contract-vulnerabilities -a claude-code.
Что делает analyzing-ethereum-smart-contract-vulnerabilities?
Скилл координирует запуск Slither и Mythril для аудита Solidity, устраняет дубликаты находок и создаёт итоговый отчёт с классификацией SWC и рекомендациями.
Какие программы требуются для работы скилла?
Нужны Python 3.10+, пакеты slither-analyzer и mythril, компилятор solc, а также утилита solc-select для управления версиями компилятора.
Исходный текст
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