Cybersecurity and AI

AI Has Some Bad News About Your Code

AI is finding serious vulnerabilities in mature software. The harder challenge is resolving them safely and quickly.

Revity8 min read

There is something slightly amusing about the latest developments in AI and cybersecurity. We have spent decades building software, testing it, fixing bugs and convincing ourselves that the stuff running in production must be reasonably secure. After all, it has been working for years.

Then along comes AI, has a look around and starts finding security vulnerabilities that have been sitting there quietly for a decade.

Not exactly the sort of technical debt anyone was hoping to discover.

The bugs that have been hiding in plain sight

In November 2026, security researchers discovered 2 critical vulnerabilities in NGINX, one of the world's most widely used web servers, responsible for handling traffic for hundreds of millions of websites.

Both vulnerabilities could potentially allow an unauthenticated attacker to execute code on affected servers. One of the underlying bugs dates back to 2015.

Think about that for a moment. For more than 10 years, this code has been running in production, examined by developers, security researchers and automated scanning tools. Yet these vulnerabilities remained undiscovered.

Wiz Research used an AI-assisted code scanning system to discover the vulnerabilities and frontier AI models to help validate their impact. Other security teams independently discovered the same issues, which were subsequently disclosed to F5 and addressed through security updates.

This is quite a significant development. We are no longer talking about AI spotting a missing input validation check in some newly generated application code. We are talking about finding serious security problems in mature, widely deployed infrastructure software.

And NGINX is hardly an obscure piece of technology.

The obvious question is: what else has been sitting in our codebases for the last 10 or 15 years, waiting to be discovered?

Unfortunately, the bad guys have AI too

Google's Threat Intelligence Group recently published research showing attackers are already using AI agents to automate reconnaissance, vulnerability scanning and parts of the exploitation process.

Some are using multiple agents working together, investigating systems, identifying potential weaknesses and adjusting their approach based on what they find.

Another interesting development is the use of AI to analyse security patches. When a software vendor releases a fix, attackers can compare the old and new code to understand what vulnerability was addressed, then look for systems that have not yet been patched.

None of this is particularly new in principle. Attackers have been reverse-engineering patches for years.

What is changing is the speed and the amount of work that can be automated.

And this creates an interesting problem for organisations. The time between a vulnerability becoming public and someone attempting to exploit it could become considerably shorter.

If your organisation takes 3 weeks to assess a vulnerability, another 2 weeks to develop a fix and then waits for the next monthly release window, that is not a particularly comfortable position to be in.

Finding the problem is only half the job

This is where I think the conversation becomes more interesting.

We have spent years investing in tools that help us find vulnerabilities. Static code analysis, dependency scanning, penetration testing, vulnerability management platforms. There is no shortage of ways to produce a report telling us what might be wrong.

And now AI is getting considerably better at finding things those tools have missed.

Great. More findings.

But what happens next?

Someone still needs to work out whether the vulnerability actually affects their environment, understand the consequences, decide what needs to change, implement the fix, test it and get it safely into production.

Anyone who has worked in a large organisation knows this is not always a quick process.

The vulnerability might sit in a component nobody wants to touch. The original developers may have left years ago. There might be limited automated test coverage, complicated dependencies or a release process involving several teams and a change advisory board.

Finding a 10-year-old vulnerability in 10 minutes is impressive. Spending the next 3 months fixing it is somewhat less impressive.

And that, to me, is where AI has an equally important role to play.

Perhaps we should use AI to fix things too

We are already seeing AI coding agents take on increasingly complex software engineering tasks. They can investigate unfamiliar codebases, identify dependencies, propose changes, write tests and help validate the results.

There is no reason these capabilities should be limited to developing new features.

Imagine a security workflow where a vulnerability is reported and an AI agent helps identify which applications are affected, investigates the relevant code, proposes a fix and prepares regression tests.

Another agent independently reviews the proposed changes, checks whether the vulnerability has actually been addressed and looks for unintended consequences.

An engineer reviews the evidence and approves the change before it is deployed through the normal delivery process.

This is not a suggestion that we should let AI agents loose on production systems and hope for the best. Particularly when dealing with security vulnerabilities, agents need controlled environments, appropriate permissions, independent verification and clear boundaries around what they can change.

But much of the investigation, analysis, implementation and testing work could potentially be accelerated.

The question becomes less about how many vulnerabilities we can discover and more about how quickly we can safely resolve them.

That is a much more useful measure.

We might need to rethink our security processes

There is another implication here that I think deserves attention.

Most organisations have built their security and software delivery processes around human capacity and human speed.

We prioritise vulnerabilities because there are only so many security engineers available. We schedule remediation work because development teams have competing priorities. We bundle changes into releases because testing and deployment take time.

Those constraints are not going to disappear overnight.

But if AI can substantially reduce the effort involved in investigating, fixing and testing vulnerabilities, perhaps some of our processes need to change as well.

Rather than treating security remediation as an occasional activity competing with feature development, we could make it a more continuous part of software engineering.

That would mean better automated testing, smaller changes, more reliable deployment processes and engineering teams comfortable working with AI agents while retaining responsibility for the results.

None of this is particularly glamorous. It is the engineering work that makes automation useful in the real world.

Some uncomfortable questions ahead

The NGINX discoveries are exciting from a technical perspective, but they also raise some uncomfortable questions.

If AI is finding serious vulnerabilities in software that has been around for more than a decade, what will it find when we start applying these techniques systematically across our enterprise applications, legacy platforms and infrastructure?

How many systems that we consider stable and secure simply have vulnerabilities nobody has found yet?

And perhaps most importantly, are our engineering teams equipped to deal with what AI might uncover?

I suspect we are going to find quite a few skeletons in our codebases over the next few years.

The good news is that we now have better tools to find them. We should make sure we are equally good at cleaning up the mess.

References

Resolve risk safely and quickly.

Revity helps engineering teams improve the delivery systems that turn security findings into reliable fixes.

Talk to Revity