Research
/
Protocol research
Protocol research

Chainlink: admin keys as a risk to DeFi

Justin's December 2023 look at the admin keys behind Chainlink's contracts and why he sees them as a single point of failure for much of DeFi.

Justin Bons
·
Original · 18 December 2023
Historical research. Project designs and market conditions may have changed since publication. This is not a statement of current holdings or recommendations.
View original source.

1/25) Chainlink's use of admin keys has the potential to bring down most of DeFi!

LINK serves such a critical role in the DeFi ecosystem

That if those keys are ever compromised, it will cause a black swan that shakes DeFi's core!

That is the devil that hides in LINK's details:

2/25) As LINK admin keys can manipulate oracle pricing!

Allowing an attacker to leverage DeFi to take advantage of this "vulnerability"

Like going short or long to rip off bots, an attacker could literally steal billions!

This would crash the entire DeFi market in the process

3/25) As there are many dApps that rely on LINK for their price feeds

Which can, therefore, also be exploited because of these LINK admin keys

To make things even worse, whoever controls these keys are anonymous!

Transparency should be prioritized over "security by obscurity"

4/25) This all creates a potential scenario for a massive attack on DeFi

There is a light at the end of the tunnel, though

This is because LINK is not a single monolithic oracle but a decentralized & open marketplace for oracles

Some of which can have admin keys & some do not

5/25) I have been referring to oracles that operate under the Chainlink Labs coordinator entity

Making Chainlink Lab a trusted intermediary for oracles, which, on the surface, is fine

As this use case necessitates some degree of centralization because of the oracle problem

6/25) Oracles, by their very nature, introduce some sort of trusted intermediary

The oracle problem is, in fact, defined by this dilemma

LINK does not solve this problem strictly speaking but leans into it instead

By embracing this trade-off, we make the most of blockchain

7/25) This is why I always accepted that trade-off in the case of LINK

As external data requires trusted providers

As a blockchain can only verify itself, it cannot verify anything outside of itself

This is why we need trusted oracles to feed external data into the blockchain

8/25) Oracles in this context are always centralized & trusted parties

This is why it makes little sense to make the smart contract governing such parties immutable

Especially since there are truly immutable Ddaps that connect to these oracles

Thereby justifying upgradability

9/25) As without upgradability, the risk is arguably greater

Because oracles need to be able to upgrade quickly in case of major failures

Exactly for the purpose of safeguarding these DeFi protocols

This is why an admin key based on a multi-sig is used in this particular case

10/25) So what is even the problem then?

The problem is that the vast majority of dApps still use oracles that operate under Chainlink Lab's central coordinator entity

Which maintains the power to manipulate the oracle pricing of all the oracles built on top of it!

11/25) This concentration risk is what creates the potential for a massive exploit

Especially considering that there is no timelock on that admin key!

This means if that key ever fell into the wrong hands, it could destroy most of DeFi!

This is why the open marketplace exists

12/25) As Chainlink Lab's is taking steps to mitigate this particular problem long-term

I still do not agree with the lack of transparency of these keys

Even if I can empathize with not wanting to put a target on your back

The risks these keys represent are still far too great

13/25) This is why putting a spotlight on this "vulnerability" helps to improve LINK

Much like other decentralization metrics, it requires awareness on behalf of DAPS & users

To choose more varied oracle providers, like how in BTC, miners do not all concentrate in single pools

14/25) Synthetix serves as a great example of a more robust approach

By using both the Chainlink oracle & the Pyth oracle;

The SNX protocol is programmed to freeze all activity if any of these two oracles deviates from each other

This is a great start to mitigating such risks

15/25) Over 75% of all ETH TVL is still secured by oracles that operate under Chainlink Lab's central coordinator

Most DeFi protocols do not put in the type of fail-safes like those in SNX

This means all of that DeFi is still at risk if the LINK admin key is ever compromised!

16/25) To LINK's credit;

They extensively outlined how Ddaps can help mitigate against these types of risks themselves

However, many of these methods involve Ddaps having their own admin keys!

Further highlighting the challenge with upgradability:

https://docs.chain.link/data-feeds/selecting-data-feeds#risk-mitigation

17/25) The irony is that this concentration risk exists because of LINK''s excellent BD

By offering a robust & competitive product on the market

They have become a victim of their own success, as Chainlink Lab's can only do so much

It requires everyone else to adapt as well

18/25) Chainlink does a lot more than price feeds

It allows for cross-chain interoperability with CCIP & off-chain computing by utilizing the same oracle providers!

Areas where LINK has shown it can evolve positively, as here the admin keys; do have timelocks & veto mechanisms

19/25) The solution has to be multifaceted

To begin with, the Chainlink Lab's coordinating entity is not enshrined in the LINK protocol

This means anyone else could launch a competing coordinator within the LINK protocol

This would do a lot to reduce the concentration risk

20/25) Alternative oracles networks can also be used to mitigate against this risk

Though this is not necessary, in part due to the brilliant design behind LINK

Even if there is a lack of incentives to launch a competing coordinator, LINK developers should think about that more

21/25) As these keys still represent a massive existential threat to the entire DeFi ecosystem now

Even if it is only due to an excessive reliance on a single coordinator entity

We have to hold DApps to a higher standard & choose better

As that is what cryptocurrency deserves

22/25) Having the vast majority of DeFi rely on a single key

Protected by a 4 out of 9 multi-sig contract is totally antithetical to the cryptocurrency movement

The challenge lies in moving away from the bootstrapping mechanisms that allowed LINK to succeed in the first place

23/25) That is a nuanced discussion, as the line between centralization & decentralization blurs

The current setup in Chainlink is clearly extremely centralized, with all of the risks that come with that

We should still support LINK, as the oracle problem demands compromise

24/25) The LINK community can do better

As shown by their willingness to review this critique in good faith before release & LINK's solid developmental history proves this as well

There is a clear path where LINK can mitigate this risk to where it is no longer a problem at all

25/25) In the meantime, a potential black swan still looms over the DeFi ecosystem

As that is the inescapable potential risk the LINK admin keys represents

No matter how much we attempt to justify it, this "vulnerability" can wipe out most DeFi today

We can do so much better!