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-vectors173-accrual-during-pause.md

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

173 — Accrual Keeps Running While Paused

Severity: 6 | Real: lending/perps audit pattern

Pause blocks repay and top-up, but accrue_interest (or funding, rewards, decay) keeps using now − last_accrual. On unpause, borrowers are instantly liquidatable for debt they could not service; time-based grace periods expire during the pause; rewards that accrued while paused may have no path to be distributed or swept.

Cross-ref: ECON-096, lending.md §10, KV-170.

Verification Procedure
rg -n 'fn accrue|last_accrual|last_update_ts|last_funding' programs/
rg -n 'paused|is_paused' programs/
  • ✅ PASS (any documented design): accrual skips paused time (if pool.paused { pool.last_accrual = now; } and unpause resets last_accrual — lenders forgo the paused period); or interest accrued while paused is capped/deferred; or repay/top-up remain allowed while paused. Liquidation/auction timers exclude paused time. Paused-period rewards are distributable or sweepable.
  • ❌ FAIL: users are penalised for a period in which the protocol blocked their remedy

Overall verdict:

  • ✅: pause is economically neutral (or the trade-off is documented)
  • ❌: unpause creates instant liquidations or stranded rewards

Sources: sanbir/solana-auditor-skills solana-auditor/references/attack-vectors/attack-vectors-4.md V100 (MIT, Copyright (c) 2024 AI Skills Contributors), presented as options; pashov/skills solidity-auditor/references/hacking-agents/invariant-agent.md pause-path pattern, paused-reward part (same copyright).

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