HomeInício Captain's LogDiário do Capitão
← Back to logVoltar ao registo

AI is finding bugs faster than people can fix them.

A inteligência artificial está a descobrir falhas mais depressa do que as conseguimos corrigir

AI is finding bugs faster than people can fix them.

(and helping us patch them faster too)

For the last two years, the pitch for AI in software was that it would write our code and fix our bugs while we slept. This past week showed what actually happens. AI is finding bugs faster than the people who maintain the software can fix them, and at the same time, it is the only way small operators can keep up with the patching.

The first part of the story came from PostgreSQL. Version 19 was supposed to come out on schedule, but it has now slipped to November (and eight to ten features were pulled and pushed to version 20). The reason is simple. People started running AI code reviews on the new code, and the AI found more real bugs than the human developers had time to fix before the deadline.

That is good news that feels like bad news. You want the bugs found before the database ships, of course, but a machine can read a million lines of C code in an afternoon. A human team still has to read every report, write the fix, test it, and make sure the fix does not break something else.

The second part of the story hit our own servers on Wednesday, October 21.

The PHP project disclosed two critical remote code execution flaws called php2shell (CVE-2026-109618 and CVE-2026-109619, rated 9.2). They had to ship the patched versions a day early because the details leaked. Later in the week, Amazon reported that their sensors caught someone trying to exploit the bug on October 17, four full days before the patch was even public.

I have been running Linux servers since Le and I started RogerLe.com in October 1996. Thirty years ago, when a bug came out, you had a few days to read the mailing list, test the update, and schedule a maintenance window. Now the window is minus four days.

When you are up against automated attacks that start before the patch exists, you have to use your own automation on the defensive side. Across our fleet, we run servers on PHP 8.3, 8.4, and 8.5 (and up until this week, we still had one old box running PHP 7.4). Here is how we handled php2shell when the news broke:

  1. Before the official packages were ready everywhere, I had one of my AI crew roll out the recommended mitigations across all of our servers right away so we were not sitting exposed.
  2. We set up an automated watcher on the repositories to watch for the patched packages, pull the updates (8.3.36, 8.4.27, and 8.5.12), and restart php-fpm the moment the fixes dropped.
  3. We finally retired that last PHP 7.4 server. Because 7.4 is end-of-life, it did not get an official patch for php2shell, and keeping an unpatched server around today is asking for trouble.

It is funny to hear people say that AI is about to replace system administrators. What it actually did is speed up both sides of the clock. AI is handing the PostgreSQL team more bug reports than they have hours in the day to fix, and helping attackers probe PHP servers four days early.

At the same time, it let me apply mitigations across our whole fleet and set up a watcher to install the real patches the minute they hit the repo. The job is not going away, you just cannot do it by hand anymore.

(mas também nos ajuda a atualizar mais rápido)

Nos últimos dois anos, a promessa da inteligência artificial no software era que ia escrever o nosso código e corrigir os nossos erros enquanto dormíamos. Esta última semana mostrou o que realmente acontece. A IA está a encontrar falhas mais depressa do que as pessoas que mantêm o software as conseguem corrigir e, ao mesmo tempo, tornou-se a única forma de os pequenos operadores acompanharem o ritmo das atualizações.

A primeira parte da história veio do PostgreSQL. A versão 19 devia sair dentro do prazo, mas foi adiada para novembro (e entre oito a dez funcionalidades foram retiradas e empurradas para a versão 20). A razão é simples. Começaram a usar revisões de código assistidas por IA no código novo, e a IA encontrou mais erros reais do que a equipa humana tinha tempo para corrigir antes da data limite.

É uma boa notícia que sabe a má notícia. Queremos que os erros sejam descobertos antes de a base de dados sair, claro, mas uma máquina consegue ler um milhão de linhas de código C numa tarde. Uma equipa humana continua a ter de ler cada relatório, escrever a correção, testar tudo e garantir que a emenda não estraga outra coisa qualquer.

A segunda parte da história bateu à porta dos nossos próprios servidores na quarta-feira, 21 de outubro.

O projeto PHP divulgou duas falhas críticas de execução remota de código chamadas php2shell (CVE-2026-109618 e CVE-2026-109619, com gravidade 9.2). Tiveram de lançar as versões corrigidas um dia mais cedo porque os detalhes vieram a público antes do tempo. Mais tarde nessa semana, a Amazon informou que os seus sensores apanharam alguém a tentar explorar a falha no dia 17 de outubro, quatro dias inteiros antes de a atualização ser pública.

Administro servidores Linux desde que a Le e eu começámos a RogerLe.com em outubro de 1996. Há trinta anos, quando saía um erro destes, tínhamos alguns dias para ler a lista de correio, testar a atualização e marcar uma janela de manutenção. Hoje a janela é de menos quatro dias.

Quando estamos contra ataques automáticos que começam antes de a correção existir, temos de usar a nossa própria automação do lado da defesa. Na nossa frota, temos servidores com PHP 8.3, 8.4 e 8.5 (e, até esta semana, ainda tínhamos uma máquina antiga com PHP 7.4). Foi assim que lidámos com o php2shell quando a notícia saiu:

  1. Antes de os pacotes oficiais estarem prontos em todo o lado, pedi a um dos elementos da minha equipa de IA para aplicar de imediato as mitigações recomendadas em todos os servidores, para não ficarmos expostos.
  2. Configurámos um vigilante automático nos repositórios para esperar pelos pacotes corrigidos, instalar as atualizações (8.3.36, 8.4.27 e 8.5.12) e reiniciar o php-fpm no exato minuto em que saíssem.
  3. Reformámos finalmente aquele último servidor com PHP 7.4. Como o 7.4 já chegou ao fim de vida, não recebeu correção oficial para o php2shell, e manter um servidor sem atualização hoje em dia é pedir problemas.

Tem graça ouvir dizer que a IA vai substituir os administradores de sistemas. O que fez, na verdade, foi acelerar os dois lados do relógio. A IA está a entregar à equipa do PostgreSQL mais relatórios de erros do que as horas que o dia tem para os resolver, e a ajudar atacantes a sondar servidores PHP quatro dias antes do tempo.

Ao mesmo tempo, permitiu-me aplicar mitigações em toda a nossa frota e deixar um vigilante pronto para instalar as correções reais no minuto em que chegaram ao repositório. O trabalho não vai desaparecer, só já não dá para o fazer à mão.

← 30 Years of RogerLe.com From Three Years to 64 Days: My SSL Certificates Since 1996 →