Skip to content
Cosmopediaby Unity Nodes
DiscussionsMiscellaneousThe bridge theft attack and a possible mitigationForum ↗

The bridge theft attack and a possible mitigation

Miscellaneous11 posts1,023 views4 likesLast activity Oct 2019
JT
jtrembackOP
Jun 2019 1

Most existing blockchains rely on a key security assumption: if the validators (or miners) were to corrupt the system enough to steal a lot of money, the money they stole would become worthless, since trust in the system would be destroyed. For example, if a 2/3rds majority of token holders on the Cosmos Hub gave themselves all the Atoms of the other 1/3rd, Atoms would soon become worthless since everyone would know that the system was not to be trusted. This assumption breaks down when we consider a chain which has more money locked in a bridge than its staking tokens are worth. For example: The bridge The Hotdog Zone is used to buy and sell hot dogs. It has a staking token, HotDogCoin which serves the same purpose that Atoms do on the Cosmos Hub. But hot dog customers do not want to use some kind of weird hot dog coin. They want to use a stablecoin which has an equivalent value to the dollar. Luckily, there’s another zone, the Dai Zone, which has such a stablecoin. So the Hot Dog Zone can use a bridge (IBC) to bring Dai stablecoin over into the Hot Dog Zone where people can spend it on hot dogs. This bridge consists a module on the Dai Zone which locks up Dai. When you…

Excerpt (1197 of 3266 characters). Read the whole post on the forum ↗

JT
jtremback
Jun 2019

One problem could be that not all the Dai Zone validators would want to validate the Hot Dog Zone. Then the Hot Dog Zone would have to make do with <100 validators.

SU
sunnya97
Jun 2019

The shared security design that @zaki and I are working on involves sharing the same validator sets, but gets rid of the HotDogToken altogether (at least as a staking token, it can still be doing something else like governance or fees or whatever). Basically HotDogChain can ask the Cosmos Hub validator set to also validate it’s chain. Some of the validators on the Hub can choose to do so, and if they fault on HotDogChain, their Atoms on the Hub also get slashed.

JT
jtremback
Jun 2019

sunnya97: The shared security design that @zaki and I are working on involves sharing the same validator sets, but gets rid of the HotDogToken altogether (at least as a staking token, it can still be doing something else like governance or fees or whatever). HotDogCoin needs to be a staking token for the Hot Dog Zone. If it’s not, then governance votes to upgrade software on the Hot Dog Zone are meaningless since token holders don’t have any control over the validators anyway. If the validator set from the other zone in question is used as a whitelist, then if a validator does not cooperate with a governance vote, the token holders can undelegate from them. This will reduce the number of validators validating on the Hot Dog Zone, but preserves the power of governance votes as a signaling method. sunnya97: Basically HotDogChain can ask the Cosmos Hub validator set to also validate it’s chain. I think the important part is that the participation of the validators of the Hot Dog Zone in any scheme which would be considered by society to be “theft from the bridge” would also put the value of the asset in the bridge under question. To me, it seems that…

Excerpt (1196 of 2395 characters). Read the whole post on the forum ↗

CW
cwgoes
Jun 2019

Does this differ from or is it similar to https://github.com/cosmos/ics/issues/76 (by @mossid)?

MA
mappum
Jun 2019

One soft mitigation against this kind of attack is for Hot Dog Dai to demur over time, paying to the HotDogCoin holders. This way, the value of HotDogCoin is proportional to the amount of Dai moved into the Hot Dog Zone. This isn’t a guarantee by any means, but the cost of getting 2/3 stake would increase as the “bounty” of Hot Dog Dai to steal grows.

MA
mappum
Jun 2019

If the 2/3 attacker isn’t a single actor but many colluding validators, slashing on evidence of a signed unexpected transaction for the reserves contributes to security as well. If an attacker proposes a malicious transaction, along with their signature, it becomes sort of like a Prisoner’s Dilemma, where if any one of the would-be attackers reports the partial transaction, the attackers get slashed.

GR
GreenPumpkin
Jun 2019 1

If validators are not shared and amount in bridge is greater than say 1/2 of market cap of staking token then there should be a global settlement prior to any governance change implementation. I’m not sure if this would cover all cases but seems to solve some of the examples.

JT
jtremback
Jun 2019 1

Governance changes could also involve the vote of those who have money in the bridge somehow.

GR
GreenPumpkin
Jun 2019

You could be given option of settlement upon any governance change.

DI
divinationstar
Oct 2019 1

This sounds good.

Can there be a 50% or xx% hard limit for bridge transactions? Although, It would block any further bridge transactions until the % goes below the hard limit. That would be detrimental to the user experience.

← Back to Discussions