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.

commandsquick-scan.md

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

solana-program-audit — Quick Scan

Arguments: $ARGUMENTS

Run the quick audit exactly as QUICK-AUDIT.md (read from <skill-root>, the directory containing this skill's SKILL.md, never the audited repo) describes. That file is the single contract for this playbook and for SKILL.md's quick audit. In brief:

  1. Discover the target and stop with the target-absent / no-in-scope-code short form when there is nothing to audit (QUICK-AUDIT §1 step 0, §6). Write a one-line scope statement (Rule 0 discovery only; no Scope Coverage table).
  2. Static analysis is optional. If the Trail of Bits skills (https://github.com/trailofbits/skills, CC-BY-SA-4.0) are installed separately, you may delegate SAST to their static-analysis over the in-scope program crates. Otherwise the native grep checks in discovery/grep-commands.md (also from <skill-root>) are optional on small targets and used to order the reading on large ones (QUICK-AUDIT §1). Any analyzer that builds the target runs in the execution mode recorded at intake (OUTPUT-RULES.md Rule 11a).
  3. Evaluate only the INDEX rows of severity ≥ 7 whose trigger fires (QUICK-AUDIT §1 step 5), not the full set.
  4. Report findings in the SKILL.md quick format: severity, path:line, and the Validation field for severity ≥ 6. State clearly this is a triage pass, not a complete audit, and point to the audit playbook (commands/audit.md) for full coverage.
  5. As a CI gate on a public repository (OUTPUT-RULES.md Rule 11d): post pass/fail only — no finding counts, total or per severity — in PR comments, check annotations, the job log and uploaded artifacts alike, since anyone signed in to GitHub can read all of them. Send finding details through a private channel (private vulnerability reporting, a draft security advisory, or a private repository). If that channel is unavailable, fail the job; never fall back to printing findings in the log.

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