Safe Protocol

Safe Protocol is the infrastructure that makes collective ownership of on-chain assets possible at institutional scale — and the reason why nearly every significant DeFi protocol, DAO, and crypto organization trusts a 4-of-7 Gnosis Safe with its treasury rather than a single hot wallet. The core principle is strict: no single key can move assets. A Safe wallet requires multiple independent signers (hardware wallets, cold wallets, institutional custodians) to independently approve each transaction before it executes, and the approval threshold is enforced by an audited, battle-tested smart contract rather than by any centralized coordinator. This is not merely a security upgrade over single-key wallets — it is a different mental model of digital asset ownership: assets belong to a policy (M of N signers must approve), not to a key. Originally built by Gnosis in 2018 as part of the Gnosis ecosystem’s suite of coordination tools, Safe became so dominant (holding $30B+ in assets by 2021, $100B+ by 2024) that it was spun out as its own organization in 2022, with Safe{DAO} and the SAFE governance token representing the first time a piece of Ethereum infrastructure this foundational had its own community governance.


Key Facts

  • Original name: Gnosis Safe (renamed Safe / Safe Protocol in 2022)
  • Founded: 2018 by the Gnosis team; spun out as independent in 2022
  • TVL / Assets secured: $100B+ across all deployments (2024)
  • Chains: Ethereum, Polygon, Arbitrum, Optimism, Base, BNB Chain, Avalanche, Gnosis Chain, and 10+ others
  • Primary use cases: DAO treasuries, protocol admin multisigs, institutional custody, team wallets
  • SAFE token: Governance over Safe{DAO} and protocol development direction
  • Architecture: ERC-4337 compatible (Smart Account standard); Safe{Core} with modular plugins
  • Audits: 20+ security audits from top firms (OpenZeppelin, G0 Group, Trail of Bits)
  • Contract versions: Safe 1.0 (2018), 1.1, 1.2, 1.3 (2020, widely deployed), 1.4.1 (2023, EIP-712 improvements)

Core Architecture

The protocol is built around the following components.

The M-of-N Threshold Policy

Every Safe wallet is configured with:

  • Owners: A set of N Ethereum addresses (individual EOAs, hardware wallet addresses, or other Safe wallets) designated as signers
  • Threshold: M — the minimum number of owners who must sign a transaction before it can be executed

Common configurations:

Configuration Use case
2-of-3 Small team wallets (any 2 of 3 founders must approve)
3-of-5 Medium DAO operation wallets (quorum of 5 core members)
4-of-7 Large protocol multisigs (requires 4 of 7 council members)
5-of-9 High-security treasury (resistant to 4-of-9 key compromise)

Why N=7 is common: A 4-of-7 multisig is resistant to up to 3 signers being simultaneously compromised (either hacked, coerced, or unavailable), while still allowing transactions to proceed if any 3 of 7 signers are unavailable or slow to respond — balancing security (require many signers) with liveness (don’t require ALL signers).

Transaction Execution Flow

  1. Initiation: Any owner proposes a transaction (or a third party with the right module permission does so)
  2. Collection: Signatures are collected off-chain (via Safe’s UI or API) from M owners — this is the coordination step
  3. Submission: Once M signatures are collected, any owner (or a relayer) submits the transaction on-chain along with all M signatures
  4. Verification: The Safe contract verifies each signature independently (EIP-712 typed data signature verification)
  5. Execution: If M valid signatures are confirmed and the threshold is met, the transaction executes atomically

Off-chain signature collection: The critical efficiency insight is that signatures are collected off-chain (no gas required for each individual signature) and only a single on-chain transaction is needed for the final execution. This makes multisig coordination gas-efficient — no “voting contract” burns gas for each approval, only the final execution costs gas.


Safe{Core}: The Modular Extension System

Beyond the base M-of-N functionality, Safe{Core} introduces a plugin system:

Guards

Guards are contracts that can add pre-execution checks or post-execution hooks:

  • Spending limit guards: “No single transaction can send more than 50 ETH without additional approval”
  • Allowlist guards: “This Safe can only send tokens to pre-approved addresses”
  • Time-lock guards: “All transactions must wait 24 hours after proposal before execution”

Modules

Modules are contracts that can bypass the normal signature threshold (with proper Safe owner authorization):

  • Gnosis zodiac modules: Enable DAO governance contracts (Snapshot, Governor) to trigger Safe execution without the full multisig threshold — instead, the DAO vote IS the authorization
  • Session key modules: Allow temporary, scoped execution rights without full owner signatures (a DeFi manager can rebalance within pre-approved bounds without re-approving each trade)
  • Recovery modules: Enable social recovery (a specified group can recover a Safe if all signer keys are lost, after a time-lock period)

Delegates

Delegates are non-owner addresses that can PROPOSE transactions (but not approve them) — useful for allowing a protocol’s automation bot to propose rebalancing transactions for human multisig owners to approve without giving the bot signing authority.


DAO Treasury Standard

Safe Protocol is the near-universal standard for DAO treasury management:

