lido
      • 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
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • Publish Note

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

      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.
      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
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control 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
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • Publish Note

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

    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.
    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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- tags: ADR, governance, LIP, ethereum author: Aleksei Potapkin, Sam Kozin, Eugene Mamin, Eugene Pshenichnyy blockchain: etherium discussions-to: TBA --- # ADR #5: Last moment vote mitigation * Status: RFC * Deciders: Lido dev team, Lido DAO * Date: 2022-04-29 Currently, an attack on the Lido governance is possible which allows a malicious actor to unexpectedly pass a vote given the actor holds enough LDO and casts their voting power in the last block of the vote. ## Voting mechanics A Lido DAO vote can be executed if, within the vote timeframe lasting 72 hours, more than 5% of the total LDO supply (current minimal support value) has supported the outcome, AND at least half of the participated LDO supported the outcome. Votes are accepted until the vote timeframe ends, and the vote can be executed right after that. A script that is invoked if a vote passes has the highest level of privilege inside Lido infrastructure. ## Context and problem statement Recently, the [governance takeover](https://rekt.news/beanstalk-rekt/) happened in Beanstalk through starting the covert voting and casting a vote using flashloaned tokens in the last moment, leaving no time for devs and community to react. Although the same approach is not viable in the Lido setup (we have a MiniMe gov token that prevents flashloaned tokens from casting a vote with), in general, we're still cautions of the last minute voting. As governance takes place on L1 and voting costs are significant, most votes barely gather enough voting power to reach the minimal support. And if some malicious (or hacked) major LDO holder decides to overturn the vote in the last moment, there will be no time to vote against and no time for devs and community to take any measures. ### Threat model 1. The attacker accumulates at least minimal support value of the LDO token supply (currently 5%). 2. A vote is started that gains less support than the current minimal value. DAO members expect it to fail since minimal support is not reached. 3. The attacker waits until the final block of the vote timeframe and includes a transaction in that block that votes for the outcome using the accumulated LDO. The vote now satisfies both conditions for execution. 4. The attacker includes a transaction executing the vote in the next block. Right now, to fend off such an attack, we need to: 1. Identify it. If a malicious vote is created, we should know about in the shortest term possible. 2. Facilitate DAO participants to vote against with all available tokens to be sure that it cannot be overturned in the last moment. We don't know in advance what number of tokens the attacker has in their sleeve, so we can't stop on any particular level of opposition. Moreover, modifications of the attack are possible: - Spawning multiple malicious votes in parallel, making DAO spend more time and resources to defend. Attacker will need to backrun just one vote, while the DAO needs to vote against all of them. - Attacker can change his decision at the last moment. - Voting can be consealed to avoid excessive attention by DOS attack on our infrastructure or social engineering. ## Decision drivers - _Degree of mitigation_ — how easy it is to exploit even after mitigation - _Time to react_ — in case of an attack, it's important for DAO members, 3rd party integrations and stETH holders to have some time to adapt to the associated changes. - _Influence on the DAO performance_ — whether and to which degree the DAO ops become more complicated after implementing the solution - _Time to ship_ — how complex the solution is to develop and deliver - _Decentralization_ — whether the community controls the solution. ## Considered options - Timelock + emergency stop Pros: - Most widespread and proven solution - Emergency stop rights can be given to community like in [Maker DAO][maker-stop] or [Curve][curve-stop] Cons: - Timelock alone does not solve the issue. It just gives some time for a maneuver - Emergency stop is a complex solution that will require significant time to deliver - Emergency stop has a separate voting flow that itself introduces a new attack surface - Increasing the minimal required support for a vote Pros: - Makes it harder and more expensive to mount an attack Cons: - Makes it equally harder for the DAO to operate robustly - Does not effectively prevent the attack - Hard to balance the DAO performance with the security - Voting power decreasing over time during the voting Pros: - Encourages the voters to participate earlier - Gives the community a chance to overcome the malicious vote, with the community power decreasing over time Cons: - Does not prevent the attack completely, the attacker just needs to vote earlier - Makes it harder for the DAO to operate robustly - Rather complex and relatively hard to ship solution - The attacker still remains in a more favorable position in comparison to the honest DAO members since the latter vote after the attacker and thus with the diminished voting power - More sensitive to DOS attacks: the attacker is motivated to perform a DOS to decrease the voting power of honest actors. Moreover, depending on the availability of those honest actors, a comparatively short DOS could be enough to prevent the DAO from opposing the vote. - Timelock + veto multisig - It's a pretty close to our final decision - Concentration of veto power is generally not desirable - It'll slowdown the DAO, but this kind of slowdown is inevitable to make a room for everybody to react properly. ## Proposed solution We propose to split each vote timeframe into two phases: 1. Main phase, where one can vote both for and against. 2. Objection phase, where one is only allowed to vote against. We propose the Objection phase to last 12-24 hours. It's up to discussion to define the convenient timeframe here. ### Pros - Allows 3rd parties and stETH holders to adjust their strategies and integrations for the upcoming decision. In this sense, the proposed option is equivalent to a timelock with the added ability to object. - Requires minimal changes to Aragon Voting contract. - Gives the power to cancel the vote to the broad community of LDO holders. ### Cons - Increases chances of governance paralysis because of the opposition having preference. - Makes governance more conservative in its decisions, giving more power to opposition, but it's not necessarily a cons. ### Other measures Also, we propose to setup alerting for the following scenarios as a part of proposed solution: - Any vote that changes its expected outcome closer to its end - Any new vote that looks malicious by the number of criteria [maker-stop]: https://makerdao.world/en/learn/governance/emergency-shutdown [curve-stop]: https://curve.readthedocs.io/dao-ownership.html#agents

    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

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    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