SDSignal Desk

Gates bets AI-written code will fix security in six years. The firmware in hospital basements won't wait

· Signal Desk newsroom

Analysis of reporting by The Decoder. How we work

Image: The Decoder

Gates is right that the next few years belong to attackers. His cure, cleaner AI-written software, does little for the old, unpatchable machines that banks and hospitals actually run on.

Key takeaways

  • In an interview with The Economist, Bill Gates said AI-generated code should replace insecure human-written code within five or six years and help restore stability to cybersecurity, according to The Decoder.
  • Until then, he expects successful attacks by AI agents to be inevitable and to make headlines every week, with banks, hospitals and critical infrastructure facing attacks they cannot always stop.
  • Gates names open-weight models as the biggest risk and argues powerful models should stay free to use only on platforms where operators can catch attempts to strip safeguards.
  • In an open letter to Congress, he puts AI first on a seven-point agenda for lawmakers' first 100 days beginning in January, calling for better defensive tools, stronger isolation of critical infrastructure and an AI-powered early warning system against autonomous attack agents like ARTEX.
  • He also wants a U.S.-China push toward a global oversight standard, plus air and wastewater monitoring and blood testing to catch biological attacks early.

Why it matters

Bill Gates has been talking about AI risk all year, but this is the most specific timeline he has put on the cyber side of it. In his interview with The Economist, as The Decoder recounts it, he sees two phases. In the long run, AI-generated code replaces the buggy human-written software that attackers live on, and security stabilizes. That takes five or six years. In the short run, autonomous attack agents win often enough that a successful attack makes news every week, and the targets are the places that can least afford downtime: banks, hospitals, critical infrastructure.

That framing deserves attention because it is honest about the order of events. Most optimistic takes on AI security skip straight to the happy ending, where models find and fix every bug. Gates puts the pain first and the fix second, and he says plainly that defenders will not always be able to stop what is coming. Coming from someone who spent decades running the company whose software sat on most of the world's desks, that is not a casual prediction.

The gap is already showing up in our coverage

None of this reads as hypothetical anymore. Gates name-checks ARTEX, the open-source attack platform the College Board said its breach bore the markings of when it disclosed exposed SAT and AP account data (College Board breach). DoorDash said this week its November intruders used automated AI tools (DoorDash breach). Britain's prime minister attributed the attack on the Department for Work and Pensions to AI-enabled tooling (DWP attack). And the FBI has launched a 90-day prevention campaign, Countershift, across all 55 field offices because it expects attacks to keep getting faster and broader (FBI Countershift).

So when Gates predicts weekly headlines, he is describing a trend line that already exists. The useful question is not whether he is right about the near term. It is whether his long-term fix actually reaches the systems now getting hit.

Better code does not reach the basement

Here is where the optimism gets thin. AI writing safer code helps new software and software that gets rewritten. It does far less for the enormous installed base of equipment that nobody rewrites. Satya Nadella made exactly this point at DealBook last month, saying much critical infrastructure, including firmware, chillers and HVAC systems, is unpatchable yet connected to the internet (Nadella on unpatchable infrastructure). Hospitals are full of devices like that. So are bank branches and water plants.

Gates seems to know this, which is why his letter to Congress asks for stronger isolation of critical infrastructure rather than just better code. That is the right instinct and probably the more important half of his agenda. Taking a device off the open internet is cheaper and faster than waiting for a model to rewrite its firmware. The five-or-six-year clock only runs for the parts of the stack that get replaced. For everything else, segmentation and early warning are the real defense, and they cost money that smaller hospitals and county systems often do not have.

There is also a quieter assumption in the AI-code argument: that defenders adopt the tools as fast as attackers do. Attackers need one working exploit. Defenders need every system rewritten, tested and deployed without breaking anything. Nadella also warned that patching straight into production under active exploitation creates its own instability. A world where AI finds bugs faster than institutions can safely ship fixes is not stable yet, even if the code being written today is better.

The open-weight question is the real fight

Gates calls open-weight models the biggest risk because anyone can copy them and run them outside their developer's oversight. His proposed compromise, which he also floated on Decoder in October (Gates on 20 tumultuous years), is that powerful models can stay free to use and customize, but only on platforms where operators can catch attempts to remove cyber and bio safeguards. The Decoder notes China's standards body TC260 has separately warned that safeguards in open models can be removed or bypassed, a process known as abliteration.

We are sympathetic to the concern and skeptical of the mechanism. Evaluations reported by WIRED found an open-weight DeepSeek model completing 73% of simulated intrusion tasks against 81% for OpenAI's gated Daybreak, at a fraction of the token cost (open models and hacking). The capability is already out there. A platform-only rule would constrain law-abiding researchers and companies far more than it would constrain anyone already willing to run stolen or stripped weights. And as MIT Technology Review laid out, the open-model debate has commercial stakes on every side (open models' benefits and risks). Gates' hope that China cooperates because it faces the same cyber and bioterror risks is reasonable in principle. It is also the kind of agreement that has taken decades in other domains.

Our view: the defensive half of Gates' agenda, early warning, isolation, better tools for under-resourced operators, can start in January and would help no matter how the open-model fight ends. The access-control half is a much longer negotiation, and it should not be allowed to delay the parts that work now.

The rest of the letter

The cyber section is one piece of a broader letter. Gates argues AI is spreading faster than the PC did because it runs on hardware people already own and speaks everyday language. He backs regulatory proposals from Dario Amodei and from Sam Altman and Greg Brockman, calls for early retraining and tax incentives that favor hiring people over automation, wants binding safety standards and age verification for AI companions used by minors, and points to adoption gaps: college graduates are nearly three times as likely to have used ChatGPT as people with a high school education or less, and rural adoption runs at about half the rate of cities and suburbs. It is a wide agenda. The cyber pieces are the ones with the shortest fuse.

Who it affects

Hospitals and health systems
Gates names them as front-line targets during the transition, and many run legacy devices that better code will not fix.
Banks
Weekly headline attacks would test incident response and customer trust long before AI-written code improves the stack.
Open-model developers
Gates' platform-only proposal, if adopted in any form, would change how downloadable frontier models can be distributed and used.
Congress
Gates is asking for AI to top the agenda in the first 100 days beginning in January, including an AI-powered early warning system.

What to watch

  1. Whether any bill in the new Congress funds isolation and monitoring for critical infrastructure operators, not just AI research.
  2. Concrete proposals for the AI-powered early warning system Gates describes, and who would run it.
  3. Any U.S.-China discussion of shared safeguards for open-weight models, building on TC260's abliteration warning.
  4. More breach disclosures naming ARTEX or similar autonomous tooling, and whether they cluster in health care and finance.

FAQ

What timeline did Gates give?

He told The Economist that AI-generated code should replace insecure human-written code within five or six years, and that until then successful AI-agent attacks are inevitable.

Why does Gates single out open-weight models?

Because anyone can copy them and run them beyond their developers' oversight. He argues they can stay free to use only on platforms that can catch attempts to strip cyber and bio safeguards.

What is abliteration?

The Decoder describes it as removing or bypassing safeguards in open models, a risk China's standards body TC260 has warned about.

What does Gates want Congress to do on cybersecurity?

Fund better defensive tools, isolate critical infrastructure more strongly and build an AI-powered early warning system against autonomous attack agents like ARTEX.

Read the original

Continue at the source.

The Decoder

Also covering this

More on AI

All AI coverage →