web3-grep-arsenal
SolidMaster 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.
AI & Automation 4 stars
5 forks Updated yesterday MIT
Install
Quality Score: 80/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# GREP ARSENAL — MASTER REFERENCE
> All grep commands in one place. Run in the first 30 minutes of any new target.
> Replaces: 03-grep-surface-map, 14-grep-master-patterns + grep sections from 04-13
---
## HOW TO USE THE SURFACE MAP
**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:**
- **Tier 1** — Near privileged code, external calls, or state changes with no guards → Investigate first
- **Tier 2** — Interesting patterns that need context before judging → Investigate after Tier 1
- **Tier 3** — Informational only (documentation, test files, comments) → Skip unless Tier 1+2 exhausted
---
## THE 10 GREP BLOCKS (Copy-Paste Each)
### Block 1 — Access Control
```bash
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:**
- `tx.origin` used for auth → Tier 1 (phishing vector)
- Modifier uses `if (condition) { _; }` without else → Tier 1 (silent bypass — function still executes for unauthorized callers)
- `onlyOwner` count << total external function cou...
Details
- Author
- Olaradiallysymmetrical491
- Repository
- Olaradiallysymmetrical491/web3-bug-bounty-hunting-ai-skills
- Created
- 4 months ago
- Last Updated
- yesterday
- Language
- N/A
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
ast-grep
Run code analysis and refactoring with ast-grep. Use when doing AST-based modifications, structural search, linting across code shape, or replacing regex-fragile transformations.
33 Updated yesterday
OutlineDriven AI & Automation Solid
security-audit
Use when performing security vulnerability assessment (OWASP, secrets, dependencies, IaC, LLM, API, MCP/agentic) or when "thinking like a hacker" to find exploits.
4 Updated today
MatrixFounder AI & Automation Listed
web3-start-here
Master index for the web3 smart contract security knowledge base. Use this to navigate the skill chain. Read files in order — each ends with NEXT.
4 Updated yesterday
Olaradiallysymmetrical491