Solana Program Audit
by agungvg
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
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
| ID | Class | Severity | Status | Evidence |
|---|---|---|---|---|
| SOL-02 | Missing Signer Check | Critical | CLEARED | Signer is verified by Anchor's Signer<'info> type in Withdraw accounts struct. |
| SOL-13 | Ignored Caps | High | PROVEN | deposit_limit parameter is declared but never read in process_deposit. |
| SOL-08 | Arithmetic | High | CANDIDATE | Potential 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
- Implement a
require!check inprocess_depositto compareamountagainstvault.deposit_limit. - Investigate the SOL-08 candidate by attempting to initialize a pool with 0 liquidity in LiteSVM.
- Review
templates/finding-template.mdto 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.