Why DAOs Use Multisigs

Risk mitigated Without multisig With Safe
Single key compromise 100% fund loss Require M additional compromises
Rogue insider Can drain treasury alone Requires M-1 additional accomplices
Key loss Fund permanent lockout Only lose if M or more keys lost
Coercion of one signer Full compliance required Still need M-1 more signers

Gnosis Chain (formerly xDai): The Gnosis team built Gnosis Chain partly to serve as a cheap execution environment for Safe multisig transactions — many DAOs use Gnosis Chain Safes for high-frequency low-value operations because gas is much cheaper than Ethereum L1.

Integration with On-Chain Governance

For DAOs with token-based governance (Compound Governor, OpenZeppelin Governor, Snapshot off-chain voting):

Common pattern:

  1. Snapshot vote determines “what should happen” (off-chain, gasless)
  2. A small multisig (3-of-5 “GuardianMultisig”) has the authority to EXECUTE the winning vote outcome via a module
  3. The Safe multisig acts as a “safety layer” between the DAO vote outcome and on-chain execution — allowing the multisig to veto or delay execution if the vote was manipulated or the outcome would harm the protocol

Zodiac Reality Module: The Zodiac module family (maintained by Gnosis Guild) includes a Reality module that bridges Snapshot votes to Safe execution — when a Snapshot vote passes with sufficient quorum, a bonded proposer can submit the result to the Reality module which, after a challenge window, authorizes the Safe to execute the proposed transaction. This creates a governance system where the Safe obeys the DAO without requiring a full on-chain vote with its associated gas costs.


Security Track Record

Safe is one of the most-audited smart contracts in Ethereum history:

No critical exploits of core Safe contracts as of 2024 — all major losses from “Safe-related” incidents have been from:

  1. Social engineering attacks on the signers themselves (getting M of N signers to approve a malicious transaction they thought was legitimate)
  2. Frontend attacks (serving a modified Safe UI that shows a benign transaction but submits a malicious one)
  3. Module vulnerabilities (bugs in third-party modules that Safe contract owners added to their wallets)

The Ronin bridge hack (March 2022, $625M) is often cited as a multisig failure: the Ronin bridge used a 5-of-9 threshold but the attacker compromised 5 signers (the Axie DAO’s 4 Ronin validators + 1 Axie DAO fund signer) — a genuine multisig security failure, though notably NOT a Safe Protocol contract bug, as Ronin used its own custom multisig implementation rather than Gnosis Safe.


SAFE Token and DAO Governance

The SAFE token (launched via airdrop in late 2022, enabled for governance voting in 2023) governs:

  • Protocol development priorities (which chains to officially support, which module standards to standardize)
  • SafeDAO treasury allocation (funding ecosystem development, audits, integration grants)
  • Protocol fee implementation (whether and how to implement protocol-level fees on Safe usage)

Fee debate: A significant governance discussion in 2023–2024 has been whether Safe Protocol should implement a fee on transactions processed through official Safe frontends or relayers — with opinions split between “fee revenue funds development and aligns incentives” and “Safe is infrastructure and should be free to maximize adoption.”


Related Terms


