Cosmos Hub

Infrastructure

Proposal Details

Proposal #890

Passed

Proposal title

Signaling Proposal: IBC Rate Limiting

Submit time

Deposit end time

Voting start time

Voting end time

Tally result

87.20%

Proposal #890 description

TL;DR;

This proposal recommends a mechanism that may limit damage to user funds in the case of an exploited vulnerability. If it passes, the IBC Rate Limit module developed by Stride Labs will be added to the Cosmos Hub.

Overview

As the Interchain ecosystem and economy grows in importance, it becomes increasingly important to ensure that each sovereign chain and their inter-connections are protected against exploits.

There are a number of different ways to achieve this; exhaustive testing, code audits and a variety of defensive measures can also be enacted. No matter what measures are taken, there will always exist a potential for misuse in any complex system. Therefore, it is prudent to have defensive measures in place as well, especially because code bugs, environment and library vulnerabilities can manifest themselves in unforeseen ways. This proposal seeks the community’s opinion about the integration of a defensive mechanism to reduce the impact of any exploited vulnerabilities.

Vulnerabilities that exploit user funds can always be rolled back if an appropriate governance vote has taken place, as long as the sandbox is an isolated blockchain. If funds can be on-boarded or off-boarded to other chains, then the instant a vulnerability is exploited, funds can be moved to other chains, beyond the reach of any governance claw back from the exploited chain. The mechanism to off-board funds would be via any bridges to other chains or via IBC support. A rate limiting feature would limit the amount of incoming and outgoing traffic from a particular network that matches a specific criteria.

Previous Exploits and Other Implementations

Examples of previous real or potential exploits on the Cosmos Hub and other ecosystems are shown below:

The rate limiting technique is a useful tool that is implemented in a variety of scenarios, including the area of financial transactions, for example on the Osmosis chain.

Proposal

We propose adding the Rate Limit module developed by Stride Labs to the Cosmos Hub. The module prevents massive inflows or outflows of IBC tokens in a short time frame (e.g., 24 hour window). Every rate limit is applied at a

ChannelID + Denom
granularity. For example, a rate limit could be added for
uatom
on the Cosmos Hub <> Osmosis channel (
channel-141
).

Every rate limit will also have a configurable threshold that dictates the max inflow/outflow along the channel. The threshold is represented as a percentage of the total supply of the denom at the start of the time window, and it remains constant until the window expires. For instance, the rate limit for

uatom
on
channel-141
might have a threshold of 5% for both inflow and outflow. Given the total supply of 388M ATOMs, such a rate limit would reject any IBC transfer that would cause a net inflow or outflow greater than 19.4M ATOMs. Once the time window expires, the net inflow and outflow are reset to 0.

Initially, we propose the add the following (conservative) rate limits (for both inflow and outflow) with a 24 hour time window:

  • 5% for
    uatom
    on Cosmos Hub <> Osmosis (
    channel-141
    ) – a net flow of 19.4M ATOMs / day
  • 1% for
    uatom
    on Cosmos Hub <> Neutron (
    channel-569
    ) – a net flow of 3.9M ATOMs / day
  • 1% for
    uatom
    on Cosmos Hub <> Stride (
    channel-391
    ) – a net flow of 3.9M ATOMs / day
  • 1% for
    uatom
    on Cosmos Hub <> Kujira (
    channel-343
    ) – a net flow of 3.9M ATOMs / day
  • 1% for
    uatom
    on Cosmos Hub <> Injective (
    channel-220
    ) – a net flow of 3.9M ATOMs / day
  • 1% for
    uatom
    on Cosmos Hub <> Persistence (
    channel-190
    ) – a net flow of 3.9M ATOMs / day
  • 1% for
    uatom
    on Cosmos Hub <> Secret (
    channel-235
    ) – a net flow of 3.9M ATOMs / day

These limits are conservative enough to avoid false positives – user transfers being rejected – while still providing an initial protection against exploits. The proposed values are based on the following back-of-the-envelope calculation: In the last 14 days, ~400.000 ATOMs were transferred out of the Hub on average per day, which is ~ 0.1% of the total ATOM supply, and most of this is transferred to Osmosis (more than 90%). This makes the suggested 5% limit large enough to avoid false positives.

