# Vulnhunter solana

> Vulnhunter solana is an open-source agent skill for security. Guides manual security review of Solana Rust programs for account-model bugs. 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/vulnhunter-solana
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** vulnhunter-solana
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

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.

## 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/vulnhunter-solana)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/vulnhunter-solana)

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/vulnhunter-solana` 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/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.

### Codex

Copy the skill folder to `~/.agents/skills/vulnhunter-solana` 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/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.

### Cursor

Copy the skill folder to `~/.cursor/skills/vulnhunter-solana` 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/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.

### 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/vulnhunter-solana
```

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

### VS Code

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

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

### 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/vulnhunter-solana` into your agent's skills folder as `vulnhunter-solana`. Agents that support SKILL.md read one folder per skill.

## 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.

## Alternatives

- [Solana audit flow](https://ai-powered.com/skills/solana-audit-flow): Solana audit flow is an open-source agent skill for security.
- [Solana vulnerability scanner](https://ai-powered.com/skills/solana-vulnerability-scanner): Solana vulnerability scanner 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.
- [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.
- [Rust review](https://ai-powered.com/skills/rust-review): Rust review is an open-source agent skill for security.
- [Durable nonce exploitation](https://ai-powered.com/skills/durable-nonce-exploitation): Durable nonce exploitation 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/vulnhunter-solana
