Book a free call

Crypto Token Security: What to Check Before You Launch

A secure token caps supply, locks privileged roles behind a multisig and timelock, and passes an audit before launch. Here are the checks that matter most.

Hertiv engineering teamReviewed by a senior engineer
7 min read
Crypto Token Security: What to Check Before You Launch
On this page

Short answer

Crypto token security means limiting who can mint, change or pause a token, capping its supply, and proving those controls with an audit before launch. The contract's privileged roles should sit behind a multisig wallet and a timelock, not a single key. Check the mint rules, the upgrade path and the audit report before you trust any token with real value.

What is crypto token security?

Crypto token security is the set of controls that stops anyone from minting, moving or changing a token in ways the team did not intend. The token contract is the rulebook: it decides who can create new tokens, who can pause transfers, and whether the rules can ever change.

Once a token is deployed on a public chain, its rules are hard to change and anyone can read them. That is both the risk and the protection. A team that writes the controls well gives holders something they can check; a team that leaves a single key in charge of minting gives holders a promise they cannot verify.

Most token losses come from a small set of avoidable choices, not from exotic attacks. The owner key is stolen, the mint function has no cap, or an upgrade swaps in new code that nobody reviewed.

Each of these is visible in the contract before launch, which is why the checks in this guide matter. Audited libraries such as OpenZeppelin Contracts give teams tested building blocks for standard parts instead of hand-written code. For the wider picture, the guide to smart contract security covers how teams build secure contracts in general.

What can go wrong with a token?

A token can fail in a few well-known ways, and each one maps to a control that should already be in the contract. The table below lists the risks that catch the most teams.

RiskWhat happensWho it hurts
Unlimited mintingThe owner creates new tokens and sells themHolders, as the price falls
Stolen owner keyAn attacker takes control of the contractEveryone holding the token
Upgrade abuseA proxy upgrade swaps in harmful codeHolders and funds in the contract
Hidden tax or blocklistTransfers are taxed or blocked after launchBuyers who cannot sell
Broken vestingTeam tokens release early and are soldLong-term holders

Notice what these risks have in common: they are all decisions written into the contract, not surprises from outside it. A reader who can check the mint function, the owner address and the upgrade path can spot most of them before buying. That is why the rest of this guide is a checklist, not a theory lesson.

How do you control minting and supply?

You control minting and supply by writing the limits into the contract, not by promising them in a document. A fixed supply means the contract refuses to mint above a hard cap; a growing supply means the mint function is restricted to a named minter contract, such as a rewards distributor, with a clear rate.

Four checks cover most of the ground. First, read the mint function and confirm who can call it. Second, confirm the cap exists in code and matches the published plan. Third, check whether a burn function exists and who can call it, since burning changes supply too. Fourth, check the total supply on a block explorer and confirm it matches the plan at launch.

Document every future mint in the plan so holders can check it: team allocation, rewards, treasury and liquidity, with amounts and dates. If the plan says the team gets 20 percent over four years, the vesting contract should release exactly that and nothing sooner. A mismatch between the plan and the code is a warning sign, even when the team means well.

Who should hold the privileged roles?

Privileged roles are the functions that can change a token: the owner, the minter and the pauser. No single personal key should hold any of them. A laptop is lost, a seed phrase is copied, and a single key becomes a single point of failure for every holder.

Put each role behind a multisig wallet, so several people must approve an action before it runs. A common setup is 3 of 5 signers, which keeps the token usable if one signer is away and safe if one key is stolen. Separate the roles too: the minter should not be the same wallet as the pauser, so one compromised role cannot do everything.

Add a timelock, a delay between a proposed change and when it takes effect. A 48-hour timelock lets holders see a change coming and react before it runs. Finally, test key-loss recovery before launch, and renounce ownership when the token no longer needs changes, so the privileged roles stop existing at all.

Should a token contract be upgradeable?

A plain token contract should usually not be upgradeable. An immutable contract is simpler to review: what you audit is what runs, and no one can swap the code later. For a token that only transfers, mints on a schedule and burns, immutability is the safer default.

An upgradeable proxy lets the team fix bugs, but it hands the proxy admin the power to replace the code entirely. That power is the risk. If the team chooses an upgradeable design, the proxy admin must sit behind the same multisig and timelock as the other privileged roles, and the team should say so in public.

Whatever the design, document what can change and what cannot. Holders should be able to read, in plain words, whether the supply cap, the tax, the transfer rules and the vesting schedule are fixed or changeable. A token whose rules can change silently is a token whose holders are trusting the team, not the contract.

How do you audit a token contract, step by step?

