solana-vulnerability-scanner

Scan Solana and Anchor programs for six critical security vulnerabilities.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/keremtoker468-dotcom/restoran --skill solana-vulnerability-scanner-keremtoker468-dotcom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-vulnerability-scanner
Source: https://github.com/keremtoker468-dotcom/restoran/tree/main/.claude/skills/solana-vulnerability-scanner
Command: npx skills add https://github.com/keremtoker468-dotcom/restoran --skill solana-vulnerability-scanner-keremtoker468-dotcom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill identifies critical security vulnerabilities in Solana and Anchor programs, helping developers prevent exploits and secure their decentralized applications.

Core Features & Use Cases

  • Vulnerability Detection: Scans for 6 specific, high-impact Solana security flaws (Arbitrary CPI, Improper PDA Validation, Missing Signer/Ownership Checks, Sysvar Spoofing, Instruction Introspection).
  • Code Auditing: Assists in pre-launch security reviews and ongoing code audits.
  • Use Case: Before deploying a new Solana DeFi protocol, use this Skill to automatically scan the smart contract code for common pitfalls like arbitrary cross-program invocations or insecure PDA handling.

Quick Start

Use the solana-vulnerability-scanner skill to audit the provided Solana program code.

Frequently Asked Questions about solana-vulnerability-scanner

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

FAQPage Schema
What common security vulnerabilities should I scan for in Solana Anchor programs?

Solana smart contract audits should scan for six critical vulnerabilities: arbitrary CPI, improper PDA validation, missing signer and ownership checks, sysvar spoofing, and instruction introspection flaws to prevent protocol exploits.

How do I audit Solana smart contracts for missing signer and ownership checks?

You audit Solana smart contracts by analyzing the Rust code to identify missing signer and ownership checks, then reviewing the generated report for actionable mitigation advice to secure your decentralized application.

Does Solana vulnerability scanning work with Anchor framework programs?

Yes, Solana vulnerability scanning works directly with Anchor programs. It analyzes Rust code to detect platform-specific security flaws like insecure PDA handling and arbitrary cross-program invocations within the Anchor framework.

Can I use automated scanning to find arbitrary CPI and sysvar spoofing in Solana code?

Yes, you can use automated scanning to find arbitrary CPI and sysvar spoofing in Solana code. The scanner identifies these specific execution environment flaws and provides actionable mitigation advice.

What are the limitations of automated Solana code auditing tools?

Automated Solana code auditing tools are limited to detecting six predefined vulnerability patterns. They require a deep understanding of Solana's account model and execution environment to correctly interpret results and implement mitigations.