vulnhunter-solana

vulnhunter-solana is a skill for Claude Code, Codex from mtarcure/claude-vibe-squad. It costs 68 tokens per session (1,886 once invoked), scanned A, original, MIT.

A manual security review guide for Solana programs, which are blockchain applications written in Rust. It checks account and arithmetic patterns that can let attackers alter ownership, authority, or balances.

In plain words
What is it for?
It is for auditing account owner checks, signer checks, account discriminators, program-derived addresses, token arithmetic, account revival, and duplicate-account handling.
Why use it?
It provides a Solana-specific review method where general static-analysis tools do not provide the needed detectors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit It is for auditing account owner checks, signer checks, account discriminators, program-derived addresses, token arithmetic, account revival, and duplicate-account handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mtarcure/claude-vibe-squad/vulnhunter-solana
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mtarcure/claude-vibe-squad --skill vulnhunter-solana
Clone the repo
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vulnhunter-solana

README.md
[![agentmods](https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/vulnhunter-solana/github.svg)](https://agentmods.dev/skills/mtarcure/claude-vibe-squad/vulnhunter-solana)
Your own site
<a href="https://agentmods.dev/skills/mtarcure/claude-vibe-squad/vulnhunter-solana"><img src="https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/vulnhunter-solana/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vulnhunter-solana

Your own site · 80×15
<a href="https://agentmods.dev/skills/mtarcure/claude-vibe-squad/vulnhunter-solana"><img src="https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/vulnhunter-solana.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,886 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.01886
Opus 5.5 $0.00027 $0.00754
Sonnet 5.5 $0.00014 $0.00377
Haiku 4.5 $0.00007 $0.00189

Measured 27d ago against content hash 4125e30d1981, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vulnhunter-solana scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/vulnhunter-solana/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

vulnhunter-solana

Manual vulnerability pattern review for Solana Rust programs. Use this during solana-audit-flow. There is no Solana static-analysis step — Slither has zero Solana detectors (slither --list-detectors → 104, none for Solana), so any "slither Solana scan" is a fabricated capability. Manual pattern matching is the primary coverage on Solana; the automated Solana tooling is dynamic (anchor build warnings, litesvm/trident fuzzing), not static taint analysis.

High-priority vuln patterns

1. Missing owner / program-id check (CRITICAL) Every account deserialized from instruction accounts must have its owner validated against the expected program ID. Pattern: if account.owner != &expected_program_id { return Err(...) }. Anchor's #[account] constraint handles this — but bare AccountInfo usage does not. Grep for AccountInfo without adjacent owner check.

2. Missing signer check (HIGH) Privileged instructions must require is_signer on the authority account. Pattern: if !authority.is_signer { return Err(ErrorCode::Unauthorized.into()) }. Anchor's Signer<'info> type enforces this — but AccountInfo with manual check can omit it. Grep for privileged state mutations without is_signer guard.

3. Account discriminator bypass (HIGH) Anchor programs use 8-byte discriminators at the start of account data to prevent type confusion. An attacker can pass a different account type that happens to deserialize without error if the discriminator is not validated. Verify try_deserialize is used (not try_deserialize_unchecked) for sensitive account types. Also check: can two different account types be interchanged via a crafted buffer?

4. CPI signer / privilege escalation (CRITICAL) When making CPIs that require signing, the invoke_signed call must pass the correct signer_seeds. A bug where the caller-controlled account address matches a PDA derivation can allow privilege escalation. Pattern: verify invoke_signed uses program-controlled seeds, not caller-provided seeds, for authority PDAs.

Read the full file on GitHub · 95 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 27d ago First seen · 95 lines · 68 tokens per session scan A 4125e30d1981

Subscribe to this mod's changes

vulnhunter-solana is a skill published in the GitHub repository mtarcure/claude-vibe-squad (165 stars, last pushed 25d ago), licensed MIT. It adds 68 tokens to every session and 1,886 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-19.