Once these rate limits are added, both the inflow and outflow on these channels can be monitored (

gaiad q ratelimit list-rate-limits
) and the limits can be adjusted accordingly. Note that the Rate Limit module enables rate limits to be added and updated via governance proposals.

Proposal Outcomes

The following items summarize the voting options and what they mean for this proposal:

Upon a YES vote:

  • The Rate Limit module developed by Stride Labs will be integrated into Gaia and rolled out in one of the next major releases.

Upon a NO vote:

  • The Rate Limit module will not be added to the Hub and the discussions with the community will continue to find the best path forward to introduce the rate limiting feature that helps to protect user funds.

NO WITH VETO - A ‘NoWithVeto’ vote indicates a proposal either (1) is deemed to be spam, i.e., irrelevant to Cosmos Hub, (2) disproportionately infringes on minority interests, or (3) violates or encourages violation of the rules of engagement as currently set out by Cosmos Hub governance. If the number of ‘NoWithVeto’ votes is greater than a third of total votes, the proposal is rejected and the deposits are burned

ABSTAIN - You wish to contribute to quorum but you formally decline to vote either for or against the proposal

References

Proposal #890 overview

Total votes
79,382
Voters
78,816
Total deposit
250 ATOM

Proposal #890 votes

#

Validator

Account Address

Options
1Stakewolle.com |100% InsuranceYes
2Cosmos SpacesYes
3PRO DelegatorsYes
4cosmos AfAbstain
5SygnumYes
6DSRVYes
7KalpaTechYes
8P2P.ORG - P2P ValidatorYes
9EverstakeYes
100base.vcYes
11PRYZM | StakeDropYes
12BlockpowerYes
13nylira.netYes
14SG-1Abstain
15StakeLab.zoneYes
16Binary BuildersYes
17Simply StakingYes
18KahunaYes
19Kintsugi NodesYes
20windpowerstakeYes
21Leap WalletYes
22HashKey CloudYes
23CompassYes
24DELIGHTYes
25ChainflowYes
26Inu XYes
27Golden Ratio StakingYes
28Alessandro MazzaYes
29HyperblocksProYes
30Onbloc NodeYes
31CrowdControlYes
32Citizen Web3Yes
33AllnodesYes
34BlockHunters 🎯Yes
35S16 Research VenturesYes
36Informal SystemsYes
37commercio.networkYes
38Silk NodesYes
39IcyCRO 🧊Yes
40tester0122Yes
41EnigmaYes
42Dora Factory PGSYes
43Stake&Relax 🦥Yes
44StakeflowYes
45kjnodes.com 🦄Yes
46ShapeShift DAOYes
47Node GuardiansYes
48Chill ValidationYes
49Lavender.Five Nodes 🐝Yes
50Virtual HiveYes
51Chorus OneYes
52ECO Stake 🌱Yes
53BlockPIYes
54🛡️Bunkerstake.ioYes
55Vitwit (Previously Witval)Yes
56PUPMØSYes
57stake.systems | autocompoundYes
58SHUTDOWN_SOONYes
59ForboleYes
60NosNode⚛️Yes
61Coinage x DAICYes
62node101Yes
63Ubik CapitalYes
64Nocturnal LabsYes
65vido.infoYes
66✅ CryptoCrew Validators 🏆 Winner #GameOfChainsYes
67PingYes
68Frens (🤝,🤝)Yes
69BigBrainStakingYes
70Architect NodesYes
71#decentralizehk - DHK daoYes
72MoonletYes
73ZKVYes
74GAMEYes
75Cypher CoreYes
76POSTHUMAN 🧬 StakeDropYes
77TessellatedYes
78Citadel.oneYes
79Swiss StakingYes
80Stakely.ioYes
81[SHUTTING DOWN] AUDIT.oneYes
82Ztake.orgYes
83Blocks United | blocksunited.comYes
84ColossusYes
8501nodeYes
86cosmosrescueYes
87NodeStakeYes
88ChainLayerYes
89AmplifierYes
90KilnYes
91Trust NodesAbstain
92🇨🇭 Vortex.live 🟢Yes
93GATA HUBAbstain
94StakinYes
95blockscapeYes
96Klub StakingYes
97MeriaYes
98🌐 KysenPool Sky ☁️Yes
99NansenYes
100StakecitoYes

View: