agentleFS
vaquarkhanvaquarkhan/web3-agent-skills/skills/skill-08-security-audit/SKILL.md

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.

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
  1. Distinctive:

    Run before any token swap or liquidity add:

    line 28
  2. Very specific:

    Use eth_call simulation: attempt buy → approve → sell in single trace.

    line 39
  3. Distinctive:

    Check contract against known exploit DB

    line 58
  4. Distinctive:

    Verify protocol TVL hasn't dropped > 20% in 24h

    line 59

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

CheckRed Flag
Ownershipowner() can mint unlimited tokens
LiquidityLP not locked or unlock imminent
HoneypotSell simulation reverts
Hidden feesTransfer tax > 10% or modifiable
ProxyUnverified implementation, no timelock
BlacklistisBlacklisted 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:

  1. Reentrancy — external calls before state updates
  2. Access control — missing onlyOwner on critical functions
  3. Oracle manipulation — spot price without TWAP
  4. Flash loan attacks — single-block price dependency
  5. Integer issues — unchecked math (pre-0.8.0)
  6. Delegatecall — untrusted implementation in proxy
  7. 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 selfdestruct or delegatecall to 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 | BLOCK

Block interaction when RISK = CRITICAL or honeypot detected.

References

  • knowledge-base/security/audit-patterns/
  • knowledge-base/security/exploit-db/

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.