cbym
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    1
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Bridge Security Checklist: Client Side *Contact @cbym from Speabit for more information. Actively looking for feedback.* The information hereby filled by the project will serve as additional documentation to the security review. The information hereby filled by the project will serve as additional documentation to the security review. - [About the bridge](#About-the-bridge) - [Economic](#Economic) - [Security Development Process](#Security-Development-Process) - [Attack Surface](#Attack-Surface) - [Incident Response](#Incident-Response) - [Monitoring Systems](#Monitoring-Systems) - [Appendix A: Asset management](#Appendix-A:-Asset-management) - [Appendix B: Abbreviations](#Appendix-B:-Abbreviations) - [Appendix C: Bridge Security Verification Requirements](#Appendix-C:-Bridge-Security-Verification-Requirements) - [Appendix D: Dashboards and Links of interest](#Appendix-D:-Dashboards-and-Links-of-interest) <br> ## To be filled by the project: ### About the bridge - #### Bridge type - [ ] **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. - #### Centralization - [ ] **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. - [ ] **Trustless:** Trustless 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, trustless bridges enable users to remain in control of their funds. - #### What does the bridge connect into? - [ ] L1 <> L1. - [ ] L1 <> L2. - [ ] L2 <> L2. - #### With what chain(s) does it interact with? - [ ] List chains: - #### How are messages sent from the bridge validated - [ ] **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). - [ ] **Trustless by Ethereum** (messages are validated by Ethereum smart contracts or possibly via the protocol itself) i.g., Optimistic Rollups, zkRollups.. - #### Who is managing the validators? - [ ] **The bridge project itself:** The team runs and maintains nodes - [ ] **A third party:** outsourcing RPC providers and message relays. - Who is the 3rd party? Describe: - #### What could go wrong with validators? - [ ] **External Validators:** Validators can censor, steal, freeze funds. Validator keys can be compromised. - [ ] **Optimistic Validation:** If Watchers are not active, messages can be forged and funds can be stolen. - [ ] **LightClient Validation:** If Dst Chain is 51% attacked, msgs can be censored and funds can be stolen. $1/3$rd of Validators can freeze funds. Fork on a destination chain can lead to fund imbalance. - [ ] **Full client Ethereum Validation:** Nothing? If Ethereum forks, dst chain will fork ethereum. - [ ] Other, describe: <br> <br> ### Economic - #### How much value is currently locked in the bridge (estimation)? - [ ] < 1 million. - [ ] < 10 million. - [ ] < 100 million. - [ ] < 500 million. - [ ] < 1 billion. - #### How much value $x$ has been secured over $t$ period of time (e.g., in **11** months **7 million** have remained secured without any compromise)? Please fill in: - [ ] During the period of $t$ months, $x$ amount has remained secure without any compromise. - #### Economic Security - [ ] 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: - #### Environment - [ ] 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: <br> <br> ### Security Development Process - #### Amount of extensive documentation and defined specifications? - [ ] High. - [ ] Medium. - [ ] Low. - [ ] None. - #### Level of extensive Testing and Fuzzing coverage as part of the CI/CD pipeline? - [ ] High. - [ ] Medium. - [ ] Low. - [ ] None. - #### Use of Static and Dynamic analysis tools (slither, echidna, Certora Prover, etc..)? - [ ] High. - [ ] Medium. - [ ] Low. - [ ] None. - #### Updated and patched packages/dependencies? - [ ] Yes. - [ ] No. - [ ] N/A, describe: - #### Deployment tests? - [ ] Yes. - [ ] No. - [ ] N/A, describe: <br> <br> ### Attack Surface #### **Underlying blockchain** - #### What happens to the bridge if a critical chain malfunction occurs? - [ ] Describe: - #### What trust assumptions exist about the underlying blockchain the bridge is built on? - [ ] The chain can never freeze. - [ ] Gas prices cannot go very high. - [ ] Chain malfunctions or exploit in native token/message bridge. - [ ] Other, describe: <br> #### **Contracts** - #### Are contracts open source and accessible to the public? - [ ] Yes. - [ ] No. - #### Software license (i.g., [spdx.org](https://spdx.org)) - [ ] MIT. - [ ] Proprietary. - [ ] Other, describe: - #### Are contracts Upgradeable? - [ ] Yes, upgraded by $m$-of-$n$ multisig. - [ ] Upgraded by $m$-of-$n$ multisig after delay (e.g., 48 hours). - [ ] No. - #### Are contracts using proxy patterns? - [ ] Diamond Pattern. - [ ] Transparent Proxy Pattern. - [ ] UUPS Proxy Pattern. - [ ] BeaconProxy. - [ ] No. - #### How complex is the system's implementation (How hard it is for an external party to undertand)? - [ ] High. - [ ] Medium. - [ ] Low. - #### Security - [ ] Audited once. - [ ] Audited multiple times. - [ ] Bug Bounty program in place. - [ ] Incident Response plan in place. - [ ] None. - [ ] Other, describe: <br> #### **Keys and Back-End** - #### Are signer keys secured using best practices (e.g., not in plain text and accessible by low permissioned users) ? - [ ] Yes. - [ ] No. - [ ] Describe: - #### Has the back end been audited? - [ ] Yes. - [ ] No. - [ ] N/A, describe: - #### Has the project conducted penetration testing / Red Team engagements? - [ ] Yes. - [ ] No. - #### Has the project suffered any kind of hack (either web2 or smart contract related)? - [ ] Yes. - [ ] No. <br> #### **Third party assumptions** - #### Is the bridge trusting 3rd parties? - [ ] Yes. - Which? Describe: - [ ] No. - #### How secure are those 3rd parties? - [ ] High. - [ ] Medium. - [ ] Low. - [ ] N/A, describe: - #### Bridge risk if 3rd party gets compromised? - [ ] High. - [ ] Medium. - [ ] Low. - [ ] N/A, describe: <br> <br> ### Incident Response - #### Are all organization assets and human capital identified and categorized? Reference in [Appendix A](#Appendix-A-Asset-management) - [ ] Yes. - [ ] No. - #### Time of the challenge window is long enough (e.g., 30 min) to provide a human level response to an incident? - [ ] Describe: - #### Can pause contracts as a defensive action during a compromise? - [ ] Yes. - [ ] No. - #### Clear IR Communication plan - [ ] 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: - #### How fast is the project's response time to an incident? - [ ] <= 30 min. - [ ] > 30 min. - [ ] > 24h. - [ ] N/A, describe. - #### Relationship with White hats? - [ ] Yes. - [ ] No. - [ ] N/A, describe. <br> ### Monitoring Systems - #### Network Health monitoring (nodes, internal network, etc..)? - [ ] Yes. - [ ] No. - #### 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. - #### Automated Transaction Simulations (simulate transactions before execution) - [ ] Yes. - [ ] No. <br> <hr> ## Appendix A: Asset management 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 <br> ## Appendix B: Abbreviations APT = *Advanced Persistent Threat* dst = *Destination* src = *Source* msg = *Message* IR = *Incident Response* <br> ## Appendix C: Bridge Security Verification Requirements *Source: [security-verification-requirements](https://github.com/securing/SCSVS/blob/prerelease/SCSVSv2/2.0/0x200-Components/0x206-C6-Bridge.md#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 differenct context (use domain separator from EIP-712). |

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully