Security model
CookLab protects value by separating what must be trusted, what can be verified, and what is deliberately impossible. Security is designed as a set of narrowing boundaries around canonical Solana state.
Convenience can fail.
Correctness cannot.
If an interface, indexer, or RPC provider disappears, token ownership and protocol state remain independently verifiable on Solana.
Mint and freeze authority revoked during launch finalization.
IMPOSSIBLE BY DESIGNSigner, PDA, reserve, arithmetic, ownership, and slippage checks execute atomically.
TRANSACTION REVERTSDirect web trades remain in the user's wallet. Optional bot wallets use authenticated encryption, isolated secrets, and explicit withdrawal review.
USER CHOOSES THE TRUST MODELDerived services rebuild from finalized program events and canonical account state.
STATE SURVIVESCookLab’s security model distinguishes protocol risk, custody risk, interface risk, and infrastructure risk. Controls are layered because no single mechanism addresses all four.
Protocol threats
The on-chain program must defend against forged accounts, incorrect signers, arithmetic overflow, duplicate settlement, reserve insolvency, premature vesting, and unauthorized lifecycle transitions.
- Ownership and PDA checks
- Checked arithmetic and bounded inputs
- Atomic transfers and state updates
- Explicit lifecycle guards
Custody and interface threats
Trading currently uses the Telegram managed wallet. This creates operational custody risk, mitigated by authenticated encryption, explicit transaction parameters, confirmation steps, withdrawal review, and secret isolation. Website trading is disabled for now.
- Telegram is the primary trading path
- Authenticated encryption protects bot wallets
- Secrets excluded from source control
- No private keys in logs or chat
- User-verifiable transaction receipts
Residual risk
Smart-contract defects, validator or RPC disruption, Telegram account compromise, and user device compromise cannot be eliminated by interface design. Production readiness requires independent audit, incident response, and conservative rollout.
- Audit before unrestricted mainnet use
- Rate limits and anomaly monitoring
- Multisignature administrative authority
- Documented pause and recovery procedures