Chuyển đến nội dung
Skillpedia
Bảo mật35k · #7613

analyzing-ethereum-smart-contract-vulnerabilities

Skill này làm gì

Công cụ này phân tích mã smart contract trên Ethereum để tìm lỗi bảo mật trước khi chúng được đưa vào hoạt động. Nó dùng hai kỹ thuật chính để nhận diện các vấn đề phổ biến có thể dẫn đến mất tiền.

Khi nào nên dùng

  • ✓Khi bạn muốn kiểm tra bảo mật của một contract trước khi sử dụng.
  • ✓Khi một contract hiện có gặp sự cố và bạn cần điều tra.
  • ✓Khi bạn đang tìm hiểu về bảo mật trong các contract tiền mã hóa.

Liên kết skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-ethereum-smart-contract-vulnerabilities/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-ethereum-smart-contract-vulnerabilities/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Phân tích smart contract Ethereum này để tìm lỗ hổng: [dán mã vào đây]”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ chạy hai phân tích: một phân tích nhanh (Slither) để tìm các lỗi đã biết và một phân tích sâu hơn (Mythril) để mô phỏng cách contract có thể bị tấn công. Sau đó, công cụ tổng hợp kết quả và báo cáo các vấn đề nghiêm trọng nhất.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

Câu hỏi thường gặp

Smart contract Ethereum là gì?

Đây là các chương trình chạy trên mạng Ethereum, tự động thực thi thỏa thuận khi các điều kiện nhất định được đáp ứng, như chuyển tiền.

Vì sao bảo mật smart contract quan trọng?

Smart contract xử lý tiền thật và sau khi triển khai thì không thể thay đổi. Nếu có lỗi, hacker có thể đánh cắp tiền.

“Reentrancy” và “integer overflow” là gì?

Đây là các loại lỗi bảo mật. “Reentrancy” cho phép kẻ tấn công gọi một hàm nhiều lần trước khi lần thực thi đầu tiên kết thúc, còn “integer overflow” xảy ra khi phép tính cho ra số lớn hơn mức hệ thống có thể lưu, và có thể bị khai thác.

Chi tiết

Mô tả gốc của tác giả

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.

repo: mukul975/Anthropic-Cybersecurity-Skills

Độ phổ biến

Sao GitHub
35k
Vị trí xếp hạng
#7613
Giấy phép
Apache-2.0
Cập nhật
31/8/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự