DeFi: hacks made a distant memory with Sentinels

Thu 22 Apr 2021 ▪ 23h28 ▪ 4 min de lecture - par William Proctor

Since DeFi hit the scene, the biggest fear of its users is to wake up to the news that a loophole has been exploited overnight and that some (or all!) of their funds have disappeared. Fortunately for us, a new solution is making waves in the DeFi space…

A single solution for all

This new solution is an application called Sentinels. It helps DeFi (Decentralised Finance) projects detect abnormal behaviour and react automatically. Sentinels is part of the OpenZeppelin Defender service. What’s more, it has already been used for more than a year by the main players in the DeFi ecosystem, from Aave and Compound to Balancer and DyDx.

While OpenZeppelin Defender enables the management of smart contract-generated operations, Sentinels is specifically designed to reduce attacks on DeFi protocols, speeding up their adoption.

According to CipherTrace, one of the largest companies fighting ‘crypto crime’, nearly $130 million has been lost from these kinds of attacks in just a year.

A concrete example that shook the cryptosphere was that of Yearn.Finance, which lost $11 million two months ago. The Yearn.Finance hack consisted of just 11 transactions, but they involved exorbitant gas charges. Jonathan Alexander, CTO of OpenZeppelin, says that if Sentinels had already been in place, this hack would never have taken place, as the solution can detect transactions that involve flash loans or high gas charges.

Flash loans are a famous DeFi product that allow any user to manipulate the market. Hackers can borrow any amount they want by pretending to return it in the very same transaction.

A miracle combination?

Beyond flash loans, the prices transmitted by oracles can also be the target of attacks. Combining the Sentinels app with the Autotasks app could further help keep an eye on the price of oracles.

How does it work?

Each time an oracle passes an updated price to a blockchain, Sentinels can detect it and activate Autotasks to double check the price by cross-referencing it against other data sources.

To sum up, Sentinels is just one of a suite of solutions present in Defender, which also includes: Autotasks, Admin, Relay and Advisor.

Today, these tools only work on the Ethereum blockchain. However, Defender for the Binance Smart Chain (BSC), Fantom, Fuse and xDaI are in the pipeline.

That’s not all, OpenZeppelin also plans to partner with Blocknative to act as a mempool – the ‘waiting room’ for transactions that have not yet been registered in a block. This would make the system even more efficient, since the smart contract associated with the suspicious transaction could be suspended, thus preventing the transaction from being executed in the first place.

It is possible that in the near future, all DeFi protocols will use Sentinels. We will all be able to sleep soundly knowing our funds are being lent out (or are farming away) in complete security. Until this day comes, be sure to check security audits of platforms systematically before entering into a protocol, and make sure that you carry out spring clean of your BSC and Ethereum contracts.

A
A
William Proctor

Hi! Привет! Salut ! Je m’intéresse à deux choses : la crypto et les langues. Je suis donc heureux de faire partie de l’équipe multinationale du CoinTribune, où je peux partager mes connaissances de la crypto avec des gens des quatre coins du monde – l’un article après l’autre.

DISCLAIMER

Les propos et opinions exprimés dans cet article n'engagent que leur auteur, et ne doivent pas être considérés comme des conseils en investissement. Effectuez vos propres recherches avant toute décision d'investissement.

Cours & Indices

BITCOIN (BTCUSD) $60,981.68 -1.1%
ETHEREUM (ETHUSD) Ξ $3,860.00 -0.23%
DEFI (DEFIPERP) $12,129.00 0.32%
MARKETS (ACWI) $103.63 0.82%
GOLD (XAUUSD) $1,767.35 -1.56%
TECH (NDX) $15,146.92 0.63%
CURRENCIES (EURUSD) $1.16 -0.01%
CURRENCIES (EURGBP) £0.842740 -0.59%
CRUDEOIL (USOIL) $82.47 1.29%
IMM. US (REIT) $2,666.33 -0.01%
Le pourcentage exprime l’évolution depuis 24h BUY CRYPTOS WITHOUT RISK
Newsletter

Recevez le meilleur de l’actualité Crypto dans votre boite email

Free coaching

Receive a free hour of coaching with an expert! Just fill in this form and our expert will contact you within 48 hours.