Blog

The Insecurity Tax

AI is becoming the tax collector. Who will receive the bill?

In the space of five days in November, Americans got a lesson in how much of our lives depend on software. On November 12, a Microsoft outage (opens in a new tab) cut off email for schools, hospitals, courts, banks, and governments in more than 70 countries. The next afternoon, data flooded the communications network of the Federal Aviation Administration (FAA), which then halted departures nationwide (opens in a new tab) for nearly five hours. On November 16, a software bug (opens in a new tab) disrupted banking at JPMorgan Chase, and United Airlines (opens in a new tab) halted departures after a system outage. None of these was a cyberattack.

Nor is there evidence that AI caused any of them. In fact, we know only what the companies and agencies chose to tell us, because no independent body investigates failures like these. But together they showed how much of our lives runs on software, and how easily it breaks.

Then, on November 17, researchers at the security firm Calif disclosed (opens in a new tab) a memory-safety defect in Java, the programming language behind much of the software that banks, airlines, and hospitals run. The defect, in which the program writes data past the space set aside for it, was in the code Java uses to decode Base64, a common way to send data as text. Calif’s researcher said OpenAI’s coding tool helped him find the defect in about an hour and build a working attack in two more, for less than $200. Oracle released fixed versions (opens in a new tab) that afternoon, and the Cybersecurity and Infrastructure Security Agency (CISA) urged organizations (opens in a new tab) to install them immediately. A month earlier, researchers found the same kind of error in the code underneath PHP (opens in a new tab), the language behind many websites. Memory-safety errors are among the oldest mistakes in software. The organizations running this software didn’t write the defective code, but they will pay for it anyway, in overtime, emergency downtime, and the chance that the fix itself breaks something else.

We have seen this before. On May 12, 2017, the WannaCry ransomware shut down computers across England’s hospitals and disrupted at least 81 National Health Service (NHS) trusts (opens in a new tab). More than 19,000 appointments were canceled. In five areas, emergency departments sent patients elsewhere. The Department of Health and Social Care later put the cost to the NHS at about £92 million (opens in a new tab). The patients and staff who paid that bill had no part in the decisions that produced it. WannaCry spread through a memory-safety defect in Windows, a kind of error security researchers had warned about for decades. Yet much of the debate afterward focused on the hospitals that hadn’t installed the update Microsoft released two months earlier.

We call this the insecurity tax: the recurring cost of preventable software failures, paid by people far removed from the companies that made the engineering decisions. We have been paying it for a long time, and one week in November showed how high the bill has grown. AI is now making the tax faster and easier to collect. Tools that write code, find weaknesses, and act inside systems can raise the rate we pay, or help bring it down. Whether AI raises the tax or lowers it depends less on the technology itself than on what we require of the companies that build software.

The dangers were well understood

In 1948, the surgeon Fletcher Woodward published a criticism (opens in a new tab) of automotive engineering. Having treated crash victims, he described how better car design could prevent much of the suffering he saw. He asked how much more death and injury the public would tolerate before demanding that manufacturers change.

It took nearly two more decades for the federal government to set comprehensive vehicle safety standards. In the meantime, the auto industry called for better roads and driver education. Both helped. Between 1948 and 1966, the death rate per mile driven fell by more than a quarter (opens in a new tab). But Americans drove so many more miles that the number of people killed each year rose by about two-thirds, from about 31,000 to nearly 51,000. Ralph Nader’s Unsafe at Any Speed, published in 1965, made the manufacturers’ position politically untenable. Nader argued that drivers’ responsibilities did not excuse manufacturers from their own: people would make mistakes, and cars could be designed to make those mistakes less deadly. The next year, Congress gave the federal government authority to set and enforce vehicle safety standards.

We have yet to apply that principle consistently to software.

The defect WannaCry exploited was a buffer overflow: the software wrote data past the end of the space set aside for it. The code was part of an old Windows feature for sharing files, written when programmers had few practical alternatives to languages that make them track memory by hand. Old code sticks around: nearly a third of websites that use PHP (opens in a new tab) still run version 7 or older, which the PHP project no longer updates. But the same mistake keeps showing up in new software. Java’s fast Base64 decoder, written in 2021 (opens in a new tab), made the same kind of mistake as the Windows code WannaCry exploited.

