Solana Smart Contract Risks

The permissions and code paths that can hurt token holders

By Solana Token Scanner Editorial TeamBuilders of the Solana Token Scanner platformFact-checked against on-chain data

On Solana, smart contracts are called programs. A key difference from Ethereum is that most tokens do not deploy their own code at all. A typical SPL token is just an account managed by the shared, audited Token Program. That sounds safer — and in some ways it is — but it moves the risk from custom code to configuration: which permissions the creator kept, which extensions they enabled, and who controls the programs and pools the token depends on.

This guide walks through the main smart contract risks a Solana token buyer faces, what each one allows an attacker to do, and how to check for it before you buy.

1. Mint Authority

The mint authority can create new tokens at any time. If it is not revoked, the creator can mint a huge amount of supply and sell it into the liquidity pool, collapsing the price and diluting every holder. Because this needs no custom code — it is a built-in Token Program feature — it is one of the most common rug mechanisms on Solana. See what is Solana mint authority for details. Check: the mint authority field should be empty (revoked).

2. Freeze Authority

The freeze authority can freeze any holder's token account, which stops it from transferring or selling. It is the main tool behind honeypot tokens on Solana. Some regulated assets such as stablecoins keep freeze authority for compliance reasons, but for an anonymous meme or utility token there is rarely a legitimate need. Read more in what is Solana freeze authority. Check: freeze authority should be revoked.

3. Token-2022 Extensions

Token-2022 (Token Extensions) is a newer token program that adds optional features. Several of them change how transfers behave and can be abused:

  • Transfer fees — a percentage is withheld on every transfer. A high or adjustable fee can act as a hidden sell tax.
  • Transfer hooks — every transfer calls an external program. Whoever controls that program can make transfers fail, effectively blocking sells.
  • Permanent delegate — a designated address can transfer or burn tokens from any account without the owner's signature.
  • Default account state — new accounts can start frozen, so buyers are trapped unless the authority thaws them.
  • Confidential transfers — hide amounts, which makes on-chain analysis of flows harder.

These features have legitimate uses, but each one places trust in whoever holds the related authority. Check: identify whether the token uses Token-2022, list its enabled extensions, and treat a permanent delegate or a mutable transfer hook as a serious red flag.

4. Upgradeable Programs

Solana programs are upgradeable by default. Whoever holds the upgrade authority can replace the program's code entirely. For a token that relies on a custom program — a staking contract, a launchpad, a transfer hook — an upgrade can introduce a backdoor overnight, even if the original code was audited. Established protocols usually move upgrade authority to a multisig with a timelock, or make the program immutable. Check: for any custom program you interact with, look up its upgrade authority on a block explorer and see whether it is a single wallet, a multisig, or revoked.

5. Mutable Metadata

Token name, symbol, image and links are stored in a metadata account with its own update authority. If it is mutable, the creator can rebrand the token to impersonate another project, swap the logo, or change the website link to a phishing page after people have bought. This does not directly drain funds, but it is a common supporting tool in scams. Check: whether metadata is marked immutable.

6. Liquidity Pool Control

The pool where a token trades is controlled by LP tokens. Whoever holds them can withdraw the liquidity, leaving holders with nothing to sell into — the classic rug pull. Burned or time-locked LP removes this risk for the locked portion. Learn how pools work in what is a Solana liquidity pool. Check: the share of LP that is burned or locked, and for how long.

7. Interacting With Unknown Programs

Risk is not limited to the token you buy. Claiming an airdrop, staking on an unfamiliar site or approving a "migration" means signing a transaction that calls a program you have not verified. Malicious programs can transfer assets out of your wallet or assign account ownership to an attacker. Read wallet simulation results carefully and avoid signing anything from links you did not seek out yourself — our buying safety guide covers wallet hygiene in more depth.

Risk Summary

Can directly take your funds
  • Active mint authority
  • Active freeze authority
  • Permanent delegate
  • Unlocked LP
  • Single-key upgradeable program
Increases risk
  • Transfer fees or hooks
  • Default-frozen accounts
  • Mutable metadata
  • Unaudited custom programs

How to Check These Risks Quickly

Most of these checks can be done on a block explorer, but it is slow to do for every token. The Contract Analyzer fetches authority status, liquidity and holder data for any mint address on demand, and tokens in the token scanner carry risk flags that feed into their Trust Score. Automated checks are a starting point — for custom programs and Token-2022 extensions, verify on an explorer as well.

FAQ

Are standard SPL tokens safer than tokens with custom contracts?

They avoid custom-code bugs because they use the shared Token Program, but they can still be dangerous if the creator keeps mint or freeze authority or controls the liquidity.

Does an audit make a Solana program safe?

An audit reviews code at one point in time. If the program is upgradeable by a single key, the code can change after the audit. Check who holds the upgrade authority.

Can revoked authorities be restored?

No. Once mint or freeze authority is set to none, it cannot be reassigned. That permanence is exactly why revocation is a meaningful safety signal.