CertiK found a bug in Sui Network’s blockchain security involving an infinite loop.

The Sui Foundation has awarded $500,000 to CertiK, a smart-contract audit firm, for identifying a potential attack vector on the Sui network.

The vulnerability was an infinite loop bug in the Sui code that could be triggered by a malicious smart contract, causing the blockchain’s nodes to become stuck in an endless cycle and effectively paralyzing the network.

CertiK stated in a press release on Monday that the HamsterWheel attack, which differs from traditional attacks that shut down chains by crashing nodes, traps all nodes in a state of ceaseless operation without processing new transactions, effectively crippling entire networks and rendering them inoperable.

According to the Sui Foundation, once the bug was identified, a team of developers implemented “two key measures that would reduce the potential impact of a similar issue in the future.” CertiK confirmed that fixes for the bug have already been implemented and promised to release a full technical report later.

“We are extremely pleased that the program resulted in finding and fixing this bug well before Sui went live,” said Darius Goore, head of communications at Sui Foundation, in an interview with blockchain.

“Due to the bug bounty program, but also a robust third-party audits program, and thorough internal testing, the first six weeks of Sui mainnet have been remarkably smooth from an operational and security perspective,” he added.

“The discovery of the HamsterWheel attack demonstrates the evolving sophistication of threats to blockchain networks,” said Kang Li, chief security officer at CertiK, in a written statement.

Read more: Sui Mainnet Goes Live as Crypto Project Takes on Aptos and DeFi Giants

Edited by Aoyon Ashraf.