# Solana audit flow

> Solana audit flow is an open-source agent skill for security. Guides an agent through a full Solana Anchor or Rust program security audit. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/solana-audit-flow
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** solana-audit-flow
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

This skill walks an agent through auditing an Anchor or bare solana_program codebase from build to confirmed findings. It starts with a clean build and a review of every compiler warning, then moves into manual checks for common Solana weaknesses such as account ownership, discriminator validation, signer checks, CPI seed handling, token math and PDA collisions. Because the skill notes that Solana has no static analyzer, manual reading is treated as the main coverage step rather than a supplement.

The workflow then runs the existing cargo test suite, including LiteSVM-backed tests, followed by fuzzing with Trident for IDL-driven Anchor programs and cargo-fuzz for raw deserialization surfaces. Results are triaged through a false-positive filter and an impact gate before anything is reported. The skill also covers optional local reproduction with the solana CLI and solana-test-validator, and it avoids silent toolchain installs or mainnet writes.

The agent is expected to have a Rust or Anchor workspace, the native tools anchor, cargo, trident and cargo-fuzz available, and the solana CLI if on-chain reproduction is needed. The skill references companion skills for vulnerability review and triage that are not included in this folder.

## When your agent uses it

> Use when auditing an Anchor or bare-Rust Solana program end to end; because Solana ships no static analyzers, the coverage strategy is compiler-warning triage, manual source reading, LiteSVM and cargo tests, plus coverage-guided Trident and cargo-fuzz fuzzers before false-positive triage.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/solana-audit-flow)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/solana-audit-flow)

## Features

- **Build and warning triage:** Confirms a clean compile and treats compiler warnings as possible logic bugs to review.
- **Manual vulnerability review:** Checks ownership, signers, discriminators, CPI seeds, token math and PDA collisions by reading source.
- **Unit and LiteSVM tests:** Runs the existing cargo test suite, including LiteSVM-backed tests, and flags failing security-sensitive tests.
- **Trident and cargo-fuzz fuzzing:** Drives IDL-based Anchor fuzzing with Trident and raw parsing fuzzing with cargo-fuzz.
- **False-positive triage:** Filters findings through a second-opinion review and an impact gate before reporting.
- **Local cluster reproduction:** Optionally reproduces findings on a local validator using the solana CLI without mainnet writes.

## Good for

- Audit my Anchor program for missing signer and ownership checks
- Run Trident fuzzing against my Anchor instructions
- Review a bare solana_program crate for CPI signer seed problems
- Triage compiler warnings in my Solana program for hidden logic bugs
- Reproduce a suspected finding on a local solana-test-validator

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/solana-audit-flow` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/solana-audit-flow &&
cp -R "$tmp/.agents/skills/solana-audit-flow" ~/.claude/skills/solana-audit-flow &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/solana-audit-flow` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/solana-audit-flow` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/solana-audit-flow &&
cp -R "$tmp/.agents/skills/solana-audit-flow" ~/.agents/skills/solana-audit-flow &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/solana-audit-flow` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/solana-audit-flow` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/solana-audit-flow &&
cp -R "$tmp/.agents/skills/solana-audit-flow" ~/.cursor/skills/solana-audit-flow &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/solana-audit-flow` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/solana-audit-flow
```

Or copy the folder to `~/.gemini/skills/solana-audit-flow` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/solana-audit-flow`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/solana-audit-flow &&
cp -R "$tmp/.agents/skills/solana-audit-flow" ~/.copilot/skills/solana-audit-flow &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/solana-audit-flow` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git
```

Then copy `claude-vibe-squad/.agents/skills/solana-audit-flow` into your agent's skills folder as `solana-audit-flow`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What tools does Solana audit flow need installed?

It runs anchor, cargo, trident, cargo-fuzz and the solana CLI as native host tools, and expects litesvm as a dev-dependency for LiteSVM tests.

### Does Solana audit flow run a static analyzer on Solana code?

No. The skill states that Solana has no static-analysis step and relies on manual review plus dynamic fuzzing instead.

### Will Solana audit flow install toolchains automatically?

No. It asks you to confirm the installed toolchain and surfaces version mismatches rather than running avm use or network installs.

### Does Solana audit flow modify Anchor.toml?

No. If a version mismatch blocks the build, it reports the mismatch and leaves Anchor.toml unchanged unless instructed.

### How do I install Solana audit flow in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/solana-audit-flow to use it in all your projects, or to .claude/skills/solana-audit-flow in one project.

### Does Solana audit flow run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Solana audit flow?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Solana audit flow?

The closest alternatives to Solana audit flow are Solana vulnerability scanner, Vulnhunter solana, Chain construct smart contract, Evm audit flow and Defi amm security.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Solana vulnerability scanner](https://ai-powered.com/skills/solana-vulnerability-scanner): Solana vulnerability scanner is an open-source agent skill for security.
- [Vulnhunter solana](https://ai-powered.com/skills/vulnhunter-solana): Vulnhunter solana is an open-source agent skill for security.
- [Chain construct smart contract](https://ai-powered.com/skills/chain-construct-smart-contract): Chain construct smart contract is an open-source agent skill for security.
- [Evm audit flow](https://ai-powered.com/skills/evm-audit-flow): Evm audit flow is an open-source agent skill for security.
- [Defi amm security](https://ai-powered.com/skills/defi-amm-security): Defi amm security is an open-source agent skill for security.
- [Security audit](https://ai-powered.com/skills/security-audit): Security audit is an open-source agent skill for security.
- [Defi invariant check](https://ai-powered.com/skills/defi-invariant-check): Defi invariant check is an open-source agent skill for security.
- [Signature validation audit](https://ai-powered.com/skills/signature-validation-audit): Signature validation audit is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/solana-audit-flow
