Vitalik Buterin: AI Can Enhance Smart Contract Security

icon币界网
Share
Share IconShare IconShare IconShare IconShare IconShare IconCopy
AI summary iconSummary

expand icon
Ethereum co-founder Vitalik Buterin said AI can enhance smart contract security by simplifying formal verification. He noted that AI can assist in generating code and proofs, reducing costs and minimizing errors. Formal verification is already used in Ethereum’s core technologies, such as STARKs and ZK-EVM. Buterin warned of its limitations, including incomplete coverage and hardware risks, and emphasized focusing verification on the smallest, most critical systems to improve smart contract security.
CoinDesk reports:

Foreign media: Ethereum co-founder Vitalik Buterin recently posted that as AI participates in code and proof generation, formal verification has the potential to evolve from a niche tool into a more commonly used software development method. This is also his core response to concerns that AI will make writing secure code increasingly difficult.

Formal verification is no longer reliant solely on manual effort.

Formal verification involves using mathematical proofs to confirm that code behaves as expected under specified conditions. It differs from traditional testing, which can only cover a subset of scenarios; formal verification aims to express critical behaviors as machine-checkable proofs.

Buterin believes that the advancement of this technology has been slow in the past, primarily because the cost of writing proofs was too high, and manually completing them was both time-consuming and prone to errors. The role of AI lies in assisting with the generation of both code and proof text, which developers then verify to ensure that the claimed behavior truly matches the intended software behavior.

Multiple directions on Ethereum are already being explored.

The article notes that formal verification has been advanced in some foundational technologies within the Ethereum ecosystem, including post-quantum signatures, the STARK proof system, consensus algorithms, and ZK-EVM. These systems are complex, but their security goals are often well-defined.

Buterin cited examples of projects attempting to build formally verified STARK implementations, teams advancing EVM implementations written in RISC-V assembly and mathematically verified against readable reference implementations, and Byzantine fault-tolerant consensus protocols being formally specified and verified using tools like Lean.

He also acknowledged that there are boundaries.

Buterin did not describe formal verification as a silver bullet. He noted that proofs may only cover parts of the system, leaving unverified sections potentially vulnerable; developers might also overlook critical properties, or the initial formal specification itself could be flawed.

Additionally, side-channel attacks at the hardware level and other issues may bypass software implementations that are “mathematically correct.” In other words, formal verification can enhance the trustworthiness of critical modules, but it does not automatically equate to “absolutely correct” in every real-world sense.

The key system will be smaller and harder.

Buterin described a direction that splits software into two layers: one responsible for low-risk functions with limited permissions, running in an isolated environment; the other retains only the most critical core capabilities, such as Ethereum itself, the operating system kernel, or sensitive IoT infrastructure.

In his view, the smaller core system is the one that truly requires intensive protection. The computational and generative capabilities provided by AI may enable formal verification to be widely deployed for the first time. The ultimate goal is not “zero vulnerabilities,” but rather ensuring that the most critical software components are no longer primarily reliant on experience and luck, but are instead built on a more verifiable foundation.

Disclaimer: The information on this page may have been obtained from third parties and does not necessarily reflect the views or opinions of KuCoin. This content is provided for general informational purposes only, without any representation or warranty of any kind, nor shall it be construed as financial or investment advice. KuCoin shall not be liable for any errors or omissions, or for any outcomes resulting from the use of this information. Investments in digital assets can be risky. Please carefully evaluate the risks of a product and your risk tolerance based on your own financial circumstances. For more information, please refer to our Terms of Use and Risk Disclosure.