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.

known-vectors019-freeze-authority-griefing.md

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

19 — Freeze Authority Griefing

Severity: 6 | Real: SPL Token freeze attacks on Solana DeFi

Token issuer uses freeze authority to freeze the fund's token account — locking assets permanently.

Verification Procedure

Step 1: Check which tokens the protocol handles

grep -rn --include="*.rs" -iE "mint|token" programs/*/src/state/ | grep -v test
  • Record: All mints/tokens the protocol interacts with

Step 2: Check if freeze authority is validated on accepted tokens

grep -rn --include="*.rs" "freeze_authority\|FreezeAccount" programs/
  • ✅ PASS: Protocol validates that accepted tokens have freeze authority = None (or acceptably governed)
  • ⚠️ PARTIAL: Protocol handles only well-known tokens (SOL, USDC) where freeze is acceptable risk
  • ❌ FAIL: Accepts any token without checking freeze authority — fund could be permanently locked

Step 3: Check for emergency withdrawal path if frozen

grep -rn --include="*.rs" -iE "emergency\|rescue\|recover\|frozen" programs/
  • ✅ PASS: Emergency mechanism exists to handle frozen accounts (e.g., skip frozen position in NAV)
  • ❌ FAIL: Frozen token account blocks all operations with no recovery path

Overall verdict:

  • ✅: Freeze authority checked or only well-known tokens with emergency recovery
  • ⚠️: Well-known tokens only, no explicit freeze check
  • ❌: Arbitrary tokens without freeze check and no recovery mechanism

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