Cointime

Download App
iOS & Android

Web3 Infrastructure Platform Ankr Suffers $5M Exploit, Let’s Take a Closer Look

TL;DR

On December 02, 2022, the Ankr protocol on BNB chain suffered a governance key compromise, allowing an attacker to mint 10,000,000,000,000 $aBNBc tokens and drain the DEX pool, resulting in the loss of approximately $5 million.

Introduction to Ankr

Ankr is a decentralized Web3 infrastructure provider that helps developers, decentralized applications, and stakers interact easily with an array of blockchains.

Vulnerability Assessment

The root cause of the vulnerability is due to the compromise of their governance key.

Steps

  • The team had announced changes to all Reward Bearing and Earning Tokens token models prior to the incident.
  • The $aBNBc token is an upgradeable token contract, which means that the admin can change the code at any time.
  • The exploiter stole the key of Ankr Deployer and minted himself 10T $aBNBc tokens as viewed from this transaction.
  • The preparator transferred 1.125 $BNB tokens to Ankr Exploiter address as a gas fee by controlling the key of Ankr Deployer, and then began to dump $aBNBc.
  • The attacker also sent between $3 and $4 million involving multiple transactions to the ETH mainnet through the Celer bridge.
  • Additionally, the exploiter used PancakeSwap to exchange $aBNBc tokens for $BNB and $USDC before converting them to $ETH.
  • The $aBNBc-related pool on PancakeSwap has been depleted, and the exploiter has consequently ceased dumping aBNBc.

Aftermath

After the incident, the team issued a statement on Twitter mentioning that they were currently working with exchanges to immediately halt trading. The price of the $ANKR token plummeted and was last observed trading at $0.02168.

In addition, they stated that all the underlying assets on Ankr Staking were safe at this time, and all infrastructure services are unaffected. The team will be drafting a plan to compensating affected users.

How to prevent such an attack vector

The exploiter deployed an attack contract, changed the upgradeable aBNBc contract to the malicious implementation and then minted a massive amount of tokens for his wallet.

This can either be caused due to the compromise of the Deployer key during their migrations, or it could also potentially be an insider job where the attack was planned to coincide with the event.

Multisignature wallets and pause contract events are also industry standard for majority of blockchain team to mitigate against events of such nature to a greater extent.

Protocol, and Platform Security

Our security team at Neptune Mutual can validate your platform for DNS and web-based security, smart contract reviews, as well as frontend and backend security. We can offer you a solution to scan your platform and safeguard your protocol for known and unknown vulnerabilities that have the potential to have catastrophic long-term effects. Contact us on social media if you are serious about security and have the budget, desire, and feeling of responsibility to do so.

Comments

All Comments

Recommended for you

  • USD/CNH breaks through 7.3000 yuan mark

    US dollar against the offshore RMB just broke through the 7.3000 yuan mark, with the latest report of 7.2999 yuan, up 0.03% on the day; the US dollar against the onshore RMB is now reported at 7.2990 yuan, up 0.01% on the day.

  • Spot gold breaks through $3,330/ounce, setting a new record high

    spot gold continued to rise, breaking through $3330 per ounce, hitting a new historical high, rebounding about $100 from the daily low, and rising more than 3% within the day.

  • Spot gold breaks through $3,320/ounce, setting a new record high

    spot gold broke through $3320 per ounce, hitting a new all-time high and rising 2.9% intraday.

  • BTC breaks through $85,000

    the market shows BTC breaking through $85,000, now trading at $85,022, with a 24-hour decrease narrowed to 0.41%. The market fluctuates greatly, so please be prepared for risk control.

  • Grayscale transfers 6,576 ETH to Coinbase Prime hot wallet address

    according to Arkham monitoring data, Grayscale transferred a total of 6576 ETH worth $10.38 million to Coinbase Prime's hot wallet address seven minutes ago.

  • Glider completes $4 million financing, led by a16z

    crypto investment startup Glider has completed a $4 million financing round, led by a16z, with participation from Coinbase Ventures, Uniswap Ventures, and GSR. Glider plans to use artificial intelligence to help users adjust their cryptocurrency investments according to their needs, and will join the Andreessen Horowitz cryptocurrency startup accelerator this spring.

  • DWF Labs spends $25 million to buy WLFI tokens

    DWF Labs posted on social media platform that they have established a new office in New York and strategically purchased 25 million US dollars worth of WLFI tokens.

  • Italian Finance Minister Warns US Stablecoin Policy Threat Exceeds Tariffs

    according to Cointelegraph, Italian Finance Minister Giancarlo Giorgetti warned that US stablecoin policy poses a greater threat to European financial stability than Trump's tariffs, potentially weakening the euro's dominant position in cross-border payments. He urged the EU to strengthen the international status of the euro, emphasizing the importance of a digital euro.

  • South Korean Conservatives Promise Trump-Style Crypto Policy in Presidential Campaign

    according to Yonhap News Agency, Hong Joon-pyo, a presidential candidate for the ruling party National Power Party in South Korea, promised to significantly reduce regulations on blockchain and cryptocurrency at a policy forum. This conservative candidate stated that he will emulate the regulatory approach of the Trump administration in the United States. He pledged to implement blockchain technology in government services and promote virtual assets as a separate industry.

  • Web3 data and AI company Validation Cloud completes $10 million in new round of financing

     Web3 data and AI company Validation Cloud announced a $10 million financing round from True Global Ventures. The company plans to use the funds to expand its AI products and achieve seamless access to Web3 data.