solana-program-review

Review Solana Rust programs for security defects in signer checks and funds handling.

6|1|Updated May 13, 2026
One-click install
npx skills add https://github.com/Xipher-Labs/walter-os --skill solana-program-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-program-review
Source: https://github.com/Xipher-Labs/walter-os/tree/main/skills/solana-program-review
Command: npx skills add https://github.com/Xipher-Labs/walter-os --skill solana-program-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Preventing exploitable vulnerabilities in Solana on-chain programs by enforcing the correct security checks and threat-model assumptions before code ships.

Core Features & Use Cases

  • Review signer and owner authorization: verify signer requirements, enforce program ownership for account data, and prevent unauthorized reads/writes.
  • Validate Anchor account safety: catch discriminator/type confusion, account constraint omissions, and dangerous init/realloc patterns.
  • Harden Solana-specific logic: check arithmetic for overflow/underflow, PDA seed derivation correctness, CPI reentrancy surfaces, compute-budget DoS risks, and funds-handling invariants.

Quick Start

Use this skill to review a pull request that changes any files under programs/ and fixes all issues blocking signer checks, owner checks, PDA seed safety, and funds-handling constraints.

Frequently Asked Questions about solana-program-review

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

FAQPage Schema
How do I review a Solana smart contract for security vulnerabilities?

Reviewing a Solana smart contract for security requires checking Rust entrypoints and Anchor structs to enforce signer checks, validate program ownership, and ensure safe PDA seed derivation. This prevents unauthorized account access and fund drainage.

What security checks are needed for Solana Anchor account deserialization?

Anchor account deserialization requires verifying discriminator safety and type constraints to prevent type confusion. You must enforce account constraint correctness and validate init or realloc patterns to block unauthorized account data manipulation.

Does this Solana program review check for CPI reentrancy and compute-budget DoS risks?

Yes, Solana program review verifies CPI reentrancy surfaces and compute-budget DoS bounds. It evaluates arithmetic overflow risks, PDA seed derivation correctness, and funds-handling invariants to prevent runtime exploitation and resource exhaustion.

How do I secure PDA seed derivation in Solana programs?

Securing PDA seed derivation in Solana programs requires enforcing strict seed constraints and verifying authority boundaries in Rust code. Correct PDA derivation prevents unauthorized writes and protects program-controlled funds from being drained.

When do I need a security audit for Solana programs?

A Solana program security audit is needed when pull requests touch Rust entrypoints, Anchor structs, or code handling funds and authority boundaries. Enforcing threat-model assumptions before shipping prevents exploitable vulnerabilities in on-chain accounts.