Languages like C and C++ leave programmers responsible for keeping data inside its boundaries, something memory-safe languages can enforce. Testing helps, but it doesn’t catch every mistake. In 2019, Microsoft reported (opens in a new tab) that about 70 percent of the security flaws it fixes each year were memory-safety errors, and Google’s Chrome team later found the same share among (opens in a new tab) its serious security bugs. After Google began adding Rust, a memory-safe language, to Android in 2021, memory-safety errors fell below 20 percent (opens in a new tab) of Android’s security flaws by 2025. Yet nearly a decade after WannaCry, and 30 years after the hacker magazine Phrack published a detailed guide (opens in a new tab) to exploiting these errors, manufacturers still ship new software containing them.

By the time WannaCry reached the NHS, the danger had passed through a chain of decisions. Software containing the defect had been built, sold, and installed in systems used to deliver medical care. Once the defect was discovered, the job of containing it fell to the hospitals. They had to find affected computers, install the fix, and make sure their clinical systems still worked, which is no quick or easy task. “The hospitals should have patched” is often where the story ends. Stopping there leaves the original engineering failure, and the chance to prevent that kind of failure, unexamined. The same is true of blaming website operators still running old versions of PHP.

Who pays for insecure software?

Drivers must maintain their cars and respond to recalls. But manufacturers also have a duty to prevent foreseeable dangers in the first place. A recall doesn’t explain how a defect got into production. The National Highway Traffic Safety Administration (NHTSA), though, studies failures and turns what it learns into safety standards, so the next model is less likely to repeat them. In software, we have built an elaborate system for responding to defects after they reach customers, and almost nothing that feeds those lessons back into the next product. No general U.S. law requires manufacturers to prevent, or even to report, the recurring kinds of failure that make those responses necessary.

That comparison invites two common objections. The first is that hospitals hit by WannaCry had two months to install Microsoft’s update, and many websites still run versions of PHP that no one supports. But installing an update isn’t like flipping a switch. A hospital has to find every affected machine, test the update against the clinical systems that run on it, and schedule downtime around patient care. November’s FAA ground stop, which the agency’s initial investigation linked to a site where its contractor had been installing a new router, showed how a routine change to a working system can spread across a whole network. Every emergency update a manufacturer releases is another risk to an operator’s ability to deliver essential services.

The second objection is that PHP and the core of Java are open source: their code is free for anyone to use. So who is responsible? The companies that build that code into products and sell them. Ford doesn’t make its own airbags. When Takata’s airbag inflators began rupturing and killing people, federal law treated a defect in a car’s original equipment (opens in a new tab) as a defect in the car. Nineteen automakers, Ford among them, had to notify owners and replace (opens in a new tab) about 67 million inflators. Ford asked to be excused from one of those recalls, and in 2021 NHTSA said no (opens in a new tab). The company that chose the part and sold the car could not tell its customers to take it up with the supplier.

Without accountability, the insecurity tax keeps coming due. It is paid in emergency technical work and interrupted operations, and in canceled appointments, diverted patients, and exhausted staff. We buy more security products, hire specialists, buy insurance, and train employees to work around systems that are unsafe unless someone keeps intervening. Other industries are expected to prevent the dangers they know about. Software manufacturers mostly are not. The security field has pointed to the answer for a long time. In 2007, Steve Christey of MITRE described a set of “unforgivable vulnerabilities (opens in a new tab)”: easy-to-find errors that shouldn’t appear in software built and tested with reasonable attention to security. Almost two decades later, Britain’s National Cyber Security Centre found that most still existed (opens in a new tab) in some form. MITRE’s annual list (opens in a new tab) of the most dangerous software weaknesses shows the same kinds year after year, including memory-safety errors and flaws that let software mistake an attacker’s typed text for instructions. Not all the dangers are in the code. A manufacturer can ship a product with unnecessarily broad permissions, exposed administrative controls, or security features that customers must find and turn on themselves. When those choices contribute to an incident, the explanation often becomes “misconfiguration.” The word blames the customer and leaves the manufacturer’s design and development decisions unquestioned. Meanwhile, buyers can’t tell the difference. A hospital or water utility can compare prices and features, but it usually can’t see whether a product contains these dangers. When buyers can’t identify safer products, manufacturers have less reason to compete on safety. And when much of the cost of failure falls on someone else, prevention gets less investment than it deserves.

The limits of asking nicely

At CISA, we led the Secure by Design initiative, an effort to shift that responsibility. The premise was that manufacturers should take ownership of their customers’ security outcomes, and that products should be safe to use as they come out of the box. In May 2024, we launched a voluntary pledge (opens in a new tab) asking manufacturers to make measurable progress toward seven security goals, along with Secure by Demand guidance (opens in a new tab) that gave customers better questions to ask.

