solana-security

Audit Solana programs for security vulnerabilities and generate structured reports.

32|2|Updated Nov 5, 2025
One-click install
npx skills add https://github.com/tenequm/claude-plugins --skill solana-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-security
Source: https://github.com/tenequm/claude-plugins/tree/main/solana/skills/solana-security
Command: npx skills add https://github.com/tenequm/claude-plugins --skill solana-security

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

A rigorous framework for reviewing Solana programs (Anchor or native Rust) for security vulnerabilities and coverage of best practices.

Core Features & Use Cases

  • Stepwise security review, vulnerability checklists, architecture critique
  • Guidance on PDA/PDAs, CPI, and oracle data patterns
  • Reference materials for secure coding practices

Quick Start

Start with the security checklists to structure a thorough review

Frequently Asked Questions about solana-security

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

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

Audit Solana programs by systematically reviewing instruction validation, account ownership checks, PDA derivation logic, cross-program invocations, and oracle data feeds. Use a structured five-step security review process with vulnerability checklists to identify exploitable weaknesses in Anchor or native Rust implementations and generate severity-rated reports with remediation guidance.

What security issues should I check for in Solana PDA and CPI patterns?

PDA derivation must use consistent seeds and bump constraints; CPIs require proper account ownership verification and instruction data validation. Review that PDAs cannot be spoofed, CPI signers are authorized, and no unexpected account modifications occur across program boundaries.

Can I use this framework to audit DeFi, NFT, and governance programs?

Yes, the security review framework applies to DeFi, NFT, governance, and other on-chain programs. The vulnerability pattern detection and architecture evaluation process works across Anchor and native Rust implementations regardless of program type.

What does a structured security report include?

Security reports include identified vulnerabilities with severity ratings, detailed remediation guidance for each issue, architecture and testing evaluation results, and recommendations for secure coding practices specific to your program's design and instruction patterns.

Do I need Anchor framework knowledge to use these security checklists?

The framework covers both Anchor and native Rust Solana programs. While Anchor-specific guidance addresses framework conventions, the core security principles—instruction validation, account ownership, PDA safety, and CPI correctness—apply universally across both approaches.