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.

referencesmethodologiesvesting-streaming.md

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

Vesting & streaming

Invariants: Σ claimed ≤ vested(now) ≤ total; vested monotone in time; vested(start) == 0 unless a documented cliff/immediate tranche; vested(t ≥ end) == total exactly (invariant-catalog §5/§11). Vector: KV-176. Checklist: ECON-110, SM-062/063.

  1. Schedule math at the boundaries. Evaluate at now < cliff, now == start, mid-interval, last interval, now ≥ end. Interval schedules must not count the current interval as released (+1); clamp to principal − already_paid before transfer; use u128 intermediates and floor rounding in the protocol's favour.
  2. Creation validation. end > start, interval > 0, interval ≤ end − start, amounts > 0, start/end types consistent with Clock::unix_timestamp (i64) — flag as u64 casts of timestamps.
  3. Vault binding. Each grant/escrow is bound to its own vault (has_one = vault, or seeds including the escrow key); a global PDA authority over all vaults plus an unbound vault is a cross-instance drain (KV-143).
  4. Recipient binding. Withdraw/claim requires the recipient as signer or pays only to the recipient's anchored token account (KV-147).
  5. Revocation / clawback. Revocable grants pay the vested part to the recipient and the rest to the grantor, atomically; terms (cliff, end, revocability) are snapshotted at creation (KV-172).
  6. Time control in tests. Drive the Clock sysvar (set_sysvar::<Clock>, warp_to_slot, forward_in_time) and property-test (A, start, end, interval, t) for unlocked(t) ≤ A, monotonicity and exact end.
  7. Slot vs seconds. Schedules in slots are subject to slot-time changes (KV-138).

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