Skills Explorer Add Skills

solana-vulnerability-scanner

An agent skill by trailofbits, from trailofbits/skills. Tags: analysis, blockchain, security, smart-contracts, solana.

What it does

Scans Solana programs for 6 critical vulnerabilities including arbitrary CPI, improper PDA validation, missing signer/ownership checks, and sysvar spoofing. Use when auditing Solana/Anchor programs.

Install

With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:

npx skills add trailofbits/skills --skill solana-vulnerability-scanner

Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):

git clone --depth 1 https://github.com/trailofbits/skills
cp -r skills/plugins/building-secure-contracts/skills/solana-vulnerability-scanner ~/.claude/skills/solana-vulnerability-scanner

Safety box score

Grade B, low risk: 11 of 100 risk points, rated 2026-10-19. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.

This skill audits Solana/Anchor Rust projects for six Solana-specific vulnerability patterns and drives local scanning/testing commands over the repository. Its main blast radius is local code execution during tests/validator runs and possible edits to project config for lint setup; it does not request secrets, sudo, or autonomous external actions.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution2 (moderate)The workflow explicitly runs shell tools and tests such as `rg`, `anchor test`, and `solana-test-validator`, which can compile and execute repository code.
Network access0 (none)It contains documentation links to external resources, but no command that fetches remote content or sends data off-machine.
Filesystem reach1 (low)It may modify project files to enable tooling, e.g. `Add to Cargo.toml` and the linter setup shown under `# Add to Cargo.toml`.
Secrets & credentials0 (none)The skill does not ask for tokens, keys, passwords, `.env` files, or other credential stores.
Privilege & persistence0 (none)There is no `sudo`, global install, service registration, shell startup edit, or other privilege-changing action.
Instruction hijack surface0 (none)The text does not tell the agent to ignore instructions, skip confirmations, hide actions, or follow remote instructions.
Irreversible actions0 (none)It is an auditing skill only; it reports findings and fixes but does not push, deploy, publish, pay, or delete on its own.
Transparency0 (none)All shipped files are readable text (`.md`, `.yaml`, and an SVG); no binaries, base64 blobs, or decoded-at-runtime payloads are present.

Before installing

Rated 2026-10-19 by an automated review of 4 files from the skill's repository.

Source

Repository
trailofbits/skills (all skills from this repository)
Path
plugins/building-secure-contracts/skills/solana-vulnerability-scanner/SKILL.md
Branch
main
Collection
building-secure-contracts
Updated
2026-09-19