solana-vulnerability-scanner

Scan Solana and Anchor programs for six critical security vulnerabilities.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/monmacllcapp/skill-forks --skill solana-vulnerability-scanner-monmacllcapp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-vulnerability-scanner
Source: https://github.com/monmacllcapp/skill-forks/tree/main/skills/security/plugins/building-secure-contracts/skills/solana-vulnerability-scanner
Command: npx skills add https://github.com/monmacllcapp/skill-forks --skill solana-vulnerability-scanner-monmacllcapp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies and helps fix critical security vulnerabilities in Solana and Anchor programs, preventing potential exploits and financial loss.

Core Features & Use Cases

  • Vulnerability Detection: Scans for 6 critical vulnerability patterns specific to Solana's account model.
  • Code Analysis: Analyzes Rust code for issues like arbitrary CPI, improper PDA validation, and missing checks.
  • Use Case: Before deploying a new DeFi protocol on Solana, use this Skill to audit your smart contracts for common security flaws, ensuring a more robust and secure launch.

Quick Start

Use the solana-vulnerability-scanner skill to audit the provided Solana program code 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 smart contracts for security vulnerabilities?

To audit Solana smart contracts, you scan the Rust codebase for critical vulnerabilities like arbitrary CPI and improper PDA validation. This process identifies common security flaws within the account model to prevent potential exploits and financial loss.

What critical vulnerabilities should I check for in Anchor programs?

When checking Anchor programs, scan for six critical vulnerabilities: arbitrary CPI, improper PDA validation, missing signer checks, missing ownership checks, and sysvar spoofing. Analyzing these patterns ensures robust account validation and CPI security.

Can I use a vulnerability scanner to audit a DeFi protocol before deployment?

Yes, you can use a vulnerability scanner to audit a DeFi protocol before deployment. Scanning your Solana smart contracts helps identify and fix critical security flaws, ensuring a more robust and secure launch.

How does an Anchor program scanner detect missing signer and ownership checks?

An Anchor program scanner detects missing signer and ownership checks by analyzing the Rust code structure to verify that proper constraints are enforced. It flags instances where these checks are absent, providing detailed findings and necessary fixes.

What is the best way to check Solana account validation and CPI security?

The best way to check Solana account validation and CPI security is to scan the program code for specific vulnerability patterns. This approach directly analyzes Rust code for improper PDA validation and arbitrary CPI, providing detailed findings and fixes.