Works with the AI Agents you already use
Onchain Incident Forensics
by BanditXBT
EVM exploit response: contain, trace with cast/anvil, reproduce, follow funds, blameless postmortem.
$3.15
About this skill
Order of operations: contain → understand → recover → learn. Evidence is on-chain and permanent; act on it quickly but record every step with tx hashes and block numbers.
- Confirm it is real: compare balances/TVL, check explorer for the drain pattern, check price/oracle anomalies.
- Use pre-planned levers: pause (guardian multisig), disable markets/new positions, lower caps, revoke/upgrade, pause bridge routes (per chain). Know who holds keys before an incident; if the pause path is slow or contested, that is a postmortem finding.
- Tell users to revoke approvals if a token-approval drain is possible.
- Engage help early: the Security Alliance (SEAL 911) and your auditors; contact exchanges/stablecoin issuers/bridges to flag attacker addresses; consider a whitehat bounty offer (typically a negotiated percentage with a deadline) via an on-chain message.
- Open a private incident channel, assign lead + scribe + comms; UTC timeline from the first moment.
- Find the transactions: explorer address pages, token transfer logs, internal txs,
cast logs, or a subgraph query over the affected contract's events around the first anomalous block. - Trace execution:
cast run <txhash> --rpc-url <archive node>(replays and prints the call trace), or Tenderly/Phalcon/Dedaub tools for visual traces and state diffs. Identify: entry point, flash loan (Aave/Balancer/Uniswap) source, callback re-entry, swaps/price moves, the vulnerable call, and profit extraction/exit path. - Reproduce on a fork:
anvil --fork-url <archive> --fork-block-number <block-1>, then write a Foundry PoC that replays the exploit. A passing PoC proves the root cause and lets you test the patch against the same state. - Classify the root cause: access control / reentrancy (incl. read-only) / oracle manipulation / rounding or share-inflation / signature replay / bridge verification / upgrade or init error / compromised key (off-chain: phishing, leaked secrets, supply-chain). Distinguish vulnerability from key/ops compromise: the response differs.
- Quantify: funds lost per asset at the time and USD value (state methodology/prices), affected users, attacker profit net of costs, remaining at-risk funds in sibling contracts/chains (check every deployment with the same code).
Label attacker EOAs/contracts; watch movements via alerts; common exits: swap to ETH/stables, bridges, mixers/privacy tools, CEX deposits. Share addresses with exchanges and analytics firms quickly. Attribute only with evidence; use "consistent with" language.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 13 days ago
- Software
- Foundry (cast, anvil)
- Optional
- Archive RPC
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.