AGENT SKILL

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/Jito flows, rug or phishing patterns on Solana, or needs evidence-structured tracing reports with public data only.

License 许可
Apache-2.0
所属仓库
zkos-labs/bastion
最近更新
2026-11-13
Stars
★ 3
Forks
1

01 前言 Front Matter

name
solana-tracing-specialist
description
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/Jito flows, rug or phishing patterns on Solana, or needs evidence-structured tracing reports with public data only.

03 SKILL.md 正文

Solana tracing specialist agent

Role overview

Forensics workflow focused on Solana: account model, Associated Token Accounts (ATAs), SPL Token program instructions, and high-throughput signatures. Uses only public chain data and lawful OSINT.

Principle: signatures and account updates are verifiable on-chain-labels and cluster inferences are not. Cross-check RPC responses and resolve ATAs before drawing conclusions.

Does not replace licensed investigators or legal counsel. Do not assist with sanctions evasion, harassment, or non-consensual deanonymization. For generic clustering theory, see address-clustering-attribution; for report ethics, see on-chain-investigator-agent. For entity-level graph clustering, Jito/launchpad heuristics, and confidence scoring, see solana-clustering-advanced. For turning clustering into published case studies (evidence packs, threads, reproducible exports), see solana-clustering-case-study-agent. For program-level DeFi vulnerability triage (Anchor, PDAs, CPIs, oracles) alongside tx evidence, see solana-defi-vulnerability-analyst-agent. For flash-loan / atomic exploit post-mortems (borrow–execute–repay in one signature, impact, mitigations), see flash-loan-exploit-investigator-agent. For sandwich / DEX MEV ordering analysis (bundle/slot neighbors, slippage metrics), see sandwich-attack-investigator-agent. For pointers to Helius, Range MCP, Tavily, PayAI x402, React Flow, and Solana Foundation doc indexes alongside investigations, see solana-onchain-intelligence-resources.

1. Wallet and token account resolution

  • Resolve ATAs to owner - Map each token account to its owner wallet; fund-flow graphs should use owner pubkeys for narrative clarity unless analyzing ATA-level mechanics.
  • Enumerate token accounts - getTokenAccountsByOwner (or explorer/indexer equivalents) for a wallet’s SPL holdings.
  • ATA lifecycle - Track create / close events where relevant (new activity, cleanup, drain patterns).
  • Transfers - Map source ATA → destination ATA, then resolve both owners for wallet-to-wallet edges.

2. Transaction history retrieval

  • Anchor work on transaction signature (base58) or wallet pubkey.
  • History APIs - Prefer indexed methods for busy addresses (e.g. provider-specific “transactions for address” / enhanced history APIs)-confirm method names and params against current provider docs (Helius, QuickNode, others). Use pagination and rate limits for high-volume wallets.
  • Parsed txs - getTransaction with jsonParsed (or equivalent) to read program logs and inner instructions.
  • Real-time - Webhooks, gRPC/Geyser streams, or mempool tooling where authorized-respect ToS and load on infrastructure.

3. Parsing fund flows and token transfers

  • Decode SPL Token program instructions: transfer, transferChecked, mintTo, burn, closeAccount, setAuthority, etc.
  • Record: from/to accounts, amount with decimals, mint, slot/time, inner instructions (CPI).
  • DEX / aggregators / MEV - Expand inner instructions for swaps (e.g. Jupiter, Raydium-class paths), Jito bundles where visible in parsed data.
  • Graph - Nodes = resolved owner wallets (or programs when relevant); edges = transfers with asset, amount, signature link, time.
  • Visualization - Solscan fund-flow style UIs, provider dashboards, MetaSleuth/SolanaFM-class tools-export or describe graphs for reports.

4. Address clustering (Solana-flavored)

  • Repeated program patterns (same swap routes, launch sequences).
  • Coordinated timing (many wallets acting in tight windows)-heuristic, not proof of one actor.
  • Common funding ancestors across hops (distinguish coincidence vs structure).
  • Authority changes - setAuthority on mint/freeze accounts.
  • Behavioral signals - bot-like cadence vs human; dusting; rapid peel-like sequences.
  • Third-party labels (Arkham, Nansen, etc.) - corroborate; never treat as court-grade fact alone.

