安全6.5k · #14004
contracts-overview
它能做什么
这份目录会为智能体指向审计区块链智能合约的合适手册。适合审查 Solidity 代码的审计人员和开发人员。
适用场景
- ✓当你需要在 Solidity 合约项目上线前进行审计时。
- ✓当你想运行 Slither 等静态分析工具,并用测试确认结果时。
- ✓当你需要为某个特定合约弱点选择合适的手册时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/contracts/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/contracts/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add BitterSecurity/Decepticon --skill contracts-overview
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/BitterSecurity/Decepticon/main/packages/decepticon/decepticon/skills/standard/contracts/SKILL.md -o SKILL.md
可以这样问 AI
“请帮我审计我们的 Solidity 合约,并告诉我应该先修复哪些高危问题?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体梳理代码,运行分析工具,列出高危结果,并按照对应手册用测试逐一确认每个问题。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Smart Contract Audit Catalog
Playbooks
| Skill | Use for |
|---|---|
/skills/standard/contracts/reentrancy/SKILL.md |
Classic + read-only reentrancy |
/skills/standard/contracts/oracle-manipulation/SKILL.md |
Single-block TWAP / spot price abuse |
/skills/standard/contracts/flash-loan/SKILL.md |
Flash-loan callback + unauth gadgets |
/skills/standard/contracts/access-control/SKILL.md |
Missing modifiers, wrong msg.sender |
/skills/standard/contracts/upgradeable-proxy/SKILL.md |
Uninitialized impl, storage clash |
/skills/standard/contracts/signature-replay/SKILL.md |
Cross-chain, ecrecover zero address |
Workflow
- Map the target:
bash("find /workspace/src -name '*.sol' | head -50") solidity_scan_fileon each file- Run slither:
bash("cd /workspace && slither . --json slither.json") slither_ingest("/workspace/slither.json")kg_query(kind="vulnerability", min_severity="high")to see the highs- For each high, generate a Foundry PoC via
foundry_reentrancy_testetc. bash("forge test -vvv --match-contract Test_")to run- Promote passing PoCs as validated findings
Default severity floor
| Impact | CVSS / Reward tier |
|---|---|
| Loss of user funds | Critical (9.8+) |
| Locked funds / permanent DoS | High (7.5-9.0) |
| Temporary DoS / griefing | Medium (5-7) |
| View-only data leak | Low (3-5) |
常见问题
它使用哪些工具?
它使用 Solidity 扫描器、Slither 分析器以及 Foundry 测试运行。
涵盖哪些弱点?
重入、预言机操纵、闪电贷的使用、访问控制、可升级代理以及签名重放。
严重程度如何设定?
目录会根据影响程度给出默认的最低严重等级,例如用户资金损失。
详情
作者的原始描述
Smart contract audit lane — Solidity/EVM pattern scanner, Slither ingestion, Foundry PoC generation, DeFi attack playbooks.
热度
- GitHub 星标
- 6.5k
- 排名
- #14004
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …