Index of every page on this site: llms.txt
All skills
princedotrs avatar

/solana-program-audit

@586e19e
Run it yourself

Security audit of Solana on-chain programs in Rust: Anchor, native solana-program and Pinocchio. Use to audit or review a Solana program, PR or fix and to find vulnerabilities: missing signer or owner checks, account validation, type cosplay, reinitialization, init front-running, closed-account revival, duplicate accounts, PDA seeds and bumps, arbitrary CPI, CPI return data, remaining_accounts, sysvar and instruction introspection, overflow, rounding, Token-2022 extensions and transfer hooks, oracle, flash-loan and MEV attacks, upgrade authority and governance. Covers DeFi reviews (AMM, lending, perps, staking, bridges, launchpads), PoC exploits, fix patches, re-audits, spec compliance, audit readiness, release gates and audit reports. Trigger on code using anchor_lang, solana_program, pinocchio, #[program], #[derive(Accounts)] or entrypoint!. Not for writing features, off-chain clients or backends, EVM/Solidity, or incident response.

  • 237 files
  • 2 MB
  • Updated 4 weeks ago
  • GitHub
Use this Skill: https://skilld.dev/gh/princedotrs/solana-audit/solana-program-audit

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesreport-language.md

≈428 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Report language (Simplified Technical English subset)

Applies to finding titles, descriptions and summaries — and to hunter output, so the first sentence written is report-ready.

Rules. Description: one sentence, ≤ 25 words. Title: ≤ 12 words, one clause, present tense. Active voice, actor first, simple present ("could potentially" banned). No -ing clauses; keep articles; at most three nouns in a row. One word per concept; no metaphor, idiom or slang. Say what happens, not how bad it is (no "catastrophic"/"critical" in prose). Positive statements, cause before effect.

Replace: "bricks" → "makes the instruction fail for every caller, forever"; "rug" → "the authority takes the user deposits"; "griefing" → "an attacker makes the instruction fail for other users"; "DoS" → "blocks every caller"; "arbitrary" → "any value the caller chooses"; "stale price" → "old price"; "atomically" → "in one transaction"; "edge case" → name the input.

Never rewrite: identifiers (transfer_checked, ctx.accounts.vault), diffs in fix blocks, bug-class labels (memory keys), fixed template strings.

Example. Before: "Missing owner check enables a malicious actor to leverage a spoofed config account, potentially draining the vault." After: "The instruction does not check the owner of config, so any caller can pass a fake config and withdraw all tokens from the vault."

Self-check. Does the sentence name who acts and what they get? One sentence, ≤ 25 words, no -ing clause? Identifiers, label and diff exactly as written?

Sources: pashov/skills solidity-auditor/references/report-language.md (MIT, Copyright (c) 2024 AI Skills Contributors), adapted.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 586e19e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 4 weeks ago

README badge

README badge for princedotrs/solana-audit