audit-changes
Audit only the git diff vs main (or specified base). Optimized for PR review.
Chain multiple findings into a single multi-step exploit. Produces a Foundry test that proves the chain works.
> /plugin marketplace add omermaksutii/RugProof > /plugin install rugproof@rugproof
How it fires
How this command gets triggered: by you, by Claude, or both.
/exploit-chainContext preview
What this command does when you run it.
Chain multiple findings into a single multi-step exploit. Produces a Foundry test that proves the chain works.
description: Chain multiple findings into a single multi-step exploit. Produces a Foundry test that proves the chain works. argument-hint: "<finding-id-1> <finding-id-2> [...]" allowed-tools: Read, Write, Bash, Agent, Skill, mcp__forge-runner__*
Some findings are amplifiers, not standalone exploits. This command chains them.
Read each finding ID. Map each to the relevant code site and the vuln class.
Dispatch the `attacker` subagent with all findings as input. Ask it to:
Same as `/exploit`, but the test executes multiple steps:
function test_ChainExploit_GovernanceDrain() public {
// Step 1: flash-loan governance tokens (FLASH-001 + GOV-002)
flashLender.borrow(GOV_TOKEN, 1_000_000e18);
// Step 2: propose+vote+queue all in one block (GOV-003 — missing voting delay)
uint256 propId = governor.propose([address(treasury)], [0], [drainCalldata]);
governor.castVote(propId, 1);
governor.queue(propId);
// Step 3: wait timelock-bypass — TIMELOCK-001 — eta is ignored
vm.warp(block.timestamp + 1); // ← was supposed to be 2 days
governor.execute(propId);
// Step 4: repay flash loan, keep the drained treasury
flashLender.repay(GOV_TOKEN, 1_000_000e18);
assertGt(attacker.balance, treasuryStartBalance);
}Same as `/exploit` — the test must pass.
Exploit chain: 1. FLASH-001 borrow governance token via flash loan 2. GOV-002 vote with spot balance (no snapshot, no delay) 3. GOV-003 queue + execute in same block (timelock bypass) 4. TREAS-001 drain treasury via approved proposal → Net value extracted: $4.2M (assuming 1M flash loan source)
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.