You audit a token contract by freezing the code, having it reviewed by people who did not write it, fixing what they find, and publishing the result. The audit is a check on the exact code you deploy, not on the idea.

  1. Freeze the code and write down what each function should do. The auditor needs the intended behaviour, not just the code, so they can spot where the two differ.
  2. Run automated checks and review the code internally. Standard tools catch common patterns, and a second pair of eyes inside the team catches logic errors the tools miss.
  3. Choose an auditor and agree the scope. Minting, access control, upgrades and vesting should all be in scope, not just the transfer function.
  4. Fix every finding, not just the severe ones. Small findings often point to the same misunderstanding that causes large ones.
  5. Ask the auditor to re-check the fixes. A fix can introduce a new problem, so the re-check is part of the audit.
  6. Publish the report and the final contract address. Holders should be able to match the report to the code that is actually deployed.
  7. Keep monitoring after launch. Watch mint events, holder concentration and contract changes, because an audit covers one point in time.

The guide to what a smart contract audit covers explains the process in more detail.

The guide on how to run a smart contract audit covers the practical steps.

Example (hypothetical): a team hardens its token before launch

Example (hypothetical): a team plans a token with a supply of 100,000,000. The plan splits it five ways: 40,000,000 for the public sale, 20,000,000 for the team vested over four years, 15,000,000 for the treasury, 15,000,000 for rewards, and 10,000,000 for liquidity. The five parts add up: 40 + 20 + 15 + 15 + 10 = 100, so the full supply is accounted for.

Team vesting releases 20,000,000 tokens over four years, which is 5,000,000 per year, with nothing in the first year. The first audit finds two problems: the mint function is open to the owner alone, and there is no supply cap in the contract.

The team fixes both. A hard cap of 100,000,000 goes into the contract, ownership moves to a 3-of-5 multisig wallet with a 48-hour timelock, and minting is limited to the rewards contract only. A re-audit finds no further issues.

At launch the team mints the first 1,000,000 rewards tokens and checks the explorer: total supply reads 1,000,000, which matches the plan exactly. The checks took an extra three weeks, but the token now runs on rules that holders can verify instead of promises they must trust.

What are the common mistakes?

The most common token security mistakes are leaving power in one key, skipping the re-audit, and promising in words what the contract does not enforce.

  • One key owns everything. A single personal key holding the owner, minter and pauser roles is the most common way a token is lost.
  • No supply cap. A mint function with no cap means the published supply is a plan, not a fact.
  • Unaudited fork. Copying a known token contract and changing a few lines without a fresh audit leaves new bugs in old code.
  • Hidden mint or tax. A mint function or transfer tax that is not in the published plan breaks trust even when it is never used.
  • Upgradeable with no timelock. A proxy admin who can change the code at once can change anything at once.
  • Skipping the re-audit. Fixes are new code, and new code needs checking before it ships.
  • Promising a fixed supply the contract allows to grow. If the contract can mint, the supply is not fixed, whatever the website says.

Key takeaways

  • A token's security lives in its mint rules, privileged roles and upgrade path, not in its marketing
  • Cap the supply in the contract and restrict minting to a named minter
  • Put the owner, minter and pauser roles behind a multisig wallet and a timelock
  • Audit the exact code you deploy, fix every finding, and publish the report
  • Keep watching after launch: mint events, holder concentration and contract changes

Frequently asked questions

How can I check whether a token can mint more supply?

Read the contract on a block explorer and look for the mint function and any supply cap. Check who can call mint and whether a maximum supply is written into the code. If there is no cap and the owner can mint, the supply is not fixed, whatever the project website says.

What is a multisig wallet and why does it matter for tokens?

A multisig wallet needs several signatures before an action runs. A 3-of-5 setup means three of five signers must approve, so one stolen key cannot take over the token. It keeps the token usable if one signer is away and safe if one key is lost or stolen.

What is a timelock in token security?

A timelock is a delay between a proposed change and when it takes effect. A 48-hour timelock lets holders see a change coming and react before it runs. It turns a surprise upgrade into a public event that anyone can check.

Does an audit guarantee a token is safe?

No. An audit checks the code at one point in time and does not cover new code, later upgrades or off-chain promises. Treat the audit as one check among several, alongside the mint rules, the privileged roles, the upgrade path and the published report.

Should a token contract be upgradeable?

Usually not for a plain token. An upgradeable proxy lets the team fix bugs, but it also lets the admin replace the code entirely. If a team uses one, the proxy admin must sit behind a multisig wallet and a timelock, and the team should say so in public.

What should a token audit report show?

It should show the scope, the findings by severity, which findings were fixed, and the exact contract address that was audited. Check that the address in the report matches the deployed contract, and ask for a re-check report if fixes were made after the first audit.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a token and want it reviewed before launch? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Smart Contract Audit service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call