audit-changes
Audit only the git diff vs main (or specified base). Optimized for PR review.
Multi-actor, multi-block simulation against a live fork. Stateful attack sequences across many txs.
> /plugin marketplace add omermaksutii/RugProof > /plugin install rugproof@rugproof
How it fires
How this command gets triggered: by you, by Claude, or both.
/simulateContext preview
What this command does when you run it.
Multi-actor, multi-block simulation against a live fork. Stateful attack sequences across many txs.
description: Multi-actor, multi-block simulation against a live fork. Stateful attack sequences across many txs. argument-hint: "<chain> [<address>] [--block latest]" allowed-tools: Read, Write, Bash, Agent, mcp__block-explorer__*, mcp__anvil__*, mcp__tenderly__*, mcp__forge-runner__*
Deeper than `/exploit-live`. Reasons about the protocol across multiple blocks, multiple actors (attacker, victim, MEV searcher, governance, oracle), and multi-step attack sequences.
Default: `anvil` via the `anvil-mcp`. If the user has Tenderly configured, prefer that for richer trace data.
Set up multiple addresses with realistic balances:
attacker: 1 ETH, 0 tokens victim: 10 ETH (already deposited into target) mev: 100 ETH (front-running searcher) governance: timelock controller oracle: mock or live Chainlink feed
Dispatch the `attacker` subagent with the audit findings. It produces a sequence:
Block N: - attacker: take flash loan from Aave (1M USDC) - attacker: deposit into target vault - attacker: trigger price update via swap Block N+1: - attacker: liquidate victim at manipulated price - attacker: repay flash loan, keep collateral
Execute each step via the fork. Capture:
Simulation: berachain-fork @ block 12345678 Attack sequence: Block 12345678 [attacker] Flash-borrow 1M USDC ✓ gas 215K Block 12345678 [attacker] Deposit to Vault (10K shares minted) ✓ gas 87K Block 12345678 [attacker] Manipulate oracle via AMM swap ✓ gas 142K Block 12345679 [attacker] Liquidate victim @ stale price ✓ gas 256K Block 12345679 [attacker] Repay flash loan ✓ gas 32K Net P&L: attacker: +12.4 ETH ($31,200) victim: -10.0 ETH (liquidated) protocol: -2.4 ETH (bad debt absorbed) Conclusion: EXPLOITABLE — full attack sequence successful, protocol incurs bad debt. Recommend: TWAP oracle (30min window) + per-block deposit/liquidate cooldown.
Rugproof your code before someone else does. 🌐 Live site: omermaksutii.github.io/RugProof 📦 Latest: v1.0.0 — 45 commands · 23 agents · 45 skills · 13 MCP servers · tested, offline-first, with rule packs, a benchmark, non-EVM coverage, and post-deploy
Repo: omermaksutii/RugProof
Audit only the git diff vs main (or specified base). Optimized for PR review.
Deep audit — same as /audit but spawns more parallel subagents, runs multi-pass review, and chases exploit chains across files.
Audit third-party dependencies — resolve installed versions, cross-reference known-vulnerable releases, and flag vendored code that has diverged from upstream.
Diff two Rugproof audit reports (before vs after) to track regressions — what's new, what's fixed, and whether the grade moved.
Pull past public audits (Code4rena, Sherlock, Spearbit, etc.) for a deployed contract or known protocol.
Audit a deployed contract on a live chain. Pulls verified source from the block explorer, optionally forks the chain for live-state simulation.