solana-vulnerability-scanner

Scan Solana and Anchor programs for common security vulnerabilities.

1|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/collat-labs/collat --skill solana-vulnerability-scanner-collat-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-vulnerability-scanner
Source: https://github.com/collat-labs/collat/tree/main/.claude/skills/solana-vulnerability-scanner%20copy
Command: npx skills add https://github.com/collat-labs/collat --skill solana-vulnerability-scanner-collat-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Solana program audits are hard because subtle account-validation, CPI, PDA, sysvar, and instruction-introspection mistakes can create high-impact vulnerabilities.

Core Features & Use Cases

  • Solana/Anchor vulnerability pattern scanning: Detects 6 critical Solana-specific issues such as arbitrary CPI, missing signer checks, and sysvar spoofing.
  • Codebase-guided analysis with actionable findings: Produces findings tied to file locations with severity and remediation guidance.
  • Audit-focused workflow: Helps you systematically review CPI calls, PDA usage, ownership checks, sysvar usage, and instruction introspection.

Quick Start

Use this skill to scan your Solana or Anchor program repository for the 6 listed vulnerability patterns and produce a prioritized report with suggested fixes.

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 my Solana Anchor program for PDA validation and CPI vulnerabilities?

The scanner detects missing signer checks and sysvar spoofing by running pattern-specific checks across instruction handling and account deserialization. It applies to pre-launch audits and reports findings with severity and fix recommendations for each detected issue.

Does this Solana vulnerability scanner work with native Rust programs or only Anchor?

The scanner identifies six critical Solana-specific vulnerability patterns including arbitrary CPI, missing signer checks, sysvar spoofing, and account ownership issues. It systematically checks instruction handling and account deserialization logic to surface these high-impact security flaws.

What is the best way to audit cross-program invocation logic in Solana before launch?

The best way to audit cross-program invocation logic is using a systematic scanner that reviews CPI calls, PDA usage, and ownership checks. This approach produces actionable findings with fix recommendations to resolve issues before your program launches.

Can I use this scanner to verify account ownership and sysvar handling in my Solana code?

Yes, you can use the scanner to verify account ownership and sysvar handling. It performs pattern-specific checks across your Solana program sources to detect spoofing and ownership vulnerabilities, reporting each issue with recommended fixes.