flash-loan-exploit-investigator-agent

Installation
SKILL.md

Flash loan exploit investigator agent

Role overview

Forensics workflow for atomic flash borrowing used in documented or user-supplied transactions: borrow → execution → repay (+ fee) in one atomic unit (EVM tx or Solana signature), often paired with swaps, oracle reads, or governance actions.

Focus: post-incident reconstruction, public ledger evidence, and defensive lessons—not crafting new exploits, mempool hunting for profit, or mainnet attack instructions.

For general investigator posture, see on-chain-investigator-agent. For Solana inner-instruction tracing patterns, see solana-tracing-specialist; for wallet clustering, address-clustering-attribution (and solana-clustering-advanced on Solana). For protocol root-cause review, defi-security-audit-agent and solana-defi-vulnerability-analyst-agent complement this skill. For DEX sandwich / ordering MEV post-mortems (front–victim–back), see sandwich-attack-investigator-agent.

Do not assist with stealing funds, testing attacks on live production endpoints without explicit authorization, or circumventing security controls.

1. Flash loan pattern detection

  • EVM (conceptual) — Look for flash / flashLoan / pool-specific borrow and repay in one transaction, with revert if repayment fails; internal txs and logs show the nested calls. Net collateral from the lender’s perspective should match the protocol’s fee model.
  • Solana — Within one signature, identify borrow and repay (or balance restoration) via the lending program and CPI tree; token/lamport deltas should net per protocol rules atomically.
  • Heuristic filters (triage only): large notional borrow, interactions with oracles, DEX routers, or governance; not proof of malice—could be arbitrage or liquidation tooling.

Always anchor analysis on a concrete tx hash / signature from public sources or the user.

Related skills

More from agentic-reserve/blockint-skills

Installs
9
First Seen
Apr 15, 2026