The pledge showed us the limits of voluntary commitments. A pledge can’t create a legal duty to prevent failures or to compensate people harmed by them. It can encourage one company to change, but it can’t hold that company’s competitors to the same standard. A manufacturer that invests in prevention still competes against ones that leave customers to manage the risk of failure, and the market can reward the cheaper product while the bill goes elsewhere. And there is no general, enforceable safety floor for commercial software in the United States. However, the Cyber Resilience Act (opens in a new tab) in Europe puts cybersecurity obligations directly on manufacturers. Its reporting requirements took effect in September 2026, and its main requirements apply in December 2027. It also takes the airbag approach to open source: manufacturers must check the open-source components they build into their products, while people who publish open-source code without selling it are spared. Europe has already rejected the idea that software is too special to bear the obligations other products do.

AI is becoming the tax collector

For decades, we have put off the work of making software safer and asked the people who use it to live with the consequences. AI is changing that. It makes weaknesses cheaper to find and exploit. It writes more code, which can contain more of them. And it gives agents the ability to act autonomously within systems, often with broad permissions, amplifying weaknesses that are already there. The tax we have been paying is being collected faster, and from more people. In 2024, Google’s AI tool Big Sleep found a previously unknown memory-safety flaw (opens in a new tab) in a test version of SQLite, one of the most widely used pieces of software in the world, before it was released. October’s PHP defects went the other way. Researchers at Calif, Wiz, and other companies used AI to find two critical memory-safety errors that had been in PHP’s code for more than a decade, either of which could let an attacker take over a web server without a password. Wiz said (opens in a new tab) a single researcher “completed in a week what previously would have taken a world-class team months of work.” Amazon reported attempts to exploit the defects (opens in a new tab) four days before the fixes came out. When the fixes did come out, the Netherlands’ digital ID system, its main government portal, its parliament, and several hospitals took their websites offline (opens in a new tab). Denmark shut down its national school communication platform (opens in a new tab), and France put several Interior Ministry websites into maintenance (opens in a new tab). A month later, Java’s defect took an hour to find. Attackers can use the same tools. In July, AI systems that OpenAI was testing broke out of their test environment and got into parts of Hugging Face’s live systems (opens in a new tab) by combining exposed credentials with two well-known kinds of coding errors.

AI also writes more and more new code, and that code isn’t safer. In a recent study (opens in a new tab), leading AI systems wrote code with security defects in 23 percent of 250 ordinary programming tasks, even when told to write secure code and which mistakes to avoid. In November, Secure Code Warrior, a company that sells secure-coding training, had 32 AI systems (opens in a new tab) build the same web application. Every one produced more security defects per thousand lines of code than people working without AI did in a separate Stanford study, though the company notes that the two studies measured differently. Giving the AI systems detailed security rules cut their defects by 21 to 45 percent. Simply telling an AI tool to “be secure” isn’t enough; safety has to be built into how the tool works. But AI-written fixes have limits too. When researchers at 1Password asked two leading AI systems (opens in a new tab) to fix six serious, recently disclosed defects in widely used open-source software, only about one fix in four closed the hole without causing new problems. About half left the original defect open. Asked to fix a memory error in Linux, the AI tools made a new one about a third of the time: the same mistake Linux’s own maintainers had made in their first attempt, and later had to correct. AI can speed up repair, but someone still has to check the work.

Whether AI lowers the insecurity tax or raises it depends on whether preventing harm becomes more rewarding than passing its costs on to customers.

Recent federal policy doesn’t change those incentives. The June 2026 executive order (opens in a new tab) on AI asks AI developers to volunteer their most capable models for government review before release. It directs several agencies, including the National Security Agency (NSA), to build a classified test of how well those models can attack or defend computer systems. It levies no obligations on software manufacturers. Moreover, NSA is an intelligence agency, not a safety agency, and its findings are classified; its review explores what a model could do to an adversary’s systems, or to ours, not whether products built with these tools are safe for the hospitals, utilities, and families who rely on them. Safety rules for cars, planes, and medicines rest on public standards, published evidence, and agencies whose job is protecting the public. A voluntary, secret review gives buyers nothing they can see and holds no one responsible when products fail.

