Web3 describes a group of technologies, including public blockchains, smart contracts, self-custody wallets and decentralised applications, that move ownership and logic from central platforms onto shared, verifiable ledgers. Whatever your view of its commercial future, it has introduced genuinely new security models alongside some very old mistakes. Understanding both is essential for anyone building, integrating or simply using these systems.

The security opportunities

  • Transparency. Transactions and deployed contract code on public chains can be inspected by anyone, which makes independent verification and forensic analysis possible.
  • Cryptographic ownership. Assets are controlled by private keys rather than by a database record an administrator can change.
  • Fewer single points of failure. Distributed consensus makes it hard for one compromised server to rewrite history.
  • Programmable controls. Multi-signature approvals, time locks and spending limits can be enforced by code rather than by policy alone.

The pitfalls

Code is law, including its bugs

Smart contracts are usually immutable once deployed, and they often hold large balances in public view. A single flaw can be exploited by anyone, instantly and irreversibly. Recurring vulnerability classes include:

  • reentrancy, where an external call re-enters a function before its state has been updated;
  • broken access control on administrative or upgrade functions;
  • price oracle manipulation, often amplified by flash loans that provide enormous temporary capital;
  • arithmetic and precision errors in token and reward calculations;
  • unsafe upgrade patterns in proxy contracts, such as uninitialised implementations and storage collisions;
  • signature replay, where signed messages lack nonces, chain identifiers or expiry times.

Keys are everything

In self-custody there is no password reset. A leaked seed phrase or compromised signing key means permanent loss. Many losses stem not from broken cryptography but from users signing transactions they do not understand, known as blind signing, or granting unlimited token approvals to malicious contracts, which wallet-drainer kits are built to exploit.

Bridges and off-chain components

Cross-chain bridges concentrate value and depend on complex validation logic or small groups of signers, making them frequent targets. Meanwhile, the web front-ends, APIs, DNS records, node providers and admin keys surrounding a decentralised application are thoroughly centralised, and attackers target them with familiar web techniques.

Social engineering in a new setting

Fake airdrops, impersonated support staff in community chats, cloned project websites and malicious browser extensions all target wallets. The lures are new; the psychology is the same as classic phishing.

Governance and operational risk

Many protocols are governed by token-holder votes or by small core teams with emergency powers. Governance processes can be captured, upgrade keys can be stolen, and the gap between "decentralised" and "controlled by a handful of people" is often narrower than marketing suggests. Organisations adding Web3 features should also expect regulation on custody, consumer protection and financial crime to keep evolving, and design their controls accordingly.

Guidance for users

  • Use a hardware wallet for significant holdings and a separate hot wallet for day-to-day interactions.
  • Store seed phrases offline, never in cloud notes, screenshots or documents on a connected device.
  • Read what you are signing, and prefer wallets that decode and simulate transactions before approval.
  • Review and revoke token approvals regularly.
  • Reach projects through bookmarked addresses, not links in direct messages or search adverts.
  • Assume that anyone who contacts you first offering "support" is an attacker.

Guidance for builders

  • Threat-model the whole system: contracts, keys, front-end, APIs, infrastructure and governance, not just the contract code.
  • Test deeply with unit tests, property-based fuzzing and invariant testing, and use formal verification for the most critical logic.
  • Commission independent reviews of contracts before launch and after significant changes, and run a bug bounty programme.
  • Protect privileged keys with multi-signature wallets, hardware security modules and time locks on upgrades.
  • Monitor on-chain activity for anomalies, and prepare pause mechanisms and an incident playbook in advance.
  • Secure the web layer using OWASP guidance: harden DNS and hosting, enforce a strict content security policy and test the APIs behind the interface.

The off-chain parts of a decentralised application deserve the same scrutiny as any web platform. Our web application penetration testing and API security testing cover dApp front-ends, wallet integrations and supporting infrastructure.

Questions to ask before integrating

  • Who controls the upgrade and admin keys, and how are they protected?
  • Have the contracts been independently reviewed, and were the findings fixed?
  • What happens to users' assets if the front-end or a bridge is compromised?
  • Is there a public incident history, and how was each incident handled?

Web3 security checklist

  • Hardware wallet for significant assets, with the seed phrase stored offline.
  • Transactions simulated and understood before signing.
  • Unused token approvals revoked.
  • Contracts independently reviewed and fuzz-tested before deployment.
  • Admin keys held in multisig wallets with upgrade time locks.
  • Front-end, DNS and APIs tested like any other web application.

Web3 does not remove the need for security fundamentals; it raises the cost of getting them wrong. To build those fundamentals in your team, browse our security training courses.

Written by

Elytrix Labs Offensive Security Team

Field notes from the Elytrix Labs consultants, analysts and instructors who run our engagements and teach our courses. Every article is reviewed by a practising specialist before publication.

Meet the team behind Elytrix Labs

Get the monthly security briefing

One concise email a month with new threats, practical defences and upcoming courses. No spam — unsubscribe anytime.

Subscribe to the security briefing