solana-vulnerability-scanner

Scan Solana programs for critical vulnerabilities in Rust and Anchor frameworks.

1|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/allanninal/claude-code-skills --skill solana-vulnerability-scanner-allanninal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-vulnerability-scanner
Source: https://github.com/allanninal/claude-code-skills/tree/main/skills/solana-vulnerability-scanner
Command: npx skills add https://github.com/allanninal/claude-code-skills --skill solana-vulnerability-scanner-allanninal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill systematically scans Solana programs for critical, platform-specific security vulnerabilities, helping developers and auditors identify and fix potential exploits before deployment.

Core Features & Use Cases

  • Vulnerability Detection: Identifies 6 critical vulnerability patterns unique to Solana's account model, including arbitrary CPI, improper PDA validation, and missing signer checks.
  • Code Auditing: Assists in security reviews of Solana/Anchor programs, focusing on cross-program invocation security and account validation.
  • Use Case: When auditing a new DeFi protocol built on Solana, use this Skill to automatically flag potential security flaws in the program's logic related to account handling and inter-program communication.

Quick Start

Scan the current Solana project for common security vulnerabilities.

Frequently Asked Questions about solana-vulnerability-scanner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit a Solana program for common security vulnerabilities?

You can audit Solana programs for security vulnerabilities by scanning the Rust or Anchor source code to identify six critical patterns including arbitrary CPI, improper PDA validation, missing signer checks, and sysvar spoofing. The scan yields detailed findings and recommended fixes for each detected flaw.

What are the most critical vulnerabilities in Solana smart contracts?

Critical vulnerabilities in Solana smart contracts include arbitrary cross-program invocation, improper PDA validation, missing signer and ownership checks, and sysvar spoofing. These platform-specific flaws exploit Solana's unique account model and inter-program communication mechanisms.

Can I use an automated vulnerability scanner on Anchor framework programs?

Yes, automated vulnerability scanners can analyze Anchor framework programs by evaluating Rust file indicators and project structure markers. This allows the scanner to verify account validation and cross-program invocation security specific to the Anchor framework.

How do I check for missing signer and ownership checks in Solana Rust code?

To check for missing signer and ownership validation in Solana Rust code, scan the program logic for account verification patterns. The scanner flags instances where these critical checks are absent and provides specific fixes to secure the account handling.

Does Solana vulnerability scanning cover cross-program invocation security?

Yes, Solana vulnerability scanning specifically covers cross-program invocation security by detecting arbitrary CPI patterns. It analyzes how programs interact and validates that CPI calls are properly restricted, preventing unauthorized inter-program communication exploits.