When AI Finds the Holes Faster Than You Can Close Them

PHP2Shell critical alert icon over a pocket watch, showing how little time teams have to patch

Artificial intelligence is changing how quickly software flaws get found, and PHP2Shell shows it’s overwhelming the IT staff who have to deal with them. This is the biggest shift in security I’ve seen in years.

Take PHP2Shell, for example, which gets its name from PHP, a programming language that runs behind a large share of the world’s websites and plenty of household gadgets. In October, researchers working with AI found two serious flaws in it. A fix came out on October 21.

It’s almost December, and organizations are still patching.

If things go well, a vendor-supplied patch only takes minutes to apply. But you can only patch the systems you know you have.

That’s the new reality. Flaws are being found and announced faster than ever, and attackers start using them within hours.

What limits security now is how fast an organization can respond, not how fast someone can discover a problem.

Patching moves to the front of the line

For years, the unspoken rule at a lot of companies was simple. Roll out the new website features today. Worry about security patches next week.

Features made money. Patches, on the other hand, were maintenance.

AI has turned that around. When a newly announced flaw can become a working attack within hours, “patch next week” is a risk nobody should accept.

Patching now has to come before feature releases, office moves and everything else IT gets pulled into. Leadership teams that still treat updates as housekeeping need to champion this change. IT needs the support. Personally, I would put patching ahead of all of it.

Search your own environment

A vendor announcement tells you a flaw exists. It doesn’t tell you where that flaw sits inside your organization.

That search is yours. Besides, waiting for each vendor to confirm which of its products the flaw touches takes too long. My advice is to start that search the day an announcement lands, and I mean the same day.

Right now, the iceberg is PHP

The PHP2Shell fix came out on October 21. Nearly two weeks later, scans by the research firm Censys found that 29 million of the 46 million servers they could check were still running a vulnerable version. That’s about 63%. Another research team tracked the first days after the fix. After 24 hours, 99.3% of the systems it could measure had no patch. After five days, the figure was 93.6%. On November 19, PHP shipped fixes for seven more serious flaws.

Underneath company websites and internal admin pages, you’ll usually find PHP. It also runs those old marketing sites nobody has touched in years.

I don’t think most organizations realize where all their PHP lives. Your corporate website is what shows above the waterline. Most of it, however, sits below.

It’s also built into physical devices. Many of them have a small built-in web page you use to set them up, and that page often runs on PHP. It turns up in products most people would never think of as web servers:

  • Security cameras
  • Firewalls and remote-access (VPN) gateways
  • Network storage boxes, at the office and at home
  • Industrial routers
  • Electric vehicle chargers

Commercial building control panels and factory operator screens carry it too.

Often, you can’t patch PHP2Shell on these devices yourself. Only the maker can supply the fix, and some makers are still working out whether PHP2Shell touches their products. That matters. Until the vendor says otherwise, I would treat every one of these as exposed. You may own devices your vendors haven’t figured out how to patch yet, and those 29 million servers only count what scanners can see from the internet.

We’ll be working through PHP2Shell for months.

Some devices will never get a patch

Some devices on IT networks and on operational technology (OT) networks, the systems that run physical equipment, will never get a fix. Maybe the manufacturer has moved on, or the product reached the end of its supported life years ago.

In that case, my advice is to replace those devices at emergency speed or turn them off.

If you can’t do either, isolate them. That’s called network segmentation: putting vulnerable devices on their own separate network, so a compromised one can’t reach anything that matters.

Likewise, do the same for any device that’s still waiting on a vendor patch. Until the fix arrives, segment it and keep it off the public internet.

An unpatchable device on a shared network is a risk you can’t afford to carry.

Also, don’t forget the ordinary ones. Home enthusiasts are already using AI to reprogram their smart TVs. If a hobbyist can do that over a weekend, an attacker can do it to the TV in your conference room.

After all, a smart TV is a small computer with a network connection and almost no monitoring. Using one to attack a network is an easy and credible threat. Ignoring it is a mistake I wouldn’t want to make.

Unpatched security devices were the first PHP2Shell victims

The first confirmed PHP2Shell breaches didn’t involve websites. They hit the security devices that sit at the edge of a network.

On October 26, five days after the fix came out, researchers reported that attackers had taken over 25 firewalls and management servers across four countries. Two of those systems belonged to an organization affiliated with the U.S. government.

Researchers believe the attackers used AI to help build the attack. Once inside, they moved from the firewall to the systems that manage user accounts within minutes.

A second campaign started on October 30, aimed at unpatched Check Point security gateways. That first wave was destructive: the attackers used their access to wipe data. Within days it had spread to organizations in multiple countries.

In both campaigns, the victims were running devices nobody had patched yet. Expect more of these, because I don’t see the pace slowing.

A fix and a breach are now only days apart.

Inventory gives you speed. Don’t skip change control.

Inventory is what makes a fast response possible. Without knowing where every vulnerable system sits, you can’t patch quickly, no matter how good your team is.

Change control means recording every change made to a system and when it was made. Under pressure, I know it’s tempting to skip that step and just push the fix.

Don’t. Organizations that keep recording changes now will be the ones able to untangle problems later.

Four practices matter most right now:

  1. Know your inventory, because you can’t patch a system you can’t find.
  2. Patch fast and log every change so you can trace what changed if a problem shows up next month.
  3. Track dependencies, since updating one piece of software can break another that relies on it.
  4. Plan your rollback before you push in case a change causes problems.

Skipping change control saves an hour this week. It can cost you a month later, when something breaks and nobody knows what changed.

Vendors must move as fast as their customers

Your vendors need to move on vulnerabilities as fast as you do. I covered the accountability side of this in Outsourcing Infrastructure Does Not Eliminate Security Accountability. A supplier that takes sixty days to deliver a fix for a serious flaw makes your own patching speed count for very little.

Pull your contracts and read them closely, the way I would. Most spell out how quickly a vendor must disclose a breach. However, far fewer say how quickly the vendor must notify you of a known vulnerability, or fix it. To me, that’s no longer acceptable.

That gap is worth a direct conversation now and a contract change at the next renewal.

Response is the new measure

Discovery isn’t the hard part anymore.

Do you know where all of your PHP lives? Do you know which devices on your network will never get a patch?

If the answer to either question is no, start there. In my view, that’s the real test now.

My bet is that the organizations that come through this period well will be the ones that can act on what they learn faster than an attacker can exploit it.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *