All projects

svm-exploit-gym: an RL environment for Solana exploits

A verifiable RL environment where agents exploit vulnerable Solana programs, scored by execution.

Problem

An agent learning to find exploits needs a reward it can't fake, so the reward here is not a model's judgment. In svm-exploit-gym the reward is 1 only when the attacker's transactions, executed in LiteSVM, satisfy the task's success predicate, such as the attacker's balance rising or funds being drained.

How it works

  • 182 verified tasks across 3 programs (vault, escrow, staking) and 8 bug classes, plus secure controls, in train, test and held-out splits.
  • A Rust harness on LiteSVM builds fresh state per episode, compiles JSON actions into real instructions, enforces an attacker-only signer boundary and scores a typed success predicate.
  • A marker-based generator turns secure Anchor programs with @bug blocks into buggy variants plus task specs.
  • A verifier suite checks solvability, runs a differential test against the secure twin, runs anti-reward-hacking checks and a no-leak check.
  • A text interface for LLM agents and a Gymnasium interface with action masks for RL.

Results

  • A Claude (Sonnet) agent solved 116/140 bug tasks (83%), verified by execution.
  • No false positives on secure controls: an attack on a secure control can't satisfy its predicate.
  • Warm-starting MaskablePPO with Claude's solved attacks raised test success from ~4% to ~59% (mean of 3 seeds); neither arm transferred to the held-out bug class.
  • Red-teaming found four ways to score without the intended exploit, each fixed with a regression test.

Stack

RustLiteSVMAnchorPythonGymnasiumMaskablePPO

Links

More projects

StealthX

A private, gasless payments protocol for AI agents on Solana, built with a team as our Turbin3 accelerator capstone. Pinocchio for compute efficiency, hand-written MagicBlock delegation and undelegation CPIs, and x402 machine-payment integration with scoped, compliance-aware disclosure.

SolanaRustPinocchioMagicBlockx402PrivacyPayments

Pinoc

A CLI for scaffolding, building, and deploying Solana programs written with Pinocchio, with IDL and client generation. Pinocchio is deliberately minimal, with no build orchestration or project conventions, so Pinoc supplies the workflow around it, including a `clean` that preserves the program keypair so you don't lose your program ID the way a plain `cargo clean` does.

RustCLISolanaPinocchioDeveloper Tooling

Full-Time

A trust-minimized settlement rail for parametric sports markets on Solana. Settlement is permissionless and proof-based: anyone can submit a TxODDS Merkle proof and the program recomputes the root on-chain via CPI, so there is no admin, oracle key, or dispute committee. Shipped as an installable SDK (@fulltime/settle), an autonomous keeper, and a Next.js reference dApp.

SolanaRustAnchorTypeScriptNext.jsOraclesMerkle ProofsSDK

Octasol

An open-source trustless bounty platform on Solana, backed by a Superteam grant. Escrow, developer profiles, and GitHub authentication, built with Rust, Anchor, Next.js, and TypeScript.

SolanaRustAnchorNext.jsTypeScriptEscrowGitHub

Arachnid

An asynchronous web crawler with NLP capabilities, archiving data from Tor and I2P networks to improve availability. Built with Python, HuggingFace Transformers, async programming, and Apache Cassandra.

PythonNLPAsyncApache Cassandra