Contact @cbym from Spearbit for more information. Actively looking for feedback.
The information hereby filled by the project will serve as additional documentation to the security review.
- About the bridge
- Economic
- Security Development Process
- Attack Surface
- Incident Response
- Monitoring Systems
- Lock and mint: User locks tokens in a smart contract on the source chain, then wrapped versions of those locked tokens are minted on the destination chain as a form of IOU.
- Burn and mint: User burns tokens on the source chain, then the same native tokens are re-issued (minted) on the destination chain.
- Liquidity Pool: A user locks tokens on the source chain, then unlocks the same native tokens from a liquidity pool on the destination chain.
- Hybrid: For some tokens it acts as Lock/Burn-and-mint, for others acts as a Liquidity Pool.
- Trusted: Trusted bridges depend upon a central entity or system for their operations. They have trust assumptions with respect to the custody of funds and the security of the bridge. Users mostly rely on the bridge operator's reputation. Users need to give up control of their crypto assets.
- Trust-Minimized: Trust-minimized bridges operate using smart contracts and algorithms. They are trustless, i.e., the security of the bridge is the same as that of the underlying blockchain. Through smart contracts, trust-minimized bridges enable users to remain in control of their funds.
- L1 <> L1.
- L1 <> L2.
- L2 <> L2.
- List chains:
- Externally verified: Third party (EOA, MultiSig, intermediary blockchain with their own set of validators).
- Natively Verified: By originating chain Validators (light client; if src chain validator say msg are valid, they are considered valid on Destination chain).
- Optimistically verified: Message considered valid until proven otherwise by
$1/n$ watchers during the time of the fault proof window. - Canonical: Messages are validated by Ethereum smart contracts or possibly via the protocol itself) i.g., Optimistic Rollups, zkRollups..
- The bridge project itself: The team runs and maintains nodes.
- Is it Permissioned?
- Describe what actions can third parties take in the event of a an issue (e.g., censorship, technical malfunction, etc.. )
- A third party: outsourcing RPC providers and message relays.
- Who is the 3rd party? Describe:
- Censor individual messages.
- Describe.
- Freeze / Pause messages indefinitely.
- Describe.
- Forge messages / steal funds.
- Describe.
- Validator keys can be compromised.
- Describe.
- Exposure to attacks, reorgs and slashing.
- Describe.
- Other event, describe:
- < 1 million.
- < 10 million.
- < 100 million.
- < 500 million.
- < 1 billion.
How much $value$ has been secured over $t$ period of time (e.g., in 11 months 7 million have remained secured without any compromise)? Please fill in: $value$ $*$ (now - $t$ )
- During the period of
$t$ months,$value$ has remained secure without any compromise.
- How much would it cost to corrupt (validators) your system? Describe:
What would happen to funds if the bridge gets compromised (can users still withdraw? Do tokens becomes worthless?)?
- Describe:
- How does the system handle underlying domains with low economic security? Describe:
How much exposure does the bridge have to the ecosystem? (what is the economic impact if compromised)
- High.
- Medium.
- Low.
- Other, describe:
Are there mechanisms in place to ensure the sustainability and decentralization of relayers / sequencers?
- Describe.
- High.
- Medium.
- Low.
- None.
- High.
- Medium.
- Low.
- None.
- High.
- Medium.
- Low.
- None.
- Yes.
- No.
- N/A, describe:
- Yes.
- No.
- N/A, describe:
- Describe:
- The chain can never freeze.
- Gas prices cannot go very high.
- Chain malfunctions or exploit in native token/message bridge.
- Chain reorgs within a certain time window.
- Chain reverts due to a fraud proof on optimistic rollups.
- Data availability issues: chain progresses without revealing data during the bridge's optimistic fraud proof window.
- Other, describe:
- Yes.
- No.
Software license (i.g., spdx.org)
- MIT.
- Proprietary.
- Other, describe:
- Yes, upgraded by
$m$ -of-$n$ multisig. - Upgraded by
$m$ -of-$n$ multisig after delay (e.g., 48 hours). - No.
- Diamond Pattern.
- Transparent Proxy Pattern.
- UUPS Proxy Pattern.
- BeaconProxy.
- No.
- High.
- Medium.
- Low.
- Audited once.
- Audited multiple times.
- Bug Bounty program in place.
- Incident Response plan in place.
- None.
- Other, describe:
Are signer keys secured using best practices (e.g., not in plain text and accessible by low permissioned users) ?
- Yes.
- No.
- Describe:
- Yes.
- No.
- N/A, describe:
- Yes.
- No.
- Yes.
- No.
- Yes.
- Which? Describe:
- No.
- High.
- Medium.
- Low.
- N/A, describe:
- High.
- Medium.
- Low.
- N/A, describe:
Are all organization assets and human capital identified and categorized? Reference in Appendix A
- Yes.
- No.
Time of the challenge window is long enough (e.g., 30 min) to provide a human level response to an incident? Note that this challenge window depends on the security of the weakest chain, therefore it must be considered per chain.
- Describe:
- Yes.
- No.
- Describe. (how to pause contracts, level of preparedness, tools used, team members with access to execute, etc..)
- War room channels.
- Defined participants and responsibilities.
- Tools ready to debug exploit transactions.
- Can update User Interfaces to reflect current status.
- Available list of security partners (and projects to freeze funds e.g., USDT, USDC) .
- PR and communication plan (Twitter, Discord, Telegram, etc..).
- None.
- Other, describe:
- <= 30 min.
- > 30 min.
- > 24h.
- N/A, describe.
- Yes.
- No.
- N/A, describe.
Network Health monitoring? e.g., monitoring the health of all chains involved, ensure liveness, data availability, fraud proofs (in optimistic rollups), exploits of canonical bridges that could compromise the value of all assets on a network, etc..
- Yes.
- No.
- Describe.
Smart Contract monitoring (checking broken invariants, large sums of capital flow, suspicious transactions/addresses, etc..) ?
- Yes.
- No.
Clear reporting guidelines available to report security issues (website information, dedicated email / Telegram, etc..)?
- Yes.
- No.
- Yes.
- No.
Keep an inventory of physical devices, systems, software and human resources within the organization. Each category should be classified by the organization based on criticality and business value.
- Human Resources
- List of employees, collaborators, contractors, roles, access levels and responsibilities within the organization.
- List of third party stakeholders interacting with the organization.
- Physical devices
- Personnel computers and mobile devices.
- Cold / Hardware wallets.
- Wallets and Keys
- List with public keys, their purpose and their assigned manager/signer (human or bot).
- Deployed Smart Contracts
- Updated list with all smart contracts and their dependencies, as well as their interaction between each other and other external services.
- Nodes/Relays
- List with all nodes/relays/oracles used by the bridge.
- Updated network health status information.
- Event log and list of submitted proofs to target chain.
- Servers / WebApps
- List of servers describing their purpose, version, running applications, hot wallets(if applicable), API endpoints and tech stack.
- Front End tech stack and relationship with the back end.
- WWW
- List of domains, sub-domains, IP's used, assigned Autonomous Systems, etc..
- User private accounts/handles: (In case accounts are compromised.)
- Usernames on Discord, Twitter, Telegram, Slack, Email, etc..
- Github Personal Access Tokens
APT = Advanced Persistent Threat dst = Destination src = Source msg = Message IR = Incident Response
Source: security-verification-requirements
# | Description |
---|---|
C6.1 | Verify that bridge requires all necessary values to be included in the message and signed: token type, chain ids, receiver, amount, nonce, etc.. |
C6.2 | Verify that used signatures are invalidated to protect bridge from replay attacks. |
C6.3 | Verify that message hash generation algorithm is resistant to collision attacks. |
C6.4 | Verify that bridge includes source and destination chains identifiers in the signed message and correctly verifies them. |
C6.5 | Verify that bridge does not allow to spoof chain identifier. |
C6.6 | Verify that bridge uses a nonce parameter to allow the same operation (the same sender, receiver and amount) to be executed multiple times. |
C6.7 | Verify signed message cannot be used in a different context (use domain separator from EIP-712). |
-
Dashboard
-
Toolkits, Frameworks and Guidelines
-
Talks
- DeFi Security Summit Day 2 Session 11: Bridges
- Rollups Are the Most Secure Bridges - DevCon Bogota
- Nuts and Bolts of Cross-Chain Communication - Devcon 5
- Lessons from the Nomad Hack - DevCon Bogota summary: https://twitter.com/odysseas_eth/status/1583095789424848899 / https://typefully.com/odysseas_eth/XQskWEh
- Securing Cross-chain Communication - DevCon Bogota
-
Standards