AI-assisted formal verification is gaining attention as developers and security researchers look for ways to prove that software behaves as intended. Apple has found issues in its corecrypto encryption library that other testing methods might not have uncovered, while open-source maintainers, startups and established verification firms are exploring how artificial intelligence and mathematical tools can expand the field without creating unwarranted confidence.
Apple takes a cautious approach to verified code
Earlier this year, Apple’s security team said that some issues found through formal testing of its corecrypto library, which is used for encryption, could not have been discovered through other methods. The company also said it must be “conservative” when adding new code to corecrypto so that the library can continue to receive adequate review.
Two cybersecurity leaders at major companies who have not formally reviewed the code said they do not know whether automation will provide meaningful value. However, the executives, who were not authorized to speak publicly, said they could imagine paying major AI labs for “verified” code generated by AI.
AI tools enter open-source verification
Developers of open-source projects that underpin many applications are increasingly experimenting with AI-powered verification. The Beneficial AI Foundation used a grant from Anthropic to verify the same encryption code that Sun verified this year at Stanford University.
Michael Rosenberg, curator of the library known as Curve25519-dalek, hopes to find sustainable funding for continued validation work. “But we have no idea how that will happen, and we certainly shouldn’t rely on the goodwill of AI companies,” he says.
Some startups seeking to expand verification are still unsure whether to offer their tools directly to customers or through intermediaries such as Anthropic. Their broad plan is to use AI to automate much of the work involved in defining how a program should operate.
For example, a specification for a data table could require that it contain the same items before and after sorting, but in a different order. Additional automation, which may not involve AI, can then convert the code into a format that mathematical tools such as Lean, Rocq and Isabelle can use to check whether it meets its specification.
Startups target security risks from AI
Madan Musuvathi is another recent entrant to the formal verification industry. After spending more than 20 years at Microsoft Research, he left to found the startup Truidic. Incidents such as the Hugging Face hack by OpenAI convinced him that his research needed to be commercialized more urgently.
“AI in the hands of an attacker can be very powerful,” Msvati says, while verification “makes it safe and secure for everyone, everywhere.”
Demand outpaces established verification firms
Proofcraft, one of the few companies that has offered traditional verification for many years, says rising interest in the technology has brought an influx of inquiries from potential customers. CEO June Andronic and lead researcher Gerwin Klein say demand is already greater than what the company and its competitors can provide.
At the same time, they are concerned that specifications generated by AI could create “unwarranted confidence” in verification results. Validators also want to preserve the satisfaction they get from the work. Klein describes it as “pretty addictive, like a puzzle game.” If the approach succeeds, he expects to have more solutions than ever before.
Source: www.wired.com


