Formal methods as a path toward better cybersecurity – Brookings Institution
Five years ago, cybersecurity researchers accomplished a rare feat. A team at the Pentagons far-out research arm, the Defense Advanced Research Projects Agency (DARPA), loaded special software into a helicopters flight control computer. Then they invited expert hackers to break into the software. After repeated attempts, the flight control system stood strong against all attempts to gain unauthorized control.
This outcome was unusual. Experienced hackers who are given direct, privileged access to software almost always find a way in. The reason is simple. Decades after the birth of computer programming, modern software products are riddled with flaws, many of which create security vulnerabilities that attackers can easily exploit to slip through digital defenses. This is why reducing the error rate in software code is essential to turn the tide against relentless computer criminals and foreign adversaries that steal wealth and menace critical infrastructure with relative impunity.
How was DARPAs custom flight control software able to shrug off its assailants? The researchers turned to formal methods, a frequently overlooked group of technologies that programmers can use to create ultra-secure, ultra-reliable software. DARPAs experiment is one of several examples that underscore the potential for formal methods to remake software security. They herald a not-too-distant future when radically safer, more secure software can allow us to embrace other emerging technologies without catastrophic consequences.
Before it is ready for primetime, any piece of software should be able to satisfy at least two criteria:
Because most customers use software as it is intended, software programmers devote most of their attention to satisfying the first criteria: ensuring the software works properly under normal conditions. This is relatively easy to evaluate through user feedback, as customers tend to be vocal when a piece of software obviously misbehaves or omits an advertised feature.
The second dimension is much trickierand the bane of the cybersecurity community. Virtually all software code contains defects that can cause the software to fail in some way. Humans write software, and our species is naturally prone to mistakes. Larger and more complex software applications multiply opportunities for committing and overlooking errors by orders of magnitude. Human minds excel at creating highly capable software (the first criteria), but they are ill-equipped to identify and eliminate software defects.One defect might be harmless, while another might crash the entire program. Others can lead to security failures. These happen when human attackers purposefully exploit defects to cause a specific kind of software failure that achieves their own objectives, such as leaking private data or giving control to them, the attacker.
The software industry has coalesced around two methods for reducing the error rate in software code. The first is simply education and knowledge exchange. Experts collaborate on a global scale to share information about software vulnerabilities and how to fix them. Yet as computing has matured, this body of knowledge has become overwhelming. It is extremely challenging to know when to apply lessons learned and how to verify implementation. Another common method to improve software quality is intensive testing. Yet this can consume massive resources, and most testing only indicates the presence of defectsit cannot prove the absence of them. Given the context of cybersecurity, where attackers actively hunt for any possible flaw that designers overlooked, these two methods have proved insufficient in solving software security.
Formal methods encompass a group of technologies that aim to manage these problems much more effectively by supplementing human resources with computational resources. In the 1970s, when it became clear that computers would become the foundation of military power, the defense community realized it needed greater assurance that its software was of the highest quality and free of security issues. Early programmers knew they could not rely on human judgment alone to ferret out all possible security vulnerabilities. They needed ways to prove that critical pieces of software would not crash by accident or contain unknown security flaws that attackers could exploit. They wanted to maximize confidence that a specific software application would do only what its authorized users intended, and nothing else.
What is the best way to prove an objective truth? Math and logic. The pioneers of formal methods adapted mathematical logic to construct abstract representations of software (I want this program to do X) and then use advanced mathematical theorems to prove that the software code they wrote would only accomplish X.
The term formal methods evolved over time, and today it represents a spectrum of sophistication, from relatively simple instructions for planning a software project to automated programs that function like a super spell-check for code. The method of analysis varies between different formal methods, but it is largely automated and ideally carried out with mathematical precision. Lightweight formal methods are already in widespread use today. Static type theory, for example, has become a standard feature in several programming languages. These methods require no specialized knowledge to use and provide low-cost protection against common software faults.
More sophisticated formal methods can prevent more complex problems. Formal verification is one such example and it enables programmers to prove that their software does not contain certain errors and behaves exactly according to specification. These more advanced methods tend to require specialized knowledge to apply, but with recent advances this bar has been coming down. (For a more detailed description of different types of formal methods, curious readers should read pages 6-9 of this report by the National Institute of Standards and Technology.)
Problems with formal methods and recent innovation
Like the neural networks that revolutionized artificial intelligence, formal methods are a technology undergoing a renaissance after spending decades in the shadows. As software became more complicated, applying the more advanced tools for proving codethe ones that could provide the highest assurance that security vulnerabilities were absentbecame exponentially more difficult. As the National Institute of Standards and Technology explains, formal methods developed a reputation as taking far too long, in machine time, person years and project time, and requiring a PhD in computer science and mathematics to use them. For a long time, formal methods were relegated to mission-critical use cases, such as nuclear weaponry or automotive systems, where designers were willing to devote immense time and resources to creating error free software. But research into formal methods continued, led by a dedicated corps of experts in academia, federal research institutions, and a handful of specialized companies.
More recent developments, including DARPAs helicopter project, suggest formal methods are poised to remake how we design software and transform cybersecurity. In November 2016, the National Institute for Standards and Technology delivered a comprehensive report to the White House recommending alternative ways to achieve a dramatic reduction in software vulnerabilities. Devoting six pages to formal methods, the report noted that formal methods have become mainstream in many behind-the-scenes applications and show significant promise for both building better software and for supporting better testing.
Leading technology companies have quietly rolled out formal methods in their core businesses. Amazon Web Services (AWS), arguably one of the most important infrastructure providers on the planet, has an entire team that uses formal methods to create provable security for its customers. Facebook has shown how formal verification techniques can be integrated into a move fast and break things approach with its INFER system, which continuously verifies the code in every update for its mobile applications. Microsoft has also stood up its own dedicated team on formal verification. As one team member explained last year, Proving theorems about programs has been a dream of computer science for the last 60 years or more, and were finally able to do this at the scale required for an important, widely deployed security-critical piece of software. And it is not just Big Tech. Specialty companies like Galois, Synopsys, and MathWorks are creating a more competitive market for sophisticated formal methods solutions that companies of various sizes can put to work.
Looking forward, the National Science Foundations ongoing DeepSpec Expedition in Computing has demonstrated the applicability of these methods to increasingly complex engineering tasks, including the development of entire operating systems (which tend to be much larger than single applications), database engines, memory managers, and other essential computing and software components. These successes represent a significant step forward for the field, which has long sought to find reliable, low-cost/low-time methods for engineering such components.
These clear signs of progress notwithstanding, the most sophisticated types of formal methodssuch as full-blown formal verificationare still a long way from becoming a go-to tool for the average software developer. The organizations listed above are not representative, of course, and challenges still remain to bring formal methods to the rest of the software industry. We need an ecosystem of tools, more training for working engineers, and more consensus on when to deploy which methods. We also need to begin changing the way software standards committees publish their work; instead of prose, they should begin publishing formal models that allow the application of formal methods. Lastly, we need to begin educating technology decisionmakers about these capabilities and their ramifications.
There are at least two reasons why industry and government should seize on ongoing innovations in the field and accelerate adoption.
First, unlike many cybersecurity measures, proper application of formal methods does not only drive costs up. Since formal methods reduce overall defect count in software, systems built with formal methods can require less maintenance and thus be cheaper to operate than todays ad-hoc alternatives. Additionally, further improvements in automation are expected to provide these benefits without adding significant cost to the initial engineering efforts. Whereas as most security measures drive costs and hurt profit margins, proper use of formal methods can help defeat attackers while improving the bottom line. Even where software is too complicated to use formal verificationthe most robust weapon in the formal methods arsenalmuch more basic formal methods can still lower software lifecycle costs simply by enforcing more rigorous development practices that some software developers know, but dont use.
Second, the steady drumbeat for software liability may soon change the cost calculus for software developers who have traditionally not born all the costs of unreliable, flawed software. The final report issued by Congress Cyberspace Solarium Commission recommended that Congress should pass a law establishing liability for final goods assemblers of software that contains known and unpatched vulnerabilities. Some types of formal methods offer clear opportunities to establish more objective standards of care for determining such liability.
Just one bug in one line of code
Today, we have a global software industry that frequently creates software in an ad-hoc manner, churning out products without truly knowing what is in them, how they might fail, and what will happen if they do. The situation was tolerable when software did not run the world but computing now either controls or informs nearly every aspect of the economy, politics, and social life. And because the individual components that make up a larger software program are interdependent, even a single error in any phase of the manual development processdesign, implementation, testing, evaluation, operation, maintenancecan be catastrophic. One bug in one line of code can create a security vulnerability that spans millions of computer systems, enabling data theft and digital disruption on a massive scale.
Formal methods are not the ultimate answer to cybersecurity. Even their most sophisticated manifestation, formal verification, cannot guarantee perfect security. Neither can the worlds best engineers guarantee that a skyscraper will not collapse. But through rigorous standards, objective testing, and the scientific method, they have achieved an outstanding record. By injecting similar rigor into the software industry, formal methods can, at the very least, give us much higher assurance that digital technology will behave.
Tim Carstens is an adviser at the Cyber Independent Testing Lab.David Forscey is the managing director of the Aspen Cybersecurity Group. He previously worked in the Center for Best Practices at the National Governors Association and Third Way.
Read more here:
Formal methods as a path toward better cybersecurity - Brookings Institution
- Speedrun AI Labs reveals free open source reverse engineering software tool - ARYnews.tv - November 15th, 2026 [November 15th, 2026]
- Opinion | How AI is resurrecting the free software revolution - breezejmu.org - November 13th, 2026 [November 13th, 2026]
- Sunfish Software releases FANDUST, a FREE lo-fi plugin with a Windows 98 GUI - Bedroom Producers Blog - November 13th, 2026 [November 13th, 2026]
- ShareX 22.1.0 records GIFs without FFmpeg and debuts a Photo editor - BetaNews - November 7th, 2026 [November 7th, 2026]
- A developer used AI to build 7 free Adobe alternatives, and subscription software has a new problem - How-To Geek - October 19th, 2026 [October 19th, 2026]
- HomePod is about to get free upgrade with these new features - 9to5Mac - October 19th, 2026 [October 19th, 2026]
- This Is My Favorite Microsoft 365 Replacement and Its Free on Linux, Mac and Windows - CNET - October 19th, 2026 [October 19th, 2026]
- Three New Features Are Coming to Apple HomePod With a Free Upgrade - Android Headlines - October 19th, 2026 [October 19th, 2026]
- Researchers and health professionals can apply for free software licenses for one year - Informat.ro - October 19th, 2026 [October 19th, 2026]
- Unitree Releases UniUni Swarm Control Software, Free for Its Users, Starting With H2 and G1 - Pandaily - October 19th, 2026 [October 19th, 2026]
- Adobe software dupe maker takes on Microsoft Office, releasing free versions of Word, Powerpoint, and Excel - Mashable - October 13th, 2026 [October 13th, 2026]
- From GTA V on iPhone to Free Photoshop: This AI Tool Is Upending Software - Decrypt - October 13th, 2026 [October 13th, 2026]
- You can now download vibe-coded clones of Word, Excel, and PowerPoint but users are split on whether AI is helping the industry - TechRadar - October 13th, 2026 [October 13th, 2026]
- Creator of free Adobe clones unveils open-source Microsoft Office Excel, PowerPoint, and Word replications Autodesk tools and other... - October 13th, 2026 [October 13th, 2026]
- Adobe software dupe maker takes on Microsoft Office, releasing free versions of Word, Powerpoint, and Excel - Mashable SEA - October 13th, 2026 [October 13th, 2026]
- Software Is Over: Developer Uses AI to Build Free Adobe Alternatives - Yahoo Tech - October 13th, 2026 [October 13th, 2026]
- In 1982, Steve Jobs launched Apple's 'Kids Can't Wait' school giveaway; the programme put more than 9,000 - The Times of India - October 13th, 2026 [October 13th, 2026]
- Someone just rebuilt Adobe Creative Cloud with AI then gave it away for free - Creative Bloq - October 8th, 2026 [October 8th, 2026]
- "Software is over": Developer uses AI to build free Adobe clones after frustration with cancellation fees - TechSpot - October 8th, 2026 [October 8th, 2026]
- Solo developer rebuilds Adobe Creative Suite in Rust using Claude, releases it free to all targets 100% parity in one month despite piracy claims and... - October 8th, 2026 [October 8th, 2026]
- Someone Rebuilt Free, Open-Source Versions of Photoshop, Premiere, and Lightroom Using AI - PetaPixel - October 8th, 2026 [October 8th, 2026]
- Save the date: free webinar on the software-defined broadcast facility - TVBEurope - October 8th, 2026 [October 8th, 2026]
- Software is over: Bold AI developer takes aim at Adobe with open source clones - Ars Technica - October 8th, 2026 [October 8th, 2026]
- ArtCraft: Free Open Source Adobe Alternatives Built With AI - Tbreak UAE - October 8th, 2026 [October 8th, 2026]
- FIA to strengthen software testing after F1 cars stopped on track in Malaysia - Winnipeg Free Press - October 8th, 2026 [October 8th, 2026]
- FlightScopes Free Golf Software Update Gets at the Work Between Shots - Athlon Sports - October 6th, 2026 [October 6th, 2026]
- Optimus acquires SmartHop, will give freight software away for free - Dealroom - October 6th, 2026 [October 6th, 2026]
- All Ratchet and Clank PS3 games can now be played crash-free on RPCS3 - OC3D - October 6th, 2026 [October 6th, 2026]
- Software sector outlook: M&A hopes, cheap valuations, and rising free cash flow - Investing.com Canada - October 6th, 2026 [October 6th, 2026]
- This Android browser now gives you a free eSIM with 3GB of data when you travel - Android Central - October 2nd, 2026 [October 2nd, 2026]
- Nvidia launches OpenShell and Sentry to stop AI agents acting outside their limits - tech-ish.com - October 2nd, 2026 [October 2nd, 2026]
- These smart glasses have been recalled for overheating temples causing burns - The Verge - September 26th, 2026 [September 26th, 2026]
- Affinitys biggest photography update yet but dont panic, the image editor is still free! - Digital Camera World - September 26th, 2026 [September 26th, 2026]
- MemBrowse continuously tracks firmware memory footprint, is free for open-source projects - CNX Software - September 26th, 2026 [September 26th, 2026]
- 2026 Special edition - Free/libre and open source software: Visions of openness from the Global South - Association for Progressive Communications - September 13th, 2026 [September 13th, 2026]
- Millions of students can now get access to a free year of Kiro from AWS - About Amazon - September 13th, 2026 [September 13th, 2026]
- Impact Cloud+ Emerges as the Nations Preferred Subscription-Free Software for LED Sign Buyers - EIN Presswire - September 13th, 2026 [September 13th, 2026]
- Switzerland is trialing moving away from Microsoft towards free and open-source software - PC Gamer - September 13th, 2026 [September 13th, 2026]
- Eclipse Foundation Releases Free Toolkit to Help SMEs Prepare for the EU Cyber Resilience Act - Yahoo Finance UK - September 13th, 2026 [September 13th, 2026]
- Richard Stallman: New York Autodidact, Free-Software Pioneer, and Founder of the GNU Project and the Free Software Foundation - bbntimes.com - September 8th, 2026 [September 8th, 2026]
- This free app could become the Blender of texture painting software - Creative Bloq - September 8th, 2026 [September 8th, 2026]
- Version 4.0.0 of the free audio editing software 'Audacity' has been released. - GIGAZINE - September 8th, 2026 [September 8th, 2026]
- 5 reasons Linux is the most valuable software in the world (even though it's free) - How-To Geek - August 31st, 2026 [August 31st, 2026]
- 8 Best Free Antivirus Software in 2026: Windows, Mac & Mobile - memeburn.com - August 18th, 2026 [August 18th, 2026]
- Can Free Design Software Help You Remodel a Kitchen Without a Designer? This Homeowner Put It to the Test - The Spruce - August 18th, 2026 [August 18th, 2026]
- Looking for a Free Microsoft 365 Replacement? Try This Program - CNET - August 18th, 2026 [August 18th, 2026]
- Debian Celebrates 33 Years of Free and Open Source Software - Linuxiac - August 18th, 2026 [August 18th, 2026]
- 10 Best Video Editing Software in 2026: Free & Paid Compared - memeburn.com - August 18th, 2026 [August 18th, 2026]
- I found the perfect free web app. Then I checked what it was doing - PCWorld - August 1st, 2026 [August 1st, 2026]
- Foundation Software and PAS, Inc. Address Construction Compensation Trends and Pay Practices in Free Webinar - voiceofalexandria.com - August 1st, 2026 [August 1st, 2026]
- I added head tracking to my games with a webcam and free software - MakeUseOf - August 1st, 2026 [August 1st, 2026]
- I replaced Lightroom with an open-source alternative, and Adobe's subscription suddenly felt pointless - XDA - August 1st, 2026 [August 1st, 2026]
- Govt to give 100,000 youths free access to AI software - Free Malaysia Today - August 1st, 2026 [August 1st, 2026]
- Why open-source software can be both good and bad - New Scientist - July 26th, 2026 [July 26th, 2026]
- What is open-source AI? A software engineering researcher explains - The Conversation - July 24th, 2026 [July 24th, 2026]
- This free, open-source app changed the way I think about paid software - How-To Geek - July 24th, 2026 [July 24th, 2026]
- Nvidias Brilliant Freemium Software Hook is Why Im Loading Up for The Long Term - 24/7 Wall St. - July 24th, 2026 [July 24th, 2026]
- The legislation would bar the sale of vehicles or software significantly controlled by Chinese owners but it may need changes before passage. See link... - July 24th, 2026 [July 24th, 2026]
- Are Free Software Bundles Becoming the Best Way to Sell Chromebooks? - About Chromebooks - July 24th, 2026 [July 24th, 2026]
- Free Ink is an open ecosystem for e-readers, comprised of open-source projects developing software, firmware, and hardware. - GIGAZINE - July 24th, 2026 [July 24th, 2026]
- ZML Takes On Nvidia Lock In With Free AI Software - Open Source For You - July 9th, 2026 [July 9th, 2026]
- LibreOffice 26.8 Beta Released For Improving This Free Software Office Suite - Phoronix - July 9th, 2026 [July 9th, 2026]
- Toybox Audio Thump One: hard-hitting free synth plugin gets a wild update 3.0 (beta) - synth anatomy - July 9th, 2026 [July 9th, 2026]
- Belm do Par lends its name to the new version of the free software QGIS - MundoGEO - July 9th, 2026 [July 9th, 2026]
- This free software aims to turn Sony headphones into a head tracker for '200+ PC games' - inkl - July 9th, 2026 [July 9th, 2026]
- Tilr TetraOP: a free 4OP FM and wavetable Synthesizer plugin (mac, linux, win) - synth anatomy - July 9th, 2026 [July 9th, 2026]
- If you have Sony headphones, you may be able to use them as a headtracker with this free software - PC Gamer - July 7th, 2026 [July 7th, 2026]
- IGV Investors: Watch Oracles Free Cash Flow as the Real Test of AI Capex Economics - 24/7 Wall St. - July 1st, 2026 [July 1st, 2026]
- 5 free and open-source software (FOSS) to replace Microsoft, Google, and big tech - How-To Geek - July 1st, 2026 [July 1st, 2026]
- Oxyfinz Unveils Free Software Initiative to Bridge the UAE Wealth Management Technology Gap - The Fintech Times - July 1st, 2026 [July 1st, 2026]
- FREE TO READ | Cracking the code to using enterprise software - TimesLIVE - July 1st, 2026 [July 1st, 2026]
- Ag View Solutions Offers Farm Profit Manager Software for Free - AG INFORMATION NETWORK OF THE WEST - June 24th, 2026 [June 24th, 2026]
- From free speech to software design: How experts are reading the Delhi HCs Telegram ruling - MediaNama - June 24th, 2026 [June 24th, 2026]
- Year of free HPE software a step in the correct direction in VMware rivalry - Ars Technica - June 22nd, 2026 [June 22nd, 2026]
- Free Software Foundation Europe pushes EU to force Google to allow AI uninstalls on Android - Neowin - June 22nd, 2026 [June 22nd, 2026]
- Smokeball Offers Free Software Access To Over 900,000 Attys - Law360 - June 16th, 2026 [June 16th, 2026]
- Foundation Software and Sax LLP to Host Free Webinar on Job Cost Reporting for Better Profit Management - ACCESS Newswire - June 16th, 2026 [June 16th, 2026]
- Palantir (PLTR): Debt-Free AI Growth Shows Why Its Software Story Still Has Financial Firepower - Yahoo Finance - June 16th, 2026 [June 16th, 2026]
- Foundation Software and Sax LLP to Host Free Webinar on Job Cost Reporting for Better Profit Management - Bluefield Daily Telegraph - June 16th, 2026 [June 16th, 2026]
- Massive's Pioneering 'Lord Of The Rings' Crowd Simulation Software Is Now Free To Use - Engadget - May 29th, 2026 [May 29th, 2026]