Solana Security Series
A reviewer-focused walkthrough of real Solana security patterns, from account creation pitfalls to Token2022 extension semantics.
Read the series like a playbook
- 01
Solana account creation when an address already holds lamports
A funded address can still need an application record. Follow the payer, owner program and rent shortfall through ordinary account initialization.
3 min read3 min read
December 29, 2025
- 02
Choosing init or init_if_needed for Anchor accounts
A vault record and its associated token account can require different initialization policies. Follow two deposits through the generated constraints and the handler.
4 min read4 min read
January 05, 2026
- 03
Why Anchor accounts go stale after CPI, and when to reload
A token transfer changes the runtime balance from 40 to 55. Follow the two reads that still show 40 and the reload that lets the handler see 55.
8 min read8 min read
January 09, 2026
- 04
From mint to token account in SPL Token and Token-2022
Read a mint, derive its associated token account and interpret the size returned by the token program. Extensions can change both storage and the amount a recipient can spend.
5 min read5 min read
January 31, 2026
A playbook for real program behavior.
Account ownership and funding
Which program owns the account, who pays the rent shortfall, and which signer can spend the tokens.
Account layout + initialization
SPL vs Token2022 data layout, extension semantics, and init invariants.
Reading the transaction log
Use a return value in the log to check how much storage the token program requested.
Keep exploring
More security research across chains
Browse incident reviews, protocol internals, cryptography, and DeFi math in the full archive.