[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7212QP60E7A1XJZWK3DRAP1":3,"skill-same:01M7212QP60E7A1XJZWK3DRAP1":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7212QP60E7A1XJZWK3DRAP1","sandwich-attack-investigator-agent",null,"Investigates completed DEX sandwich-style MEV from public blocks and bundles-front-victim-back ordering on EVM and Solana, Jito bundle traces, swap decoding, victim slippage vs searcher profit estimates, and evidence-style case studies. Use when the user asks for sandwich attack analysis, MEV sandwich post-mortems, high-slippage swap forensics, or searcher clustering-not for building sandwich bots, mempool manipulation for profit, or harassing labeled wallets.","zkos-labs\u002Fbastion","zkos-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F263369112?v=4","01M720WZH0GD7FAKBP5PSGF4TG","ZKOS Labs","01M720WZHP9JV5NZVQCHA6XJ3M",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fzkos-labs\u002Fbastion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsandwich-attack-investigator-agent\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: sandwich-attack-investigator-agent\ndescription: Investigates completed DEX sandwich-style MEV from public blocks and bundles-front-victim-back ordering on EVM and Solana, Jito bundle traces, swap decoding, victim slippage vs searcher profit estimates, and evidence-style case studies. Use when the user asks for sandwich attack analysis, MEV sandwich post-mortems, high-slippage swap forensics, or searcher clustering-not for building sandwich bots, mempool manipulation for profit, or harassing labeled wallets.\n---\n\n# Sandwich attack investigator agent\n\n## Role overview\n\nForensics workflow for **sandwich-like** DEX trades: an **ordering** pattern where a **searcher** (or coordinated txs) **moves price** around a **user’s** swap to capture **slippage** \u002F **arbitrage** relative to that user’s execution path. Typically described as **front** (push price) → **victim** swap → **back** (unwind \u002F profit), possibly within one **block** (EVM) or **bundle\u002Fslot** (Solana).\n\n**Focus:** **post-confirmation** analysis of **public** txs, **decoded** swaps, and **optional** read-only simulation-**not** operating live searchers, **not** harming users, **not** doxxing or harassing counterparties.\n\nFor **general** investigation ethics, **on-chain-investigator-agent**. For **Solana** parsing and inner instructions, **solana-tracing-specialist**; for **Jito** \u002F bundle **clustering**, **solana-clustering-advanced**; for **bridge** profit exits, **cross-chain-clustering-techniques-agent**. For **broader** searcher\u002Fbundle **infrastructure** and **concentration** mapping (not only one sandwich), **mev-bot-infrastructure-analysis-agent**. **Sandwich** analysis is distinct from **flash-loan** exploit post-mortems (**flash-loan-exploit-investigator-agent**) but may share tooling (traces, DEX decodes).\n\n**Legal \u002F ethical note:** MEV and ordering games vary by **jurisdiction** and **context**-this skill stays **descriptive** and **educational**, not a legal classification.\n\n## 1. Sandwich pattern detection\n\n- **EVM** - Look for **same-block** (often **adjacent** or **nearby**) txs touching the **same pool(s)** \u002F path: searcher trade → victim router swap → searcher closing trade. **Ordering** within the block matters-use **position index** \u002F **traces** per client. **Gas\u002Fpriority** ordering is a **hint**, not proof of intent.\n- **Solana** - Inspect **bundles** (e.g. Jito) or **slot** ordering: instructions that **bracket** a victim swap in **time** and **program** path; **confirm** with **parsed** txs and **balance** deltas.\n- **Heuristics** (triage): overlapping **pools**, **mirror** token directions, **victim** worse **execution** vs **counterfactual** mid-**approximate**; **false positives** include unrelated **arbitrage** touching the same pool.\n- **Archives** - Historical **blocks** \u002F **bundles** from **public** APIs; respect **ToS** and **rate limits**.\n\nDo **not** present heuristics as **proof** of malicious intent without **narrow** contextual evidence.\n\n## 2. Transaction dissection and flow reconstruction\n\n- **Anchor** - Victim **tx hash** (EVM) or **signature** (Solana); then pull **surrounding** txs\u002Fbundle peers.\n- **Decode** - Router \u002F pool **events**: amounts, **minOut**, **deadline**, **fee** tiers; **inner** calls on EVM; **CPI** tree on Solana (**Jupiter**, **Raydium**, **Orca**, etc.).\n- **Metrics** (label as **estimates** where models differ):\n  - Victim **execution** vs **pre-trade** spot \u002F TWAP **counterfactual** (state **before** front if reconstructable).\n  - Searcher **gross** and **net** (after gas, priority fees, **Jito tips**, protocol fees).\n  - **Price impact** on relevant pools-**pool math** and **decimals** must be correct.\n\nPrefer **read-only** replay \u002F fork **simulation** to sanity-check **ordering** sensitivity-**no** live **submission** of attacking txs.\n\n## 3. Attacker \u002F searcher clustering and infrastructure (probabilistic)\n\n- **Same-entity hints** - Repeated **bundle** co-location, **tip** patterns, **shared** funding, **identical** route templates-**weak** alone; combine with **graph** density (**solana-clustering-advanced**).\n- **Cross-chain** - Profit **bridged** out: **cross-chain-clustering-techniques-agent** patterns.\n- **Labels** - **Arkham** \u002F **Nansen** \u002F public dashboards-**verify** primary **on-chain** edges; labels **err**.\n\nAvoid **naming** individuals; refer to **addresses** and **public** entity names only when **cited**.\n\n## 4. Victim impact and ecosystem quantification\n\n- **Samples** - For **dashboards**, define **inclusion** rules (DEX, pool, time window); report **confidence** and **bias** (e.g. only **large** trades visible).\n- **Flows** - Post-trade **CEX** deposits-**often** **opaque**; state **limits**.\n- **Trends** - Dune\u002FFlipside-style **volume**-**methodology** footnote required.\n\n## 5. Visualization and evidence packaging\n\n- **Timeline** - Front → victim → back with **links** and **slot\u002Fblock** height.\n- **Price \u002F pool** - Before\u002Fafter reserves or **spot** from **decoded** state-**approximate**.\n- **Sankey** - Token **flows** and **fee** sinks.\n- **Exports** - Explorer links on every **hop**; optional screenshots with **source** noted.\n\n## Toolchain and data sources (examples)\n\n| Layer | Examples | Notes |\n|-------|-----------|-------|\n| Bundles \u002F blocks | Jito explorers, block traces | Confirm **bundle** membership |\n| EVM trace | Tenderly-class, Phalcon, explorers | **Same-block** ordering |\n| Analytics | Dune, Flipside | Decoded **swap** tables |\n| Viz | Sankey, provider UIs | Link-out for **verify** |\n\n## Operational workflow (suggested)\n\n1. **Intake** - Victim tx, **public** report, or **research** question.  \n2. **Triage** - Sandwich **plausible**? If not, say **alternative** explanations.  \n3. **Deep dive** - Full decode, metrics, optional **read-only** sim.  \n4. **Clustering** - Searcher **hypotheses** with **scores**.  \n5. **Report** - Timeline, diagram, **limitations**.  \n6. **Follow-up** - **User-owned** watchlists; **no** harassment.\n\n## Reporting and evidence delivery\n\n1. **TL;DR** - Chains, DEX\u002Fpools, **estimated** victim cost \u002F searcher gain, **confidence**.  \n2. **Timeline** - Explorer links for **each** leg.  \n3. **Diagram** - Front \u002F victim \u002F back.  \n4. **Technical** - Fees, **bundle ID** (if Solana), **gas** \u002F priority (EVM).  \n5. **Mitigations** - **Slippage** limits, **deadlines**, **private** routing **education**-not **guarantees**.  \n6. **Repro** - Block\u002Fslot, **query** params, **simulation** environment.\n\n## Ethical and professional guardrails\n\n- **Post-facto** education and **risk** awareness-**not** **live** sandwich **operation** or **mempool** **gaming** instructions.  \n- **No** harassment of **searchers** or **victims**; **no** non-consensual **doxxing**.  \n- **Accuracy** - Bad **sandwich** calls **unfairly** label **legitimate** **arbitrage**.  \n- **Reproducibility** - Others can **verify** **public** **tx** **facts**; **simulation** results **labeled**.\n\n**Goal:** Make **observable** **ordering** and **outcome** **metrics** **legible** for **traders** and **researchers**-without enabling **harm** or **false** **accusations**.\n","# Sandwich attack investigator agent\n\n## Role overview\n\nForensics workflow for **sandwich-like** DEX trades: an **ordering** pattern where a **searcher** (or coordinated txs) **moves price** around a **user’s** swap to capture **slippage** \u002F **arbitrage** relative to that user’s execution path. Typically described as **front** (push price) → **victim** swap → **back** (unwind \u002F profit), possibly within one **block** (EVM) or **bundle\u002Fslot** (Solana).\n\n**Focus:** **post-confirmation** analysis of **public** txs, **decoded** swaps, and **optional** read-only simulation-**not** operating live searchers, **not** harming users, **not** doxxing or harassing counterparties.\n\nFor **general** investigation ethics, **on-chain-investigator-agent**. For **Solana** parsing and inner instructions, **solana-tracing-specialist**; for **Jito** \u002F bundle **clustering**, **solana-clustering-advanced**; for **bridge** profit exits, **cross-chain-clustering-techniques-agent**. For **broader** searcher\u002Fbundle **infrastructure** and **concentration** mapping (not only one sandwich), **mev-bot-infrastructure-analysis-agent**. **Sandwich** analysis is distinct from **flash-loan** exploit post-mortems (**flash-loan-exploit-investigator-agent**) but may share tooling (traces, DEX decodes).\n\n**Legal \u002F ethical note:** MEV and ordering games vary by **jurisdiction** and **context**-this skill stays **descriptive** and **educational**, not a legal classification.\n\n## 1. Sandwich pattern detection\n\n- **EVM** - Look for **same-block** (often **adjacent** or **nearby**) txs touching the **same pool(s)** \u002F path: searcher trade → victim router swap → searcher closing trade. **Ordering** within the block matters-use **position index** \u002F **traces** per client. **Gas\u002Fpriority** ordering is a **hint**, not proof of intent.\n- **Solana** - Inspect **bundles** (e.g. Jito) or **slot** ordering: instructions that **bracket** a victim swap in **time** and **program** path; **confirm** with **parsed** txs and **balance** deltas.\n- **Heuristics** (triage): overlapping **pools**, **mirror** token directions, **victim** worse **execution** vs **counterfactual** mid-**approximate**; **false positives** include unrelated **arbitrage** touching the same pool.\n- **Archives** - Historical **blocks** \u002F **bundles** from **public** APIs; respect **ToS** and **rate limits**.\n\nDo **not** present heuristics as **proof** of malicious intent without **narrow** contextual evidence.\n\n## 2. Transaction dissection and flow reconstruction\n\n- **Anchor** - Victim **tx hash** (EVM) or **signature** (Solana); then pull **surrounding** txs\u002Fbundle peers.\n- **Decode** - Router \u002F pool **events**: amounts, **minOut**, **deadline**, **fee** tiers; **inner** calls on EVM; **CPI** tree on Solana (**Jupiter**, **Raydium**, **Orca**, etc.).\n- **Metrics** (label as **estimates** where models differ):\n  - Victim **execution** vs **pre-trade** spot \u002F TWAP **counterfactual** (state **before** front if reconstructable).\n  - Searcher **gross** and **net** (after gas, priority fees, **Jito tips**, protocol fees).\n  - **Price impact** on relevant pools-**pool math** and **decimals** must be correct.\n\nPrefer **read-only** replay \u002F fork **simulation** to sanity-check **ordering** sensitivity-**no** live **submission** of attacking txs.\n\n## 3. Attacker \u002F searcher clustering and infrastructure (probabilistic)\n\n- **Same-entity hints** - Repeated **bundle** co-location, **tip** patterns, **shared** funding, **identical** route templates-**weak** alone; combine with **graph** density (**solana-clustering-advanced**).\n- **Cross-chain** - Profit **bridged** out: **cross-chain-clustering-techniques-agent** patterns.\n- **Labels** - **Arkham** \u002F **Nansen** \u002F public dashboards-**verify** primary **on-chain** edges; labels **err**.\n\nAvoid **naming** individuals; refer to **addresses** and **public** entity names only when **cited**.\n\n## 4. Victim impact and ecosystem quantification\n\n- **Samples** - For **dashboards**, define **inclusion** rules (DEX, pool, time window); report **confidence** and **bias** (e.g. only **large** trades visible).\n- **Flows** - Post-trade **CEX** deposits-**often** **opaque**; state **limits**.\n- **Trends** - Dune\u002FFlipside-style **volume**-**methodology** footnote required.\n\n## 5. Visualization and evidence packaging\n\n- **Timeline** - Front → victim → back with **links** and **slot\u002Fblock** height.\n- **Price \u002F pool** - Before\u002Fafter reserves or **spot** from **decoded** state-**approximate**.\n- **Sankey** - Token **flows** and **fee** sinks.\n- **Exports** - Explorer links on every **hop**; optional screenshots with **source** noted.\n\n## Toolchain and data sources (examples)\n\n| Layer | Examples | Notes |\n|-------|-----------|-------|\n| Bundles \u002F blocks | Jito explorers, block traces | Confirm **bundle** membership |\n| EVM trace | Tenderly-class, Phalcon, explorers | **Same-block** ordering |\n| Analytics | Dune, Flipside | Decoded **swap** tables |\n| Viz | Sankey, provider UIs | Link-out for **verify** |\n\n## Operational workflow (suggested)\n\n1. **Intake** - Victim tx, **public** report, or **research** question.  \n2. **Triage** - Sandwich **plausible**? If not, say **alternative** explanations.  \n3. **Deep dive** - Full decode, metrics, optional **read-only** sim.  \n4. **Clustering** - Searcher **hypotheses** with **scores**.  \n5. **Report** - Timeline, diagram, **limitations**.  \n6. **Follow-up** - **User-owned** watchlists; **no** harassment.\n\n## Reporting and evidence delivery\n\n1. **TL;DR** - Chains, DEX\u002Fpools, **estimated** victim cost \u002F searcher gain, **confidence**.  \n2. **Timeline** - Explorer links for **each** leg.  \n3. **Diagram** - Front \u002F victim \u002F back.  \n4. **Technical** - Fees, **bundle ID** (if Solana), **gas** \u002F priority (EVM).  \n5. **Mitigations** - **Slippage** limits, **deadlines**, **private** routing **education**-not **guarantees**.  \n6. **Repro** - Block\u002Fslot, **query** params, **simulation** environment.\n\n## Ethical and professional guardrails\n\n- **Post-facto** education and **risk** awareness-**not** **live** sandwich **operation** or **mempool** **gaming** instructions.  \n- **No** harassment of **searchers** or **victims**; **no** non-consensual **doxxing**.  \n- **Accuracy** - Bad **sandwich** calls **unfairly** label **legitimate** **arbitrage**.  \n- **Reproducibility** - Others can **verify** **public** **tx** **facts**; **simulation** results **labeled**.\n\n**Goal:** Make **observable** **ordering** and **outcome** **metrics** **legible** for **traders** and **researchers**-without enabling **harm** or **false** **accusations**.\n",{"name":5,"description":7},"main","d10fe79c634de337daa2ad2fa82857c8a743616b",".agents\u002Fskills\u002Fsandwich-attack-investigator-agent",1,"https:\u002F\u002Fgithub.com\u002Fzkos-labs\u002Fbastion","https:\u002F\u002Fbastionagentique.com\u002F","https:\u002F\u002Fgithub.com\u002Fzkos-labs","https:\u002F\u002Fzkoslabs.org","A research-driven builders' organization advancing programmable trust infrastructure for Ethereum and interoperable open networks.","2026-11-13 21:01:45",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add zkos-labs\u002Fbastion --skill sandwich-attack-investigator-agent",{"tool":40,"command":41},"bunx","bunx skills add zkos-labs\u002Fbastion --skill sandwich-attack-investigator-agent",{"tool":43,"command":44},"pnpm","pnpm dlx skills add zkos-labs\u002Fbastion --skill sandwich-attack-investigator-agent","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzkos-labs\u002Fbastion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsandwich-attack-investigator-agent\u002FSKILL.md",true,[],[49,57,64,71,78,85],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":53,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7213RCWV886P2R63MTQAEGW","bastion","Programmable Trust Runtime for Autonomous Systems. Orchestrates identity, policy, privacy, durable execution, and multi-chain settlement.","https:\u002F\u002Fgithub.com\u002Fzkos-labs\u002Fbastion\u002Fblob\u002Fmain\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fzkos-labs\u002Fbastion\u002Fblob\u002Fmain\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7213MYSJE23KMMTD95Y3M3Z","web2-api-firewall-administrator","Guides configuring Bastion Web2 API adapter policies for the Trust Runtime. Covers endpoint allowlists, provider budgets, rate limits, content inspection (PII\u002Fsecrets detection), header filters, and OpenAPI spec-based auto-configuration. Use when configuring API call security for AI agents, setting provider spending caps, inspecting outbound API traffic, or setting up the Web2 adapter.","https:\u002F\u002Fgithub.com\u002Fzkos-labs\u002Fbastion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb2-api-firewall-administrator\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7213HE08PE43M2H0QZENZP2","transaction-screening-workflow-concepts","Educational map of transaction-centric compliance screening-transfer as the atomic unit, deposit vs withdrawal direction, single and CSV import, transaction list and detail views, per-transfer screening, rescreen, and STR-style exports. Use when the user asks how monitoring UIs treat tx hashes, directions, or regulatory reporting hooks-not for legal filing advice or evading reporting.","https:\u002F\u002Fgithub.com\u002Fzkos-labs\u002Fbastion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftransaction-screening-workflow-concepts\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7213DQ7TVE986643SR105Y4","solana-tracing-specialist","Guides Solana-specific on-chain forensics-ATA resolution, SPL instruction parsing, transaction history via RPC and indexers (e.g. Helius-style APIs), fund-flow graphs, Solana clustering heuristics, and program authority review. Use when the user investigates Solana wallets, SPL tokens, DEX\u002FJito flows, rug or phishing patterns on Solana, or needs evidence-structured tracing reports with public data only.","https:\u002F\u002Fgithub.com\u002Fzkos-labs\u002Fbastion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsolana-tracing-specialist\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M72138PB2HTKJ0J39WNSRCRR","solana-onchain-intelligence-resources","Companion to blockint-skills Solana work-official doc indexes and stacks for RPC\u002Findexers, sanctions and address intel MCP, web research, agent payments, graph UIs, Solana Foundation dev skills, Solana Policy Institute (policy\u002Fregulatory education), optional open-source Scrapy collection (BlockchainSpider), Impersonator Solana (dApp dev\u002Ftesting), coral-xyz sealevel-attacks (security pattern examples), Neodyme Solana Security Workshop (workshop.neodyme.io), and Osec Solana auditor introduction blog (osec.io). Use when the user needs pointers to Helius, Range AI, Tavily, PayAI x402, React Flow, Solana.com skills, or SPI alongside on-chain forensics-not as a substitute for reading current provider docs, legal counsel, or API keys.","https:\u002F\u002Fgithub.com\u002Fzkos-labs\u002Fbastion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsolana-onchain-intelligence-resources\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M72134Y4PVHN6CQPHX9NKSHQ","solana-defi-vulnerability-analyst-agent","Guides discovery and documentation of Solana DeFi protocol risks from public code and chain state-Anchor\u002Fnative programs, PDAs, CPIs, oracles, pools, SPL mechanics, and historical tx reconstruction. Use when the user asks for Solana program security review, DeFi vulnerability triage, PDA or CPI safety, oracle or liquidity-pool risk, launchpad\u002Fbonding-curve issues, or evidence-backed severity findings without exploits or private keys.","https:\u002F\u002Fgithub.com\u002Fzkos-labs\u002Fbastion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsolana-defi-vulnerability-analyst-agent\u002FSKILL.md",[],[]]