A check that an account which must authorize an action has actually signed the transaction. Without it, anyone can pass another person’s address as the authority and act in their name.
Why it matters
A missing signer check is one of the oldest and most costly Solana bugs: an instruction that moves funds or changes settings but never confirms that the authority approved it. Auditors check every instruction for it first.
What to check
- Ask which account is the authority in each instruction and where the code requires its signature.
- Ask whether admin and withdraw instructions are tested with a transaction that is not signed by the authority.
How it works in practice
In Anchor, declaring an account as Signer makes the program reject the transaction if that account did not sign. In native Rust the program has to check the is_signer flag itself.
The signer must also be the right signer. The program compares it with the authority stored in the state account, for example with an Anchor has_one constraint, so a valid signature from an unrelated wallet does not count.
Common mistakes
- Taking the authority as a plain account and never checking that it signed.
- Checking that someone signed but not that the signer is the stored authority.
- Adding admin instructions late and leaving them without the check that other instructions have.
Related terms
- AccountThe unit of storage on Solana.
- AnchorThe most widely used framework for writing Solana programs in Rust.
- MultisigA wallet that requires approval from several signers before executing a transaction.
- Audit (smart contract audit)An independent security review of a program at a specific commit, usually by a specialised firm, that reports vulnerabilities and recommendations before launch.
Guides
- Solana Anchor security checklist: 16 code checks before your auditA practical Anchor security checklist: signers, has_one, UncheckedAccount, PDA seeds, init_if_needed, closing accounts, token constraints, CPIs, math and remaining_accounts.
- Anchor vs native Rust for Solana programs: how to chooseAnchor or native Rust for your Solana program? The real trade-offs in safety, speed of development, compute usage, tooling and hiring, and when each choice makes sense.
- Solana program upgrade authority: how to secure it with a multisigWho should hold a Solana program upgrade authority, how to move it to a multisig, when to add a timelock or make the program immutable, and the mistakes to avoid.
Describe your project in plain English. Smart Match suggests verified Solana providers with a reason for each match. Free for teams.
Get matched →