The Machines That Found Our Mistakes
Not long ago, AI struggled to draw human hands. Today, it helps researchers uncover vulnerabilities hidden in software for years. What if the machines finding our mistakes could also help us build a safer Internet?
It was an ordinary Wednesday evening.
A server needed a few updates.
Nothing unusual. No alarms, no flashing red lights, no dramatic messages announcing that the Internet was about to collapse.
Just a familiar command:
sudo apt update
Nine packages were waiting.
Two versions of PHP, a handful of extensions, and some security fixes that had made their way into the software repository.
A few minutes later, the new versions were installed.
The web server restarted. The applications responded. Three websites returned HTTP 200.
Everything appeared to be working.
Under normal circumstances, that would have been the end of the story.
But there was something unusual about the vulnerabilities behind these updates.
Artificial intelligence had helped researchers understand and demonstrate security problems that traditional methods had struggled to fully expose.
And that made the evening considerably more interesting than nine packages.
When machines couldn't count fingers
Not so long ago, artificial intelligence had a rather amusing problem.
It couldn't draw hands.
Ask an image generator to create a portrait, and the result might look surprisingly convincing. The lighting was beautiful. The composition was impressive. The face looked almost photographic.
Then you noticed the fingers.
Six on one hand. Four on the other. Occasionally a thumb growing from somewhere it had absolutely no business being.
We laughed.
The machines could imitate human creativity, but apparently nobody had explained human anatomy to them.
Those strange hands became something of a cultural symbol. A reminder that impressive technology could still make remarkably obvious mistakes.
And there was something reassuring about that.
We could look at the image and immediately see what the machine had missed.
A few years later, the situation looks rather different.
The images have improved. The hands are mostly where they belong.
And some of the same general family of technologies is now helping security researchers discover mistakes buried deep inside software written by humans.
We used to laugh at the mistakes machines made.
Now we ask them to find the mistakes we made.
That is quite a change in the relationship.
A small mistake can live a very long life
Software has an interesting property.
It remembers our mistakes.
A developer writes a function. It works. The tests pass. The application is deployed.
Years go by.
Other developers build new features around it. Libraries change. Operating systems evolve. The original author moves to another project, another company, or perhaps another profession entirely.
But the function remains.
It may be called millions of times.
It may become part of a dependency used by thousands of applications.
And somewhere inside it, an assumption made many years earlier may still be waiting to fail.
Not every software vulnerability is the result of carelessness.
Some arise from interactions that are extraordinarily difficult to anticipate. Others depend on obscure combinations of inputs, memory states, execution paths, or features that were never expected to meet.
A program can behave correctly for years and still contain a serious flaw.
The absence of visible failure is not proof of correctness.
It is merely evidence that the conditions for failure have not yet appeared.
Or that nobody has recognized them.
The machines enter the codebase
Security researchers have always used automation.
Static analyzers, fuzzers, symbolic execution, test generators and countless other tools have spent decades looking for weaknesses in software.
Artificial intelligence did not invent automated security research.
But newer models add something interesting to the process.
They can help connect observations.
A suspicious fragment of code may be harmless by itself. Another function may appear perfectly reasonable. A third component may enforce an assumption that seems entirely justified.
The vulnerability may exist only when all three interact in an unexpected way.
Finding that interaction can require an unusual combination of persistence, experimentation and imagination.
This is where AI-assisted research becomes interesting.
A model can help formulate hypotheses, examine alternative execution paths, generate test cases and interpret results. It can support the repetitive parts of an investigation while helping researchers explore possibilities they might otherwise overlook.
The recent PHP security work offered a particularly relevant example.
Researchers investigating memory-safety problems used AI-assisted techniques to help establish how certain weaknesses could become exploitable.
The important distinction is that the machines did not simply announce that a line of code looked suspicious.
The research involved understanding whether a problem could actually be turned into a security vulnerability.
That is a much harder question.
A potential bug is one thing.
Demonstrating its consequences is another.
And somewhere between those two questions lies much of the work that makes security research difficult.
The uncomfortable part
There is, of course, a problem.
The same capabilities that help defenders find vulnerabilities can also help attackers investigate them.
A tool that makes it easier to understand complex code does not automatically know whether the person using it intends to improve that code or exploit it.
This is not a new dilemma.
Compilers can build useful software and malicious software.
Network scanners can help administrators understand their infrastructure and help attackers identify targets.
Cryptography protects private communications, including communications between people who have something unpleasant in mind.
Technology rarely arrives with a universal agreement about how it should be used.
AI makes this tension more visible because it can reduce the time and expertise required for certain kinds of analysis.
A weakness that once demanded weeks of specialized investigation may become easier to explore.
That possibility is unsettling.
But it also raises a question worth considering.
What if the defenders can use these capabilities before the attackers do?
And what if the real opportunity is not merely to discover old mistakes faster?
Nine packages and a much larger question
Back to the Wednesday evening.
The package manager had finished its work.
PHP 8.3 had moved to a newer release. PHP 8.4 had done the same.
The web server was running.
A few checks confirmed that the applications were responding.
HTTP 200
HTTP 200
HTTP 200
There was nothing particularly remarkable about those three lines.
They did not prove that every part of every application was perfect.
They did not establish that the server would never be vulnerable again.
They simply showed that the basic services were still responding after the update.
A small, ordinary piece of maintenance.
But it was happening within a much larger process.
Somewhere, researchers had investigated a weakness.
Someone had established its consequences.
Developers had prepared corrections.
Packages had been built.
Repositories had distributed them.
And eventually, a server administrator had typed a command.
This is how much of Internet security works.
Not through a single heroic act, but through a chain of people, tools, institutions and systems that must cooperate.
The discovery is only the beginning.
A vulnerability that has been identified but not fixed remains a vulnerability.
A fix that has been published but not installed remains an opportunity.
And a successful installation that nobody verifies is still an assumption.
AI may accelerate parts of this chain.
It does not eliminate the chain itself.
What if we moved the intelligence earlier?
For decades, software security has often followed a familiar sequence.
We build something.
We discover that it contains a weakness.
We investigate the weakness.
We fix it.
Then we repeat the process.
Sometimes the interval between building and discovering is measured in days.
Sometimes in years.
Occasionally, much longer.
There is a certain absurdity to this arrangement.
We spend enormous amounts of effort building complex systems, and then spend enormous amounts of effort investigating the unexpected behavior of those same systems.
What if more of that investigation happened before the software was released?
Imagine development tools that do more than check syntax or suggest the next line of code.
Tools that challenge assumptions.
That ask what happens when two components interact in a way their authors never anticipated.
That explore unusual inputs, forgotten states and combinations too numerous for a human developer to test manually.
Tools that do not merely help us write code faster, but help us understand where the code might fail.
We already have pieces of this future.
Formal verification, automated testing, fuzzing and static analysis have been moving in that direction for years.
AI could make some of these techniques more accessible, more adaptable and more useful in everyday development.
Not by replacing careful engineering.
By making careful engineering easier to practice.
That would be a more interesting achievement than generating another thousand lines of code in ten seconds.
After all, generating code faster is not necessarily progress if we also generate mistakes faster.
The strange possibility of a safer Internet
There is a tendency to describe every new AI capability as either a miracle or a catastrophe.
Perhaps this one deserves a quieter interpretation.
Yes, AI-assisted vulnerability research may make some attacks easier.
Yes, it may force software vendors and administrators to respond more quickly.
And yes, the next few years may be uncomfortable for systems that have accumulated decades of assumptions nobody has revisited.
But the same technology offers another possibility.
We may become better at finding weaknesses before they are exploited.
Better at testing software before it reaches production.
Better at reviewing dependencies that no single developer can fully understand.
Better at identifying the kinds of mistakes that quietly survive code reviews, automated tests and years of ordinary operation.
The Internet is an extraordinary collection of human decisions.
Some brilliant.
Some practical.
Some temporary solutions that became permanent because nobody ever found the time to replace them.
It is not surprising that mistakes exist inside it.
The surprising thing is how much of it works despite those mistakes.
Perhaps increasingly capable tools will help us preserve that achievement while reducing the fragility underneath.
Not a perfectly secure Internet.
That would be a rather ambitious promise.
But a safer one.
And perhaps, eventually, an Internet where fewer vulnerabilities survive long enough to become emergencies.
Back to the hands
I keep thinking about those early AI-generated images.
The beautiful portraits with impossible fingers.
At the time, the mistakes were easy to recognize.
We knew what a hand should look like.
We could point to the extra finger and laugh.
Software is different.
A security flaw rarely announces itself with an extra thumb.
It can hide behind perfectly reasonable code, familiar patterns and assumptions that have worked for years.
Sometimes even experienced developers cannot see it without specialized tools and a great deal of investigation.
Now we are building machines that may help us recognize those invisible extra fingers.
There is a certain irony in that.
The technology we once judged by its inability to reproduce the human hand is beginning to help us examine the things those hands have built.
And perhaps the most important result will not be how many old mistakes the machines uncover.
It will be what we learn from them.
Because finding vulnerabilities faster is useful.
Fixing them faster is better.
But learning to build systems in which fewer of them exist in the first place would be something else entirely.
On that Wednesday evening, nine packages were updated.
The websites continued to work.
Nothing particularly dramatic happened.
And somewhere beyond those ordinary terminal messages was a possibility worth thinking about.
Maybe the machines that are getting better at finding our mistakes will also help us make fewer of them.
That would be a rather good use of artificial intelligence.
Ready