Individual skill
web3-bug-classes
Complete reference for all 10 DeFi smart contract bug classes. Use this when hunting for specific vulnerability types, need attack patterns for accounting desync, access control, incomplete path, off-by-one, oracle manipulation, ERC4626 vaults, reentrancy, flash loans, signature replay, or proxy/upgrade bugs.
web3-bug-classes/SKILL.md
Source commit cab844668fd5ba69ec514b64acca8b3bf1a39521
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 182
- Repository last updated
- Sep 21, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- blockchain-security Repository topic
- bug-bounty Repository topic
- claude-code Repository topic
- defi Repository topic
- ethereum Repository topic
- foundry Repository topic
- immunefi Repository topic
- smart-contract-security Repository topic
- solidity Repository topic
- web3 Repository topic
- legal Derived category
- finance Derived category
- security Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 41,045 bytesSKILL.mdcore · 41,045 bytesSKILL.mdcore · 41,045 bytesSKILL.mdcore · 41,045 bytesSKILL.mdcore · 41,045 bytesSKILL.mdcore · 41,045 bytesSKILL.mdcore · 41,045 bytesSKILL.mdcore · 41,045 bytesSKILL.mdcore · 41,045 bytesSKILL.mdcore · 41,045 bytesSKILL.mdcore · 41,045 bytesSKILL.mdcore · 41,045 bytesSKILL.mdcore · 41,045 bytesSKILL.mdcore · 41,045 bytes
Read excerpt
# BUG CLASSES — DeFi Smart Contract Vulnerabilities
10 bug classes. Each one with root cause, vulnerable code, fix, grep patterns, and real paid examples.
---
## 1. ACCOUNTING STATE DESYNCHRONIZATION
> #1 Critical bug class — 28% of all Criticals on Immunefi.
> Real protocols: Yeet, Alchemix V3, Folks Finance, ResupplyFi, MetaPool
### What It Is
Two state variables are supposed to stay in sync. One code path updates variable A but forgets variable B. Later code reads both and makes decisions based on the stale B.