SP

    Solana Program Audit

    by agungvg

    1

    Audit a Solana program (Anchor or native Rust) like a bug-bounty hunter: map every instruction, scan 12 bug classes, hand-trace the 6 a scanner can't see, prove each lead with a LiteSVM PoC, and write it up to a severity rubric — a proven finding or an honest "nothing submittable", never maybe-bugs.

    $6.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    SP

    Solana Program Audit

    Example session with this skill installed

    Run a full audit on the provided Anchor vault program in ./programs/vault. Map the instructions, run the scanner, and check for SOL-02 and SOL-13 specifically.

    • Read your context and instructions
    • Compiled the solana program audit

    I have completed the audit of the Anchor vault program. The scanner identified 3 candidates, and manual tracing revealed one high-severity logic error regarding uncapped deposits.

    Audit Results

    IDClassSeverityStatusEvidence
    SOL-02Missing Signer CheckCriticalCLEAREDSigner is verified by Anchor's Signer<'info> type in Withdraw accounts struct.
    SOL-13Ignored CapsHighPROVENdeposit_limit parameter is declared but never read in process_deposit.
    SOL-08ArithmeticHighCANDIDATEPotential zero-division in calculate_shares when pool is empty.

    Finding: STE — deposit instruction ignores limit cap, allows unlimited vault exposure

    // Proof of Concept: LiteSVM Harness
    use litesvm::LiteSVM;
    use solana_program::pubkey::Pubkey;
    
    #[test]
    fn test_ignored_deposit_cap() {
        let mut svm = LiteSVM::new();
        // ... setup vault with 100,000 limit ...
        
        let attacker = Keypair::new();
        let deposit_amount = 500_000; 
        
        // Call deposit with 500k despite 100k cap
        let tx = build_deposit_tx(&attacker, deposit_amount);
        svm.send_transaction(tx).unwrap();
        
        let vault_balance = svm.get_balance(&vault_pda);
        assert!(vault_balance > 100_000);
        println!("Actual deposit: {}, Cap: 100,000", vault_balance);
    }
    

    Next steps

    1. Implement a require! check in process_deposit to compare amount against vault.deposit_limit.
    2. Investigate the SOL-08 candidate by attempting to initialize a pool with 0 liquidity in LiteSVM.
    3. Review templates/finding-template.md to format the STE report for submission.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Audit a Solana program (Anchor or native Rust) like a bug-bounty hunter, not a linter: map the instructions, run a dependency-free scanner for 12 grep-able bug classes, hand-trace the 6 classes no scanner can see, prove each lead with a LiteSVM PoC, and write it up to a severity rubric.

    Requires Rust/LiteSVM for PoC steps. Scans only 12 of 18 bug classes; 6 require manual tracing. No support for closed-source programs without an IDL.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 13 days ago

    Permissions

    Terminal / Shell
    Listed13 days ago
    Updated12 days ago

    What's inside

    Frequently Asked Questions

    Unlike generic AI prompts that often hallucinate EVM-style bugs, this skill enforces a 'no-PoC-no-finding' rule by verifying every vulnerability in a LiteSVM harness to ensure they are actionable and triage-ready.

    The skill is optimized for Anchor and native Rust Solana programs; it requires the source code or a public IDL and is compatible with environments running Node 18 and a Rust toolchain.

    You will receive the full automated scanning suite, the 6-gate manual tracing protocols, the LiteSVM verification templates, and the standardized reporting format for bounty-ready submissions.

    This skill identifies 18 distinct bug classes, including missing signer checks, arbitrary CPIs, and complex logic errors like accounting desyncs or reentrancy.

    While it provides deep technical verification of program logic, it does not perform tokenomics modeling, rug-pull analysis, or audits of closed-source bytecode.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.