登录 注册
开发者工具
6,843
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
Solidity
语言
创建时间
最近更新

项目能做什么

使用 Foundry 复现 DeFi 黑客攻击事件
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# DeFi Hacks Reproduce - Foundry

**Reproduce DeFi hack incidents using Foundry.**


906 incidents included.

Let's make Web3 secure! Join [Discord](https://discord.gg/Fjyngakf3h)

Notion: [101 root cause analysis of past DeFi hacked incidents](https://web3sec.xrex.io/)

[Transaction debugging tools](https://github.com/SunWeb3Sec/DeFiHackLabs/#transaction-debugging-tools)

**Disclaimer:** This content serves solely as a proof of concept showcasing past DeFi hacking incidents. It is strictly intended for educational purposes and should not be interpreted as encouraging or endorsing any form of illegal activities or actual hacking attempts. The provided information is for informational and learning purposes only, and any actions taken based on this content are solely the responsibility of the individual. The usage of this information should adhere to applicable laws, regulations, and ethical standards.

## Table of Contents
* [Getting Started](#getting-started)
* [Who Support Us](#who-support-us-defihacklabs-received-grant-from)
* [Donate Us](#donate-us)
* [List of Past DeFi Incidents](#list-of-past-defi-incidents)
* [Transaction debugging tools](#transaction-debugging-tools)
* [Ethereum Signature Database](#ethereum-signature-database)
* [Useful tools](#useful-tools)
* [Hacks Dashboard](#hacks-dashboard)
* [List of DeFi Hacks & POCs](#list-of-defi-hacks--pocs)
  
## Getting Started

- Follow the [instructions](https://www.getfoundry.sh/introduction/getting-started) to install [Foundry](https://github.com/foundry-rs/foundry).

- Clone and install dependencies:`git submodule update --init --recursive`
- [Contributing Guidelines](https://github.com/SunWeb3Sec/DeFiHackLabs/blob/main/CONTRIBUTING.md)

## [Web3 Cybersecurity Academy](https://github.com/SunWeb3Sec/DeFiHackLabs/tree/main/academy)

All articles are also published on [Substack](https://defihacklabs.substack.com/).

### OnChain transaction debugging

- Lesson 1: Tools ( [English](https://github.com/SunWeb3Sec/DeFiHackLabs/tree/main/academy/onchain_debug/01_tools/en) | [中文](https://github.com/SunWeb3Sec/DeFiHackLabs/tree/main/academy/onchain_debug/01_tools) | [Vietnamese](https://github.com/SunWeb3Sec/DeFiHackLabs/tree/main/academy/onchain_debug/01_tools/vi) | [Korean](https://github.com/SunWeb3Sec/DeFiHackLabs/tree/main/academy/onchain_debug/01_tools/ko) | [Spanish](https://github.com/SunWeb3Sec/DeFiHackLabs/tree/main/academy/onchain_debug/01_tools/es) | [日本語](https://github.com/SunWeb3Sec/DeFiHackLabs/tree/main/academy/onchain_debug/01_tools/ja) )
- Lesson 2: Warm up ( [English](https://github.com/SunWeb3Sec/DeFiHackLabs/tree/main/academy/onchain_debug/02_warmup/en/) | [中文](https://github.com/SunWeb3Sec/DeFiHackLabs/tree/main/academy/onchain_debug/02_warmup/) | [Korean](https://github.com/SunWeb3Sec/DeFiHackLabs/tree/main/academy/onchain_debug/02_warmup/ko) | [Spanish](https://github.com/SunWeb3Sec/DeFiHackLabs/tree/main/academy/onchain_debug/02_warmup/es) | [日本語](https://github.com/SunWeb3
阅读完整原文

商业机会分析 AI 生成

Web3 白帽安全实操靶场与认证培训 (SaaS/Bootcamp)

产品构想将仓库已有的 900+ 个 Foundry 复现用例与现有 Academy 教程结合,封装为开箱即用的浏览器端/云端交互式安全演练靶场,提供实战训练与技能认证。
核心功能免配置云端 Foundry 调试环境、阶段式关卡引导、攻击验证判题引擎、结业证书与白帽求职背书
目标用户准备进入 Web3 安全领域的开发者、初级审计师、计算机专业学生
难度/周期中等 · 2-3个月 · 成本:轻量云服务器、Web端终端容器编排、教学平台搭建
收费模式学员一次性课程费用、高级演练关卡月度会员订阅、企业团队内部培训采购
竞争风险需持续更新新攻击案例;课程盗版与公域同类开源材料较多导致付费意愿打折(推测)
依据 已验证事实

DeFi 历史攻击向量防御回归测试插件 (DevTooling/CI SaaS)

产品构想从 900+ 案例中归纳抽象出常见攻击范式(如闪电贷套利操纵、重入、只读重入、精度损失等),开发 Foundry/Hardhat 插件与 GitHub Action,帮助项目方在代码提交阶段自动化运行攻击模拟。
核心功能一键集成 GitHub Actions、基于历史攻击变异的 Invariant/Fuzzing 测试套件、协议攻击暴露面评分报告
目标用户DeFi 协议开发团队、安全审计公司
难度/周期高 · 3-5个月 · 成本:测试 RPC 节点资源、云端计算资源、通用化测试模板研发成本
收费模式B2B SaaS 订阅制(按月/按代码仓库)、企业定制化回归套件研发费用
竞争风险将特定协议的历史攻击泛化为通用自动化检测规则的研发难度极大,易产生高假阳性或假阴性(推测)
依据 AI推测

专业级 DeFi 漏洞情报与根因深度研报订阅 (Pro-Tier Intelligence)

产品构想基于现有 Notion 根因分析库,提供商业级最新被黑事件复现 PoC、底层代码架构弱点深度拆解及防御策略情报服务。
核心功能事件发生后 24-48 小时内的可运行 PoC 提供、防御建议补丁指南、可机读攻击者模式指标 (IoC) 数据源
目标用户加密基金风控部门、借贷/DEX 协议安全负责人、安全研究机构
难度/周期低至中等 · 1个月 · 成本:Substack/私域会员系统、高速归档节点 RPC 成本
收费模式专业版研报会员订阅(年费/月费)、机构风控定制咨询
竞争风险需要极高的突发事件响应速度,一人运维在多起事件并发时精力容易受限(推测)
依据 数据支持的判断
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
DefinitelyTyped/DefinitelyTyped 中文介绍暂未生成
The repository for high quality TypeScript type definitions.
51,470 TypeScript
hummingbot/hummingbot 中文介绍暂未生成
Open source software that helps you create and deploy high-f
21,170 Python
smartcontractkit/full-blockchain-solidity-course-js 中文介绍暂未生成
Learn Blockchain, Solidity, and Full Stack Web3 Development
14,047 -
OffcierCia/DeFi-Developer-Road-Map 中文介绍暂未生成
DeFi Developer roadmap is a curated Developer handbook which
10,897 Python
IBAX-io/go-ibax 中文介绍暂未生成
An innovative Blockchain Protocol Platform, which everyone c
7,848 Go
sea-protocol/seaprotocol 中文介绍暂未生成
Sea protocol is the ultimate DEX base on order-book & AMM on
5,033 Move
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 ,最近推送
社区活跃Star 6,843 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/SunWeb3Sec/DeFiHackLabs.git
cd DeFiHackLabs
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。