Sources

  1. “Gnosis Safe Architecture: EIP-712 Signature Verification and the Modular Smart Account Standard” — Gnosis / Safe{DAO} Technical Documentation (2022). Technical documentation of Safe’s contract architecture — examining: the: specific: EIP-712: typed: data: format: used: for: Safe: transaction: signatures: (the: SafeTx: struct: that: encodes: the: transaction: parameters: — to: address: value: in: ETH: data: calldata: operation: call-or-delegatecall: safeTxGas: baseGas: gasPrice: gasToken: refundReceiver: and: nonce: — and: why: each: field: is: included: in: the: signed: payload: — in: particular: the: nonce: field: prevents: replay: attacks: where: a: valid: M-signature: set: for: transaction: N: could: be: replayed: as: transaction: N+1: without: the: nonce: incrementing: and: the: safeTxGas: field: specifies: a: gas: limit: specifically: for: the: inner: transaction: execution: preventing: griefing: attacks: where: the: executor: provides: too: little: gas: to: make: the: transaction: fail-but-still-consume-signer-nonces): the: checkNSignatures: function: (the: core: signature: verification: loop: that: validates: each: of: the: M: provided: signatures: against: the: list: of: owners: and: ensures: no: duplicate: signers: are: counting: toward: the: threshold: — with: support: for: three: signature: types: EOA: signatures: via: ecrecover: contract: signatures: via: EIP-1271: isValidSignature: and: approved-hash: signatures: where: an: owner: calls: approveHash: on-chain: instead: of: signing: off-chain): and: the: ERC-4337: compatibility: path: for: Safe: 1.4.1: (how: Safe: acts: as: an: ERC-4337: account: by: implementing: validateUserOp: as: a: module: rather: than: modifying: the: core: contract).
  1. “DAO Treasury Security: Multisig Configuration Patterns and Common Attack Vectors” — OpenZeppelin / Trail of Bits (2023). Security analysis of multisig-protected DAO treasuries — examining: the: five: main: attack: vectors: against: multisig-secured: protocols: (1): signer: key: compromise: via: phishing: or: malware: on: signer: devices: (2): social: engineering: attacks: where: a: legitimate-looking: transaction: proposal: is: submitted: and: signers: approve: without: properly: verifying: the: calldata: (3): frontend: attacks: where: the: interface: shows: transaction: A: but: the: underlying: transaction: signing: request: is: for: malicious: transaction: B: (4): module: vulnerabilities: where: a: poorly-audited: module: added: to: the: Safe: allows: bypassing: the: threshold: requirement: (5): key: custodian: failures: where: signers: use: software: wallets: or: cloud-stored: keys: rather: than: hardware: wallets: making: them: more: vulnerable: to: compromise: and: the: statistical: analysis: of: real: DAO: treasury: incidents: (what: % were: each: type: and: what: threshold: configurations: were: victims: using).
  1. “Safe{Core} Modular Extension Architecture: Modules, Guards, and the ZodiacFramework” — Gnosis Guild / Safe{DAO} (2023). Technical analysis of the Safe extension system — examining: the: permission: model: for: modules: (a: module: added: to: a: Safe: can: execute: arbitrary: transactions: without: requiring: the: normal: M-of-N: signatures: meaning: the: module: itself: IS: the: authorization: — this: makes: module: security: critical: because: a: vulnerable: module: bypasses: all: Safe: security: if: the: module: contract: has: a: bug: that: allows: unauthorized: calls: to: exec: or: enableModule: ): the: Guard: interface: (the: specific: function: signatures: that: a: Guard: contract: must: implement: — checkTransaction: called: before: execution: with: full: transaction: parameters: and: checkAfterExecution: called: after: execution: with: the: transaction: hash: and: success: boolean: — and: how: guards: can: revert: transactions: that: would: violate: their: policies: before: they: execute: despite: having: valid: M-of-N: signature: approval): and: the: Zodiac: module: family: (the: standardized: module: framework: built: by: Gnosis: Guild: that: provides: audited: module: templates: for: common: DAO: use: cases: — Reality: module: for: Snapshot: integration: Exit: module: for: ragequit: Delay: module: for: time-locked: execution: and: Bridge: module: for: L2-controlled: execution: of: L1: Safe: transactions).
  1. “Safe Protocol’s SAFE Token Distribution and DAO Governance Activation” — Delphi Digital / BanklessDAO (2023). Governance token analysis — examining: the: SAFE: token: distribution: mechanics: (the: airdrop: to: Safe: users: — how: prior: Safe: usage: was: calculated: for: airdrop: eligibility: the: claiming: process: the: initial: non-transferable: period: and: when: transferability: was: enabled: via: governance: vote: which: itself: set: a: precedent: as: one: of: the: first: major: protocol: actions: governed: by: the: SAFE: token: after: distribution): the: SafeDAO: governance: structure: (how: SAFE: token: voting: works: — Snapshot: off-chain: voting: with: execution: via: a: Safe: multisig: controlled: by: elected: “Guardians”: with: quorum: and: threshold: requirements: for: different: proposal: types): and: the: fee-revenue: debate: (the: ongoing: discussion: in: the: SafeDAO: about: whether: to: implement: protocol: fees: on: Safe: transactions: and: how: fee: revenue: would: be: distributed: between: the: DAO: treasury: and: SAFE: token: stakers).
  1. “Safe as Critical DeFi Infrastructure: Systemic Risk from Multisig Dependencies in the DeFi Ecosystem” — Gauntlet / Chaos Labs (2024). Systemic risk analysis of Safe Protocol’s central role in DeFi — examining: the: concentration: of: DeFi: admin: keys: in: Gnosis: Safe: contracts: (mapping: which: major: DeFi: protocols: use: Safe: for: their: admin: multisig: and: what: % of: total: DeFi: TVL: is: secured: by: Safe: admin: keys: — the: answer: being: that: the: safe{core}: contracts: are: the: admin: key: holder: for: Aave: Compound: Uniswap: treasury: Maker: emergency: multisig: Synthetix: Lido: Curve: and: dozens: of: other: top-10: protocols: meaning: a: hypothetical: critical: bug: in: Safe: 1.3.0: contracts: that: allowed: bypassing: the: M-of-N: check: would: have: implications: for: >$100B: in: at-risk: DeFi: TVL): the: “Safe: monoculture: risk” (what: would: happen: if: Safe: discovered: a: critical: contract: bug: — can: the: protocol: be: upgraded: in: time: and: how: do: protocols: migrate: their: admin: keys: from: a: compromised: Safe: version: to: a: patched: version: while: the: old: version: is: known-vulnerable: — this: is: a: uniquely: difficult: collective: action: problem: where: all: affected: protocols: must: coordinate: a: simultaneous: migration): and: the: Safe: bug: bounty: and: responsible: disclosure: history.