bb-methodology
The "3rd eye" for pentesting — reminds agent to understand before assuming, validate before reporting.
Master grep command arsenal for Web3 smart contract auditing. Use when starting a new protocol scan, before deep code review, or when hunting specific vulnerability classes.
Claude Code
$ npx -y skills add Gabson0x/bountyforge --skill web3-grep-arsenal --agent claude-code
Codex
$ npx skills add Gabson0x/bountyforge --skill web3-grep-arsenal -a codex -y
Cursor
$ npx skills add Gabson0x/bountyforge --skill web3-grep-arsenal -a cursor -y
Gemini CLI
$ npx skills add Gabson0x/bountyforge --skill web3-grep-arsenal -a gemini-cli -y
GitHub Copilot
$ npx skills add Gabson0x/bountyforge --skill web3-grep-arsenal -a github-copilot -y
OpenCode
$ npx skills add Gabson0x/bountyforge --skill web3-grep-arsenal -a opencode -y
Windsurf
$ npx skills add Gabson0x/bountyforge --skill web3-grep-arsenal -a windsurf -y
name: web3-grep-arsenal description: Master grep command arsenal for Web3 smart contract auditing. Use when starting a new protocol scan, before deep code review, or when hunting specific vulnerability classes. Contains: 10 grep blocks for all major vuln classes, tier ranking, protocol-specific patterns, 2025 new patterns, copy-paste ready blocks.
All grep commands in one place. Run in the first 30 minutes of any new target.
See also: [[Web3 Audit]], [[Web3 Bug Classes]], [[Methodology]], [[Trust Map]], [[Web3 Hunt Foundation]]
---
**Process:** 1. Run ALL 10 blocks below (takes ~5 min) 2. Collect all results in a notes file 3. Tier-rank the hits (see Tier System below) 4. In pass 1: READ everything, DON'T investigate yet 5. In pass 2: Deep-dive on Tier 1 + 2 items
**Tier System:**
---
echo "=== ACCESS CONTROL ===" && \ grep -rn "tx\.origin" src/ --include="*.sol" && \ grep -rn "msg\.sender == owner\b" src/ --include="*.sol" && \ grep -rn "modifier only" src/ --include="*.sol" -A5 && \ grep -rn "onlyOwner\|onlyAdmin\|onlyRole" src/ --include="*.sol" | wc -l && \ grep -rn "def admin_\|router\..*admin\|function.*[Aa]dmin" src/ --include="*.sol"
**Red flags:**
echo "=== REENTRANCY ===" && \
grep -rn "\.call{value\|\.call(" src/ --include="*.sol" && \
grep -rn "\.transfer(\|\.send(" src/ --include="*.sol" && \
grep -rn "safeTransfer\|safeTransferFrom" src/ --include="*.sol" && \
grep -rn "onERC721Received\|onERC1155Received\|tokensReceived" src/ --include="*.sol" && \
grep -rn "nonReentrant\|ReentrancyGuard" src/ --include="*.sol"**Red flags:**
echo "=== ORACLE / PRICE ===" && \ grep -rn "slot0\b" src/ --include="*.sol" && \ grep -rn "getReserves()" src/ --include="*.sol" && \ grep -rn "latestRoundData\|latestAnswer" src/ --include="*.sol" && \ grep -rn "updatedAt" src/ --include="*.sol" && \ grep -rn "block\.timestamp" src/ --include="*.sol" | grep -v "//\|test\|Test" | head -20
**Red flags:**
echo "=== ARITHMETIC ===" && \
grep -rn "unchecked {" src/ --include="*.sol" && \
grep -rn "/ \|/=" src/ --include="*.sol" | grep -v "//\|test\|Test" | head -30 && \
grep -rn "mulDiv\|FullMath\|PRBMath" src/ --include="*.sol" && \
grep -rn "\* 10\*\*\|* 1e18\|* WAD\|* RAY" src/ --include="*.sol"**Red flags:**
echo "=== INPUT VALIDATION ===" && \ grep -rn "address(0)\b" src/ --include="*.sol" && \ grep -rn "require.*length\|\.length ==" src/ --include="*.sol" && \ grep -rn "delegatecall" src/ --include="*.sol" && \ grep -rn "abi\.decode\|abi\.encodePacked" src/ --include="*.sol" | head -20
**Red flags:**
echo "=== TOKEN HANDLING ===" && \
grep -rn "IERC20\.\|ERC20\." src/ --include="*.sol" | grep "transfer\b\|transferFrom\b" && \
grep -rn "SafeERC20\|safeTransfer\b" src/ --include="*.sol" | head -10 && \
grep -rn "balanceOf(address(this))" src/ --include="*.sol" && \
grep -rn "permit(" src/ --include="*.sol" | grep -v "//\|IERC20Permit" && \
grep -rn "try.*permit\|catch.*permit" src/ --include="*.sol"**Red flags:**
echo "=== ERC4626 / VAULT ===" && \ grep -rn "totalAssets\|convertToShares\|previewDeposit\|previewMint" src/ --include="*.sol" && \ grep -rn "_decimalsOffset\|decimalsOffset\|virtual_shares\|dead.*shares" src/ --include="*.sol" && \ grep -rn "shares.*supply\|totalSupply\|mint.*shares" src/ --include="*.sol" | head -20
**Red flags:**
echo "=== PROXY / UPGRADE ===" && \ grep -rn "_authorizeUpgrade\|upgradeTo\|upgradeToA
All-round bug bounty skill for Claude Code — parallelized agents for smart contract audits (EVM, Move, Solana, TRON), web/API security, local tooling orchestration, and submission-ready reports for HackerOne, Bugcrowd, Intigriti & Immunefi.
The "3rd eye" for pentesting — reminds agent to understand before assuming, validate before reporting.
Complete bug bounty workflow — recon (subdomain enumeration, asset discovery, fingerprinting, HackerOne scope, source code…
Analyze EVM smart contracts for storage-safety vulnerabilities that can cause persistent state updates to be lost, overwritten,…
Generate Echidna/Medusa-compatible Solidity fuzz suites from Foundry or Hardhat projects. Trigger on "fizz", "generate fuzz…
Convert English-language properties in PROPERTIES.md (produced by the Fizz skill) into Solidity assertions inside the existing…
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…