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.

templatesrelease-gate.md

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

Release Gate — {program / release}

Status labels (exactly these), [verbatim, MIT, (c) 2026 Berektassuly — beriktassuly/solana-audit-skill skill/references/workflows/release-gate-workflow.md]:

Use exactly these status labels:

  1. PASS: direct evidence supports the check.
  2. FAIL: the check exposes a release-blocking gap or unresolved high-risk assumption.
  3. SKIP: the check is not applicable to this release, or the user explicitly scoped it out.

Do not use SKIP for missing evidence when the release depends on that evidence. If a mainnet release needs the check and no proof is available, mark it FAIL and name the evidence required to clear it.

GATE: FAIL target=<program-or-release> blockers=2 warnings=1 skipped=1
CHECK: authority status=FAIL severity=High evidence="<what was reviewed>" action="<required fix or proof>"
CHECK: build status=PASS severity=Info evidence="<artifact or command result>" action="none"
CHECK: compute status=SKIP severity=Info evidence="<why not applicable>" action="none"

Every FAIL must map to a finding, remediation task, or explicit release blocker. Every PASS must name the artifact, command output, simulation, test, or review evidence that supports it.

Checks

  1. Authority custody. The upgrade authority is immutable or a documented multisig/governance key. FAIL if the deploy key is also the upgrade authority, if a claimed timelock is unproven, or if emergency powers go beyond the stated trust model. Include the IDL / Program Metadata authority (OPS-088) and every durable-nonce authority used for pre-signed privileged transactions (OPS-091).
  2. Build provenance. Tie together the reviewed source, the local build, the deployed bytes and the release artifact: a verifiable build (solana-verify hash match) or a diff of the dumped program. Record the cargo features the build used (OPS-089). Building runs target code (Rule 11f).
  3. Compute and liveness headroom. Measured CU with headroom on every value-moving, admin, migration, close, claim and emergency path. No exit path loops over an account set whose size an attacker controls.
  4. Account size, rent, realloc. Program, buffer and migration rent is funded. Sizes stay within the runtime limits: an account can grow by at most 10,240 bytes per instruction (MAX_PERMITTED_DATA_INCREASE), so an account created through a CPI is capped at 10,240 bytes; 10 MiB is the maximum account size; total account-data growth is capped at 20 MiB per transaction. Grow, shrink and zeroing paths are tested.
  5. Upgrade and migration lifecycle. checklists/07 §7.14 (OPS-098..OPS-103) and references/methodologies/upgrades-and-migrations.md.
  6. Release controls. Record the exact commands, signers, approvals, artifacts and monitoring for deploy, pause, code rollback and remediation verification. Nothing may depend on someone remembering it.
  7. Deploy / upgrade transaction landing. Applies to buffer writes, the deploy or upgrade transaction, migration batches and admin transactions. Distinguish forwarded from landed, and set an explicit finality target. On blockhash expiry (lastValidBlockHeight), stop, rebuild and re-sign instead of resending forever. Keep the simulation logs of failed transactions. Close leftover buffers from failed deploys, and record who holds their authority.

Avoid: treating a missing artifact as a PASS; calling authority risk "informational" when it contradicts the trust model; "the migration is safe because tests pass on fresh accounts"; treating code rollback as data rollback.

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