Skip to content
Skill

Vulnhunter solana

Guides manual security review of Solana Rust programs for account-model bugs

Vulnhunter solana is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
227
Last commit
License
MIT
Listing updated

Similar skills

About Vulnhunter solana

This skill gives the agent a checklist of account-model vulnerability patterns to hunt for when reviewing Solana programs, covering owner and signer validation, discriminator checks, CPI signer seeds, PDA seed construction, checked token arithmetic, rent handling and account close and revival. It explicitly notes that no Solana static analyzer exists, so the review relies on grepping source for risky constructs such as bare AccountInfo usage, invoke_signed calls and unchecked operators on token amounts, then tracing each hit by hand.

The workflow is ordered: enumerate AccountInfo fields and check owner and signer requirements, trace the seeds passed to invoke_signed, confirm arithmetic uses checked or saturating operations, review Accounts structs for stronger typed alternatives, and list PDA seeds to confirm each carries a type prefix. It also covers account relationship constraints, sysvar spoofing, duplicate mutable accounts and invariant preservation in vaults or DEXes, with guidance that changes for non-Anchor programs and very large codebases.

The skill expects a Solana program written in Rust and is run inside a code review session where the agent can search the program source. It mentions optional extra tools such as cargo-geiger, cargo-fuzz, trident and cargo-audit for unsafe code, fuzzing and dependency checks.

When your agent uses it

Use when reviewing Solana program code for the account-model bug classes — unchecked account owner, absent signer, discriminator confusion, caller-controlled CPI seeds, PDA-derivation collision, SPL arithmetic overflow, close-and-reinitialize revival, and duplicate-account aliasing — the pattern census that stands in for absent scanners.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (8 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

Claude Code docs on skills

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

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

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

Codex docs on skills

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

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

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

Cursor docs on skills

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

gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/vulnhunter-solana

Or copy the folder to ~/.gemini/skills/vulnhunter-solana yourself.

Gemini CLI docs on skills

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

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

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

VS Code docs on skills

Get the folder:

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

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

The SKILL.md format

What it does

Owner and signer checks
Flags accounts that lack validation of their owning program or required signer status.
CPI signer seed review
Traces invoke_signed seeds to confirm authority PDAs are not controlled by callers.
Discriminator and type confusion
Checks that sensitive Anchor accounts are validated so one account type cannot stand in for another.
PDA seed collision analysis
Reviews PDA seed construction for type prefixes that prevent different logical accounts colliding.
Token arithmetic overflow
Looks for unchecked math on token amounts and confirms overflow-checks settings.
Close and revival checks
Verifies closed accounts are drained and zeroed so they cannot be reinitialized.

Good for

  • Review my Anchor program for missing signer and owner checks
  • Check whether my invoke_signed calls use program-controlled PDA seeds
  • Audit token amount math in my Solana program for overflow
  • Look for account substitution risks in my vault instructions
  • Find duplicate mutable account aliasing in my handlers

Vulnhunter solana FAQ

Does Vulnhunter solana run a Solana static analyzer?

No. The skill states that no Solana static-analysis step exists and that review is manual pattern matching with grep, supported by optional dynamic fuzzing tools.

Which Solana frameworks does Vulnhunter solana cover?

It covers Anchor programs and also describes how to apply the same patterns to non-Anchor programs written against raw solana_program primitives.

What does Vulnhunter solana need to run?

It needs access to the program's Rust source so the agent can search for AccountInfo, invoke_signed and arithmetic usages. Optional tools are cargo-geiger, cargo-fuzz, trident and cargo-audit.

Does Vulnhunter solana modify code?

The skill is a review checklist. Its instructions describe searching and reporting findings and do not describe editing the program.

How do I install Vulnhunter solana in Claude Code?

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

Does Vulnhunter solana 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 Vulnhunter solana?

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 Vulnhunter solana?

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

Where this comes from

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

More from mtarcure/claude-vibe-squad

  1. Writes alt text, timed captions and transcripts for images, footage and audio

    • Open source
    • 227 GitHub stars
    • Design and media
  2. Guides building product agent system prompts with eval-backed boundaries and output

    • Open source
    • 227 GitHub stars
    • AI models and LLM tooling
  3. Guides authorized adversarial testing of autonomous LLM agents for injection and approval

    • Open source
    • 227 GitHub stars
    • Security
  4. Writes a typed game-event to audio-cue map that hands adaptive audio designs to engines

    • Open source
    • 227 GitHub stars
    • Developer tools
  5. Generates missing README, CHANGELOG, LICENSE and agent-context files at project delivery

    • Open source
    • 227 GitHub stars
    • Developer tools
  6. Builds and proves multi-step exploit chains from weak bug-bounty findings

    • Open source
    • 227 GitHub stars
    • Security