solana-vulnerability-scanner

Scan Solana programs for six vulnerability patterns and generate remediation reports.

Updated Jan 17, 2026
One-click install
npx skills add https://github.com/mejango/juicy-vision --skill solana-vulnerability-scanner-mejango
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-vulnerability-scanner
Source: https://github.com/mejango/juicy-vision/tree/main/.claude/plugins/building-secure-contracts/skills/not-so-smart-contracts-scanners/solana-vulnerability-scanner
Command: npx skills add https://github.com/mejango/juicy-vision --skill solana-vulnerability-scanner-mejango

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps security engineers and auditors automatically identify critical vulnerabilities in Solana programs, including cross-program invocations, program-derived address handling, and account validation flaws.

Core Features & Use Cases

  • 6-pattern vulnerability detection: Checks for Arbitrary CPI, Improper PDA validation, Missing ownership check, Missing signer check, Sysvar spoofing, and Improper instruction introspection.
  • Automated scanning workflow: Locates Solana native or Anchor programs, analyzes code, and reports findings with file references and severity.
  • Mitigations & guidance: Provides recommended fixes and testing strategies to harden Solana programs.

Quick Start

Use this skill to scan a Solana project (native Rust or Anchor) under a codebase (e.g., programs/). It will surface security flaws, assign severities, and propose remediation steps.

Frequently Asked Questions about solana-vulnerability-scanner

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

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

Scanning Solana programs for security vulnerabilities involves analyzing native Rust or Anchor code to identify weaknesses like arbitrary CPI and improper PDA validation. The scanner automatically locates the program code and reports findings with file references and severity.

What security vulnerabilities should I check for in Anchor programs?

Security vulnerabilities to check for in Anchor programs include arbitrary CPI, improper PDA validation, missing ownership checks, missing signer checks, sysvar spoofing, and improper instruction introspection. These six patterns cover critical account validation and interaction flaws.

Can I audit native Rust Solana programs or does it only support Anchor?

You can audit both native Rust and Anchor Solana programs. The scanner analyzes on-chain program code and interaction patterns across both frameworks to surface security flaws and assign severity levels.

How does PDA validation work in Solana security audits?

PDA validation in Solana security audits checks that program-derived addresses are verified correctly to prevent unauthorized access. The scanner identifies improper PDA validation patterns and provides recommended fixes and testing strategies to harden the program.

What is the best way to detect missing signer checks in Solana code?

Detecting missing signer checks is best handled by automated scanning that analyzes instruction logic and account validation flows. The scanner flags instances where signer verification is absent and provides remediation guidance to fix the vulnerability.

Does the Solana vulnerability scanner provide remediation steps for found issues?

The Solana vulnerability scanner provides recommended fixes and testing strategies for identified issues. Findings include structured vulnerability reports with file references, severity assignments, and actionable mitigations to harden Solana programs.