skill-08-security-audit
Skill2 starsChanged 6 months agoMITView on GitHub
Performs Web3 security analysis including vulnerability detection, rug pull checks, and exploit monitoring. Use before interacting with unknown contracts or when auditing smart contract code.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/00-web3-agent-core.mdcCursor rule
- .cursor/rules/10-guardrails-first.mdcCursor rule
- .cursor/rules/20-chain-preset-selector.mdcCursor rule
- .cursor/rules/30-simulate-before-send.mdcCursor rule
- skill-01-wallet-managementSkill
- skill-02-smart-contract-interactionSkill
- skill-03-defi-operationsSkill
- skill-04-nft-managementSkill
- skill-05-dao-governanceSkill
- skill-06-cross-chain-bridgeSkill
- skill-07-token-analyticsSkill
- skill-09-compliance-amlSkill
- skill-10-identity-didSkill
- skill-11-oracle-data-feedsSkill
- skill-12-gas-optimizationSkill
- skill-13-rwa-tokenizationSkill
- skill-14-social-reputationSkill
- skill-15-mev-protectionSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Run before any token swap or liquidity add:
- Very specific: line 39
Use eth_call simulation: attempt buy → approve → sell in single trace.
- Distinctive: line 58
Check contract against known exploit DB
- Distinctive: line 59
Verify protocol TVL hasn't dropped > 20% in 24h
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Security Audit
When to Use
- Evaluating unknown smart contracts before interaction
- Detecting rug pull and honeypot patterns
- Monitoring for active exploits and protocol incidents
- Reviewing contract code for common vulnerabilities
- Pre-deployment security checklist
Prerequisites
- MCP:
blockchain-rpc-server,defi-protocol-server - Knowledge base:
knowledge-base/security/
Workflow
1. Automated Rug Pull Checks
Run before any token swap or liquidity add:
| Check | Red Flag |
| Ownership | owner() can mint unlimited tokens |
| Liquidity | LP not locked or unlock imminent |
| Honeypot | Sell simulation reverts |
| Hidden fees | Transfer tax > 10% or modifiable |
| Proxy | Unverified implementation, no timelock |
| Blacklist | isBlacklisted or pause on transfers |
Use eth_call simulation: attempt buy → approve → sell in single trace.
2. Vulnerability Patterns
Scan for OWASP Smart Contract Top 10:
- Reentrancy — external calls before state updates
- Access control — missing
onlyOwneron critical functions - Oracle manipulation — spot price without TWAP
- Flash loan attacks — single-block price dependency
- Integer issues — unchecked math (pre-0.8.0)
- Delegatecall — untrusted implementation in proxy
- Front-running — no slippage/deadline protection
See knowledge-base/security/common-vulnerabilities/ for patterns.
3. Exploit Monitoring
- Monitor Rekt News, DeFiLlama hacks dashboard
- Check contract against known exploit DB
- Verify protocol TVL hasn't dropped > 20% in 24h
4. Code Review Checklist
- Uses Solidity ≥ 0.8.0 with overflow checks
- External calls use checks-effects-interactions
- No
selfdestructordelegatecallto user input - Timelock on admin functions (> 24h for DeFi)
- Events emitted for state changes
- Formal verification or audit report available
Verdict Format
RISK: LOW | MEDIUM | HIGH | CRITICAL
FINDINGS: [list with severity]
RECOMMENDATION: PROCEED | CAUTION | BLOCKBlock interaction when RISK = CRITICAL or honeypot detected.
References
knowledge-base/security/audit-patterns/knowledge-base/security/exploit-db/
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

