News
SNARK Systems Under Siege: Circuit Layer Vulnerabilities Exposed

SNARK Systems Under Siege: Circuit Layer Vulnerabilities Exposed

Aug, 09 2024 5:45
SNARK Systems Under Siege: Circuit Layer Vulnerabilities Exposed

A new study has uncovered a major weak spot in blockchain technology. Researchers at Imperial College London have found that circuit layer vulnerabilities pose the biggest threat to SNARK-based systems.

The team examined 141 vulnerabilities. These came from 107 audit reports, 16 vulnerability disclosures, and various bug trackers. The findings were presented on August 7 at Columbia University.

SNARKs are a type of zero-knowledge proof. They allow users to prove something without revealing any information about it. This technology is crucial for many blockchain applications.

Stefanos Chaliasos, a PhD candidate at Imperial, identified three main types of vulnerabilities. These are under-constrained, over-constrained, and computational/hints errors. Chaliasos didn't beat around the bush:

"The majority of vulnerabilities are in the circuit layer, and the majority is also soundness response, which is the worst part that can happen when you use Zkps because basically, in the context of a ZK-rollup, if there is such a bug and someone wants to exploit it, then all the funds could be drained from the circuit layer."

The study found 95 issues affecting soundness and four affecting completeness. These are critical properties of SNARK systems.

Developers face a tough challenge. They must adapt to a different level of abstraction and optimize circuits for efficiency. This directly impacts the cost of using SNARKs.

The researchers identified several root causes for these vulnerabilities. These include distinguishing between assignments and constraints, missing input constraints, and unsafe reuse of circuits.

In a related development, the Aptos team presented their new weighted VRF mechanism. This aims to enhance randomness in the consensus process. It's a big deal for blockchain security.

Aptos deployed this mechanism on their mainnet in June. Alin Tomescu, head of cryptography at Aptos, boasted: "As far as you can tell, this is the first time you see a previously granular script that is unbiaseable, unpredictable, and operates as fast as the network."

The system has already processed half a million calls. The distributed key generation takes about 20 seconds. Tomescu added: "Our randomness latency, which is the latency measured from the time a block is committed to the time the randomness for that block is available, was initially 160 milliseconds. But we were able to bring this down to 25 milliseconds using some optimizations."

These developments highlight the ongoing challenges and innovations in blockchain technology. As the crypto world evolves, researchers and developers are racing to stay ahead of potential vulnerabilities. The stakes are high, with millions of dollars and the future of decentralized finance hanging in the balance. While SNARK systems offer powerful capabilities, this study serves as a wake-up call to the industry: security must remain at the forefront of blockchain development, or we risk undermining the very foundations of trust that these systems are built upon.

Latest News
Show All News