Works with the AI Agents you already use
Solana Incident Forensics
by BanditXBT
Solana exploit response: trace inner instructions and balance diffs, reproduce locally, contain, postmortem.
Free
About this skill
Order: contain → understand → recover → learn. Everything is on-chain and permanent; record signatures, slots, and addresses for every claim.
- Verify it's real: vault/TVL balance vs. expected, abnormal outflows, oracle/price anomalies, unusual instruction patterns.
- Pull pre-planned levers: pause (guardian), disable markets/deposits, cap withdrawals, rotate compromised keys. If the program is upgradeable and the bug is in code, prepare a patched binary via buffer + multisig (see
solana-deploy-upgrade-ops); if a key is compromised, move authorities first. - Tell users to revoke token delegations if approvals/delegates are involved.
- Escalate: auditors, the Security Alliance (SEAL 911), major RPC/infra partners, exchanges and stablecoin issuers (freeze/flag attacker addresses), and bridge operators if funds are moving cross-chain. Consider a whitehat bounty offer with a deadline via on-chain message.
- Open a private incident channel; lead + scribe + comms; UTC timeline starting now.
- Find transactions: explorer pages for the program/vault accounts (Solscan, SolanaFM, Solana Explorer), or RPC
getSignaturesForAddressfor the program/vault around the first anomalous slot. Regular RPC nodes prune old history: use an archival-capable provider for older data. - Inspect each tx:
solana confirm -v <SIG>orgetTransaction(sig, {maxSupportedTransactionVersion: 0, encoding: "jsonParsed"}). Read:message.accountKeys(+ address lookup table resolved addresses inloadedAddresses), instruction list,innerInstructions(CPIs: where the value actually moved),logMessages(program logs, CU used, errors), andpreBalances/postBalancespluspreTokenBalances/postTokenBalancesto compute exact per-account deltas. - Identify the pattern: which accounts were fake/substituted (owner, mint, oracle, sysvar), which instruction lacked a check, whether a flash-loan/bundle (many instructions or Jito-style bundle across txs) funded price moves, and the profit extraction path (swap → SOL/stables → bridge/CEX).
- Reproduce locally: clone the relevant accounts at the pre-exploit slot (
solana-test-validator --clone ..., or LiteSVM with fetched account data) and the program binary (solana program dump <ID> prog.so, checking the on-chain version at that slot). Write a failing test replaying the exploit instructions; apply the patch and show it passes (seesolana-testing-fuzzing). - Classify root cause: missing signer/owner/type check · PDA/seed flaw · arbitrary CPI · sysvar spoof · duplicate account · reinit/close revival · arithmetic/rounding · oracle manipulation/staleness · Token-2022 extension abuse · compromised upgrade/admin key (ops, not code) · supply-chain (malicious dependency/npm/crate). Reference classes: Wormhole (Feb 2022, unchecked instructions sysvar), Cashio (Mar 2022, unvalidated collateral account chain), Mango (Oct 2022, oracle-manipulated collateral).
- Quantify: per-asset loss at time of exploit with pricing method stated, affected users/vaults, attacker net profit after fees/tips, and remaining exposure in sibling programs or other deployments sharing the flaw.
Label attacker wallets and intermediate accounts; set alerts on them; note exits (DEX swaps, bridges, CEX deposits, mixers/privacy tools). Share addresses with exchanges and analytics firms fast. Attribute only with evidence ("consistent with"). Remember funds can hop cross-chain within minutes.
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
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 13 days ago
- Free with an Agensi account
- Software
- Solana CLI
- Optional
- Archive-capable 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.