Heco Bridge Hack Analysis

Olympix
3 min readDec 4, 2023

--

Postmortem Analysis of Recent DeFi Exploit HECO Chain.

On November 22, 2023, a significant security breach affected Huobi Global’s HTX exchange and its HECO Chain’s Ethereum Bridge, resulting in a combined loss of approximately $100 million in assets. This incident highlights the ongoing vulnerabilities in the DeFi ecosystem and the urgent need for enhanced security measures.

Root Cause: Operator Account Compromise

The root cause of the exploit lies in the compromise of the HECO bridge’s operator account. This account, which possesses privileged access to manage the bridge’s operations, was compromised by an attacker, enabling unauthorized access to critical functions.

The attacker’s main wallet received plenty of illicit funds.

Attack Execution

Leveraging the compromised operator account, the attacker executed transactions to drain funds from the HTX hot wallets and the HECO bridge. The attacker’s actions can be summarized as follows:

HTX Hot Wallet Depletion:

The attacker utilized the compromised operator account to directly withdraw assets from several HTX hot wallets, including 4.25 million KOK tokens, 2.19 million ARIX tokens, and a substantial amount of ARIX tokens that were inadvertently left behind.

Heco Bridge Exploitation

The attacker employed the compromised operator account to initiate unauthorized withdrawals from the HECO bridge, amassing stolen assets worth approximately $86.8 million. The stolen assets included USDT, HBTC, SHIB, UNI, USDC, LINK, ETH, and TUSD.

Asset Distribution

The attacker consolidated the stolen assets into several wallet addresses, indicating their control over the illicit funds.

Aftermath

Justin Sun acknowledged the incident and confirmed the HTX and HECO Cross-Chain Bridge compromise. HTX committed to fully compensating for the losses of hot wallet addresses, and all deposits and withdrawals were temporarily suspended.

The exploit resulted in a cumulative loss of approximately $99.3 million, split between the HTX hot wallets ($12.5 million) and the HECO bridge ($86.8 million). Upon detecting the breach, the HTX team promptly suspended deposits and withdrawals while initiating efforts to recover the stolen assets.

This occurrence comes after two additional security breaches in projects affiliated with Sun, all happening within three months. These incidents collectively led to a loss of $233 million, with only $8 million successfully recovered up to this point.

Security Recommendations

  • Private Key Management
  • Implement multi-factor authentication and hardware security modules (HSMs).
  • Adopt multi-signature wallets to decentralize control.

Hot Wallet Security:

  • Limit funds in hot wallets to the minimum required for daily operations.
  • Prefer cold wallets for storing most funds due to their offline nature.
  • Establish strict withdrawal limits and implement alert systems for unusual activities.

Cross-Chain Bridge Security:

  • Conduct regular security audits of cross-chain bridges by independent third parties. Implement robust real-time monitoring systems to detect and respond to potential threats.
  • Establish real-time monitoring systems to identify unusual transaction patterns promptly. Employ mechanisms that can swiftly secure funds or transfer them to designated accounts, similar to the functionality of a “recovery account.”

Organizational Mindset

  • Recognize the complexity of managing cross-chain infrastructure and allocate dedicated resources.
  • Ensure a comprehensive strategy blending technological safeguards with strict operational protocols.
  • Consider on-chain digital asset protection insurance services such as Nexus Mutual, Bridge Mutual, etc, to provide a safety net against unforeseen vulnerabilities. Establish dedicated cover pools to offer financial support to users affected by smart contract exploits.
  • Conduct regular security audits of cross-chain bridges by independent third parties. Implement robust real-time monitoring systems to detect and respond to potential threats. Recognize the complexities of cross-chain infrastructure and allocate dedicated resources to its security.

About Olympix

Olympix is a pioneering DevSecOps tool that puts security in the hands of the developer by proactively securing code from day one.

Join our beta program now to fortify your smart contracts and proactively shield them from cyber threats in the evolving landscape of Web3 security.

Connect with us on:

Twitter | LinkedIn | Discord | Medium | Instagram | Telegram | Substack

--

--

Olympix
Olympix

Written by Olympix

The future of web3 security.

No responses yet