r/devops • • Oct 23 '26

Security Are you patching faster now that AI can help turn old bugs into working exploits?

Reading the php2shell research, the bit that stuck with me was how AI helped turn longstanding bug into working exploit. The bugs was already there, getting them to work reliably was the difficult part.

That make “hard to exploits” feel like a shaky reason to leave something in the backlog. For people maintain production system, has this changed your patching schedule at all? We are still on php 7.4 and the last upgrade attempt broke half of our cron jobs, so i’m curious how other team handle an urgent patch when the upgrade itself need debugging

source: Wiz’s PHP2Shell research, published october 21

17 Upvotes

17 comments sorted by

5

u/dogfish182 Oct 23 '26

Yea we are patching much faster with a huge focus on deps and AI helping us disentangle all the nuances of renovate, gaps where you thought you had none and also implementing ‘cool down’ windows so you don’t patch in a supply chain attack, as well as the bypass for that guard in a P1 threat situation if needed

0

u/AlterTableUsernames Oct 25 '26 edited Oct 25 '26

Just patching the security patch should introduce near zero supply chain risk, if I am not mistaken. 

9

u/ForkMeJ Oct 23 '26

If you're still on 7.4, I'd treat this as an operational risk you already have, not a new AI question. If an upgrade breaks basic cron jobs, that usually means the environment depends on behavior nobody wrote down, and that's the part that bites you later.

Urgent patching only gets easier if you've already done the boring prep. Inventory the cron jobs, stand up a parallel test box, and figure out what is failing because of PHP versus shell paths, extensions, or old script assumptions. Teams get stuck when every upgrade turns into one giant all-or-nothing project. I'd peel off the cron breakage first, because if that keeps blocking upgrades, it will keep beating security fixes every time.

1

u/ifeellikethatallday Oct 23 '26

Like this is an afternoon after proper scoping. Why is patching even a thing considered in a legacy system as described. Use Claude code or similar to scope, test, verify, create a migrate path. It might sound like a huge project because we remember them as such, but if you still feel this is tech debt not worth the time to build away, my bet is that is not a technical challenge, more likely a process or organization issue.

4

u/Forsaken_Parfait_185 Oct 23 '26

"Hard to exploit" was always a backlog excuse, AI's just taken the excuse away. We sat on a deserialisation bug for two years at one place because the attacker would need three things lined up. A pentester lined them up in an afternoon with no AI at all.

On 7.4 with cron jobs breaking: the cron jobs aren't the problem, they're the inventory you didn't have. Stand up 8.x on a spare box, run every cron script against it with a dry-run flag, and you'll have the list of what depends on old behaviour in a day. That list is the upgrade plan. Trying to do it live under a CVE is how a half-broken upgrade gets rolled back and the bug stays.

2

u/ILoveAppSec Oct 24 '26

Agreed that 'too hard to exploit' has stopped being a reason to wait. But patching fast and moving off 7.x do not have to share a deadline. The CVE fix is a small, known change; the jump off 7 is a separate migration. Take the security fix on your current line now, and run the major bump on its own schedule. What is actually blocking the 7.x boxes, app code or extensions?

1

u/lurker912345 Oct 23 '26

I’m patching every time AWS releases a new AL2023 AMI, which has been pretty frequently recently. My process is mostly automated. SNS topic for new AMI triggers my Packer EC2 jobs in CI. When the new one images are built I run my Terraform CI jobs in the lower environment which grab the new golden image. I then run an instance refresh on the Autoscaling groups from CI. If everything checks out in the lower envs I get change management approval to repeat in Prod for the next morning. Cases like the PHP exploit are an exception where all patches went out the same day.

1

u/sp_dev_guy Oct 23 '26

Im patching faster now that AI check the changelogs & compatibility

1

u/Kamikx Oct 24 '26

I’m sorry, but when considering the risk of an exploit, difficulty does not mean “you need to be really smart”. It means that exploiting needs several factors together, and takes into account the dependency between them, and the attacker.

1

u/usually_guilty99 Oct 25 '26

This isn’t simply patch now versus patch later. Compare two risks with evidence: current exploit exposure and the blast radius of the forced major upgrade. Inventory every cron and runtime dependency, canary the new version against production-shaped traffic, define success conditions and rehearse rollback. If a WAF rule is the interim mitigation, give it an owner and expiry.

1

u/josejulianariza 29d ago

It's a total game-changer. Before, leaving a bug unpatched was justified with "it's too hard to exploit," but with AI building exploits in hours, that window of time has shrunk massively.

Still, your problem of breaking things is valid. What usually works is separating validation from deployment. On one hand, automating updates with PRs tested in isolated environments before touching production. And if a critical patch can't be applied now because it breaks PHP 7.4 (like what happened to you), apply mitigations in the meantime: block access to that service with network rules or drop container privileges.

The idea is not to patch blindly, but not to sit on your hands either.

0

u/arerbacjs Oct 23 '26

u/ForkMeJ nailed the core of it: if a basic upgrade breaks cron jobs, the real risk is that nobody has a map of what actually runs and what it depends on. The AI-exploit angle is almost a distraction here. The teams I've seen handle urgent patches well aren't faster at patching, they're faster at answering "what will this touch?" before they start. When that inventory lives only in someone's head, every patch becomes an all-or-nothing gamble, exactly like you're describing with 7.4. So less about the patch itself and more: do you have a current, external picture of what's running and what talks to what? That's usually the thing that turns a weekend outage into a 20-minute change. How are you tracking that today, spreadsheets, tagging, something automated?

-3

u/[deleted] Oct 23 '26

[removed] — view removed comment

8

u/Sathandi Oct 23 '26

Oh wrinkle, the new em dash...