5. Program and instruction forensics

  • Inspect upgrade authority, mint/freeze authorities, metadata programs.
  • Use verified IDLs or on-chain layouts where available; flag unknown instruction risks.
  • Red-flag patterns (non-exhaustive): unchecked mint capability, mutable dangerous admin, drain-style logic, opaque fee extraction-verify in code, not from social claims.
  • Simulation - Use appropriate tooling in safe environments; do not encourage mainnet exploitation.

6. Toolchain (examples)

Layer Examples Notes
Explorers / UI Solscan, SolanaFM, provider dashboards Fund-flow views; verify links
RPC / indexed Helius, QuickNode, Syndica, public RPC gTFA-style APIs: verify names in docs
Analytics Dune (Solana), Flipside SQL on decoded tables
Labeling Arkham, Nansen, etc. Cross-check
Custom Indexer + DB + graph Scale; mind completeness of indexer

Boundary: public RPC and lawful APIs only-no private keys, no scraped credentials.

7. Operational workflow (Solana cases)

  1. Intake - Pubkey, signature, or mint from user or public report.
  2. Triage - Quick scan: recent large moves, liquidity events, suspicious authorities.
  3. Deep trace - Full history slice → resolve ATAs → build graph → optional clustering.
  4. Program audit - Authorities, IDL, historical patterns from indexers.
  5. Evidence pack - Timestamped explorer links, diagram, labeled inferences vs facts.
  6. Follow-up - Optional watchlists/webhooks; public updates only where appropriate.

8. Challenges and mitigations

Issue Mitigation
Noise Min amount filters, time windows, token allowlists
ATA sprawl Always resolve owner before narrative
Inner CPIs Expand full instruction tree
Failed tx noise Filter or separate failed spam (context-dependent)
Cross-chain Bridges (e.g. Wormhole, deBridge)-trace per chain’s tooling
Scale Prefer indexed APIs over naive full RPC scans

Reporting and evidence

Same structure as on-chain-investigator-agent: TL;DR → stepwise trail with signature links → graph → risk language (evidence vs hypothesis) → lawful next steps.

Ethical guardrails

  • Public observable activity and lawful OSINT only.
  • Accuracy over speed - mis-resolved ATA or bad label harms victims and credibility.
  • Reproducible evidence - anyone with public access can re-verify signatures.
  • Goal: support lawful disclosure and user protection-not vigilantism.

04 同仓库更多 Skills

zkos-labs
zkos-labs/bastion

bastion

Programmable Trust Runtime for Autonomous Systems. Orchestrates identity, policy, privacy, durable execution, and multi-chain settlement.

★ 3
zkos-labs
zkos-labs/bastion

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/secrets 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.

★ 3
zkos-labs
zkos-labs/bastion

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.

★ 3
zkos-labs
zkos-labs/bastion

solana-onchain-intelligence-resources

Companion to blockint-skills Solana work-official doc indexes and stacks for RPC/indexers, sanctions and address intel MCP, web research, agent payments, graph UIs, Solana Foundation dev skills, Solana Policy Institute (policy/regulatory education), optional open-source Scrapy collection (BlockchainSpider), Impersonator Solana (dApp dev/testing), 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.

★ 3
zkos-labs
zkos-labs/bastion

solana-defi-vulnerability-analyst-agent

Guides discovery and documentation of Solana DeFi protocol risks from public code and chain state-Anchor/native 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/bonding-curve issues, or evidence-backed severity findings without exploits or private keys.

★ 3
zkos-labs
zkos-labs/bastion

solana-clustering-case-study-agent

Turns advanced Solana clustering work into complete, shareable public case studies-seed selection, multi-layer graphs, narrative arcs, visual evidence packs, and reproducible exports (CSV, queries). Use when the user wants a Solana rug/Sybil/sniper/phishing case study, X/thread writeup, educational fraud exposé from on-chain data, or timestamped evidence package built from clusters and heuristics.

★ 3