solana-vulnerability-scanner

Scan Solana Rust programs for six critical security vulnerabilities.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/andrescardonas7/salchipapa-web --skill solana-vulnerability-scanner-andrescardonas7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-vulnerability-scanner
Source: https://github.com/andrescardonas7/salchipapa-web/tree/main/.cursor/skills/solana-vulnerability-scanner
Command: npx skills add https://github.com/andrescardonas7/salchipapa-web --skill solana-vulnerability-scanner-andrescardonas7

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the detection of 6 critical security vulnerabilities specific to Solana programs, helping developers and auditors ensure the safety of their smart contracts.

Core Features & Use Cases

  • Vulnerability Detection: Identifies arbitrary CPI, improper PDA validation, missing signer/ownership checks, and sysvar spoofing.
  • Code Auditing: Streamlines the security review process for Solana and Anchor programs.
  • Use Case: When auditing a new Solana DeFi protocol, use this Skill to quickly scan the core smart contracts for common and critical security flaws before deployment.

Quick Start

Scan the current Solana project for 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 Solana programs for security vulnerabilities?

To audit Solana programs for security vulnerabilities, you can scan Rust and Anchor framework code to identify six critical flaws including arbitrary cross-program invocations and improper PDA validation. The scan provides detailed findings, code references, and severity levels.

What are common security vulnerabilities in Solana smart contracts?

Common security vulnerabilities in Solana smart contracts include arbitrary cross-program invocations, improper program-derived address validation, missing signer checks, missing ownership checks, and sysvar spoofing. Detecting these issues early prevents critical exploits in DeFi protocols.

Can I scan Anchor framework programs for missing signer and ownership checks?

Yes, you can scan Anchor framework programs for missing signer and ownership checks. The scanner analyzes Rust-based Solana programs to detect these specific account validation flaws and provides recommended fixes to enhance program security.

Does this Solana vulnerability scanner detect sysvar spoofing and arbitrary CPI?

Yes, this Solana vulnerability scanner detects sysvar spoofing and arbitrary cross-program invocations. It scans the smart contract code to identify these critical security flaws, outputting detailed findings with code references and severity levels.

What is the best way to check Solana programs for cross-program invocation flaws?

The best way to check Solana programs for cross-program invocation flaws is to automate an audit scan of the Rust code. This process identifies arbitrary CPIs, validates program-derived addresses, and outputs recommended fixes to secure the protocol before deployment.