Command Palette

Search for a command to run...

Назад к скиллам
скилл № 80066

blockchain-security

Use this skill when asked about blockchain security, smart contract auditing, DeFi threat modeling, blockchain incident response, bug bounty programs…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить blockchain-security в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Blockchain Security

Purpose

Guide blockchain-specific security analysis covering smart contract auditing, DeFi threat modeling, economic security, incident response, formal verification, and bug bounty programs. Combines traditional security engineering with blockchain-specific risks like economic attack vectors, flash loans, oracle manipulation, and MEV.

Agent Protocol

Trigger

"blockchain security", "smart contract audit", "DeFi security", "DeFi threat model", "blockchain threat modeling", "audit methodology", "blockchain incident response", "emergency pause", "fork coordination", "bug bounty", "Immunefi", "Code4rena", "economic security", "game theory blockchain", "incentive analysis", "MEV security", "certora", "formal verification blockchain", "Halmos", "Scribble", "solidity security", "smart contract vulnerability", "blockchain exploit", "flash loan attack", "oracle manipulation", "reentrancy", "access control blockchain", "cross-chain security", "bridge security"

Input Context

  • Smart contracts or protocol to analyze
  • Platform (EVM/Solana/Cosmos/Cardano)
  • Security objective (audit/threat model/incident response/pre-audit review)
  • Codebase location and audit history
  • Previous incidents or vulnerabilities
  • TVL and risk exposure

Output Artifact

Security analysis including: threat model, vulnerability findings, economic analysis, verification approach, and remediation recommendations.

Response Format

  1. Threat model: assets, actors, attack vectors, trust assumptions, attack surface
  2. Audit approach: methodology, tools, timeline, expected coverage
  3. Economic analysis: incentive structures, game theory, exploit scenarios
  4. Security controls: mitigations, circuit breakers, monitoring
  5. Verification: formal properties, invariants, proof techniques
  6. Incident response: emergency plan, communication template

Completion Criteria

  • Threat model identifies all trust assumptions and attack surfaces
  • Vulnerability findings include severity, impact, likelihood, and remediation
  • Economic analysis models incentive alignment and identifies exploit paths
  • Formal verification specifies key invariants (solvency, access control, correctness)
  • Emergency response plan covers: pause, communication, fork coordination, post-mortem

Max Response Length

5000 tokens

Decision Trees

Security Assessment Type

Security need:
├── Pre-deployment audit?
│   ├── Early stage → Threat modeling + architecture review
│   │   ├── Identify trust assumptions
│   │   ├── Map attack surface
│   │   └── Design security controls
│   ├── Mid-development → Full audit (automated + manual + fuzz)
│   │   ├── Slither + Mythril static analysis (first pass)
│   │   ├── Manual line-by-line review (second pass)
│   │   ├── Foundry fuzz + invariant tests (third pass)
│   │   ├── Echidna/Medusa property-based fuzzing (fourth pass)
│   │   └── Certora/Halmos formal verification (fifth pass)
│   └── Pre-launch → Final audit + bug bounty launch
│       ├── Re-audit after fixes
│       ├── Immunefi or Code4rena bounty program
│       └── Emergency response plan
├── Incident response?
│   ├── Ongoing exploit → Emergency pause + communication
│   ├── Post-exploit → Damage assessment + recovery plan
│   └── Post-mortem → Root cause analysis + fix implementation
└── Ongoing security?
    ├── Continuous monitoring → Forta, Tenderly alerts
    ├── Bug bounty management → VRT, severity classification
    └── Periodic review → Quarterly parameter review, annual deep audit

Vulnerability Severity (Immunefi Standard)

Severity Impact Payout Range
Critical Direct loss of funds, permanent DoS Up to $10M+
High Theft of unclaimed yield, temporary DoS $50K-$500K
Medium Contract fails to deliver expected return, temporarily frozen funds $5K-$50K
Low Griefing (no direct financial loss) $1K-$5K
None Informational No payout

DeFi Threat Modeling (STRIDE-Blockchain)

STRIDE Adapted for Blockchain

Threat Blockchain Equivalent Example
Spoofing Fake event log emission, counterfeit token Impostor token impersonation
Tampering State manipulation, reorg, flash loan price Manipulating oracle price
Repudiation Unauthorized proposal, fake governance Flash loan governance attack
Information disclosure Mempool snooping, frontrunning MEV extraction from public tx pool
Denial of Service Gas griefing, block stuffing Low-cost DoS via state bloat
Elevation of Privilege Unauthorized role assignment, proxy admin OpenZeppelin UUPS unauthorized upgrade

Common Attack Trees

Reentrancy Attack Tree

├── External call before state update
│   ├── ETH transfer via .call{value}() (forward all gas)
│   ├── ERC-777 callback (tokensToSend hook)
│   └── ERC-1155 callback (onERC1155Received)
├── Recipient is malicious cont
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/audit-methodology.md
  • references/blockchain-security-advanced.md
  • references/blockchain-security-fundamentals.md
  • references/bug-bounty-program.md
  • references/economic-security.md
  • references/formal-verification-deep.md
  • references/incident-response.md
  • references/merged-smart-contract-security.md
  • references/reentrancy_attack_mitigation.md
  • references/smart-contract-security.md
  • references/smart_contract_auditing.md
  • references/threat-modeling.md

FAQ

Что делает скилл blockchain-security?

Use this skill when asked about blockchain security, smart contract auditing, DeFi threat modeling, blockchain incident response, bug bounty programs, economic security, formal verification of smart contracts, and blockchain-specific security analysis. Languages: Solidity, Python, Rust, Haskell. Covers threat modeling for DeFi protocols (STRIDE for blockchain), audit methodology (scope, manual review, tooling, report), incident response (emergency pause, fork coordination, compensation), bug bounty programs (Immunefi, Code4rena), economic security (game theory, incentive analysis, MEV), and formal verification (Certora CVL, Halmos, Scribble). References shared skills from skills/security/ (threat-intelligence, secrets-management, siem-engineering) and skills/quality/ (property-based-testing) where core concepts overlap. Do NOT use for: general smart contract testing (use blockchain-testing), standard application security (use skills/security/ skills), or core cryptography (use blockchain-cryptography).

Как установить скилл blockchain-security?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл blockchain-security запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить blockchain-security с