Congress has started to ask who should be liable, though narrowly. In October, Senators Chris Murphy and Josh Hawley announced the AI Agent Accountability Act (opens in a new tab), which would make companies that build or run AI systems that act on their own liable for damage from hacking. But the bill treats AI as the attacker. It leaves out the case at the center of this essay: software that gets attacked because its manufacturer built it with defects it knew how to prevent. If AI only helps us make software faster, without changing how it’s made, we’ll have built a more efficient way to discover dangers after customers already depend on the product.

What would change things

Operators will always need to install updates. But customers shouldn’t have to keep taking systems offline to fix the kinds of defects that manufacturers already know how to prevent. Five things would help.

First, liability that follows the ability to prevent harm. Companies that sell software into hospitals, utilities, schools, and other critical settings should be responsible when well-understood, preventable defects cause harm. That duty should scale with how the product is used, how serious a failure would be, and how feasible prevention is. Manufacturers that have dealt with recurring kinds of defects, for instance by adopting memory-safe languages and safe default settings, should have a clear way to show it. As with airbags, responsibility for open-source components should rest with the companies that build them into products and sell them, not with the volunteers who publish the code.

Second, the freedom to test. A company’s claim that it “takes security seriously” tells a hospital almost nothing. Car buyers don’t have to take the manufacturer’s word: the Insurance Institute for Highway Safety buys cars (opens in a new tab), crashes them without asking permission, and publishes the results (opens in a new tab). Software has no widely used equivalent, partly because the law discourages one. Section 1201 of the Digital Millennium Copyright Act generally makes it illegal to get around software’s technical protections, even to look for safety defects. Researchers rely on a narrow exemption that the Copyright Office must renew every three years. It does nothing about license agreements that ban testing and give manufacturers grounds to threaten the people who find their flaws. In 2024, the Copyright Office declined to extend that protection (opens in a new tab) to researchers probing AI systems, saying the barriers were in terms of service, outside its authority. Congress should make the exemption permanent and void license terms that ban good-faith testing. Independent testing and clear reporting would then let buyers tell which manufacturers invest in prevention. An update fixes one defect. Prevention addresses why it existed.

Third, collective purchasing power. Hospitals, school systems, and utilities usually negotiate separately with the same suppliers. Associations and purchasing groups could set common contract terms for safe defaults, defect disclosure, and repairs. Shared demands make it harder for manufacturers to treat safety as a special request. Group purchasing can’t replace public rules, but it can raise expectations now, while legislation remains difficult.

Fourth, institutions that learn from failure. When a car crashes or a plane goes down, investigators ask why, and their findings change how the next ones are built. NHTSA has recorded every fatal crash (opens in a new tab) on American roads since 1975, and the National Transportation Safety Board (opens in a new tab) investigates accidents independently and publishes what it finds. Software has no equivalent. The closest was the Cyber Safety Review Board (opens in a new tab), created in 2022, which never had the power to compel information and had its members dismissed in January 2025 (opens in a new tab). Software needs a permanent, independent body with that power, one that investigates major incidents, traces them back to design decisions, and publishes what it finds.

Fifth, reliable records of defects. Car manufacturers must report safety defects to NHTSA (opens in a new tab) within five business days, and the public can search those reports. Software’s closest equivalent is the Common Vulnerabilities and Exposures (CVE) Program, which gives each publicly known security flaw an ID number. But manufacturers choose whether to take part, and records are often late, incomplete, or vague about the cause. Commercial software manufacturers should be required to become CVE Numbering Authorities (opens in a new tab), the organizations authorized to issue those numbers, and to publish complete, accurate, and timely records for their own products, including the kind of error behind each one.

How long will we keep paying?

Woodward could see the consequences of car design in the injuries he treated. The consequences of insecure software are harder to see. They are diffuse: a canceled appointment, a disrupted business, a hacked account, weeks spent recovering from someone else’s preventable mistake. They are displaced onto people who had no part in the decisions that caused them. And when they do surface, attention is deflected to the attacker, or to the operator who didn’t install the update, instead of the product that let it happen. Five days in November briefly made the connection visible, as software failures cut off email, halted flights, and disrupted banking. Then Java showed how much less time we now have: operators had hours to respond instead of two months. Woodward’s warning came 18 years before the federal vehicle safety law. How long will ours come before we expect software manufacturers to prevent the dangers they already know how to prevent?

We have spent decades teaching people and institutions to live with unsafe software. AI gives us new ways to reduce that burden and new ways to multiply it. As AI becomes a more capable tax collector, the question is whether we will finally change the arrangement, or keep sending a larger bill to the patients, workers, businesses, and communities least able to prevent the harm.