Guide · Contract security

Smart contract security
the complete guide

Smart contracts are not inherently immutable - most can be paused, upgraded, or drained by an owner with the right privileges. This guide covers the five attack surfaces every investor and developer should understand.

Scan a contract

Free · No sign-up · EVM · Solana · Tron

Every scan is powered by the XemaS Semantic Intelligence Platform · answers carry their evidence and coverage state

Why it matters

Smart contracts are not automatically safe

The phrase "smart contract" implies the code enforces its own rules without anyone's approval. That is true of the execution - but not of the contract's parameters, logic, or even its existence. Most live contracts have at least one privileged address that can change how they behave.

The privileged functions can be legitimate (emergency pause in response to a hack) or predatory (mint function to dilute holders, fee setter to capture all revenue). The difference between safe and unsafe is not the presence of owner privileges - it is whether those privileges are constrained, transparent, and protected.

Owner privileges and their consequences

Owner has mint function

Can dilute supply by any amount at any time, making existing holders' tokens worthless

Contract is upgradeable

Clean code today can become malicious code tomorrow via a single admin transaction

Owner can pause trading

Can freeze all sells when they choose, converting the token into a honeypot without changing the contract

No timelock on changes

Harmful protocol changes take effect immediately, with no window for users to react and exit

Low-threshold multisig (1-of-2)

Effectively still a single-person decision, providing no real protection against insider action

Verification

One scan, all five dimensions

Each dimension requires different on-chain queries. XemaS resolves all of them automatically and surfaces the evidence rather than just a score.

Proxy detection

UUPS, transparent, and beacon patterns identified live

Timelock resolution

Delay duration and proposer wallet verified on-chain

Multisig analysis

Threshold, signers, and governance structure resolved

Owner privileges

Active EOA vs. multisig vs. renounced vs. zero address

Scan a contract now

Free · No sign-up required

Common mistakes

What investors get wrong

Trusting "audited" without reading the findings

An audit report lists issues found and their severity. A project can publish an audit with Critical findings marked "acknowledged" - meaning the issues were not fixed, just noted.

Equating "renounced" with "safe"

Renounced ownership removes the ability to change parameters, but does not fix code flaws, flash loan attack surfaces, or economic exploits. Renouncement only removes the owner-privilege attack vector.

Ignoring the proxy

Many contracts display the proxy contract's source code on block explorers rather than the implementation. Always resolve and review the implementation, not just the proxy.

Not checking the timelock delay

A timelock with a 5-minute delay is functionally the same as no timelock - no user could realistically react and exit in that window. Meaningful protection requires at least 24-48 hours.

Common questions

Frequently asked questions