You're Worried About The Wrong Thing
The latest PHP CVEs have caught the attention of the media and other commentators. It is a huge deal and worrisome, but they're all worried about the wrong thing.
SecurityAIVulnerabilityPHP
The latest set of PHP vulnerabilities has the world talking. For the US NSA to be suggesting that businesses pull the plug and go dark if they're not able to patch their systems immediately, it's worth taking notice. However, the media and other commentators all have something in common in their coverage -- they're all concerned about the wrong thing.
In pretty-much every segment I've seen, I've come away with the impression that a producer somewhere has asked the question: "Yeah, but how do we tie this back to AI?"
This has everyone talking about the wrong part of the problem, and diverts the industry away from an actual solution.
The AI connection made by commentators is generally one or both of:
- AI was used to help find these vulnerabilities
- AI can be used to help attackers exploit the vulnerabilities quicker
Neither of these things is really the biggest concern.
What Is A Bigger Concern Than AI?
Given that the vulnerability has been there since 2004, the chances that this vulnerability has been found and exploited before are very high. For this specific class of issue, there are tools to help developers find and fix them. Tools that don't need AI. Tools that nefarious actors likely would have already used. Silently. For years. Undetected.
How many of the now-weekly critical data leaks were caused by this set of PHP vulnerabilities in the past 22yrs? How many were caused by other vulnerabilities that have not yet been made public?
Yes, AI is another tool to analyse software looking for exploits it was trained for. There are people on both sides of the equation using this tool, and others, to find these vulnerabilities to patch or to exploit them. It's an arms race that will likely continue forever. To believe that this arms race is where the security battle is won or lost is likely why we see so many data breaches.
AI can also help in writing exploits once a detailed vulnerability report is released. But these kinds of vulnerabilities are nearly always exploited in the wild hours after information is made available. Like another PHP vulnerability in 2024 that came up in a quick search. Keeping up to date with patches is a critical part of good security practice, but we all need to assume that there will be a window of vulnerability that cannot be avoided, and protect for that.
Is it worse for one or two skilled actors to get in and out undetected, or a hundred bumbling amateurs barging through the front gate?
Neither are acceptable. In my experience, the former is far more dangerous.
How Do I Protect Against Zero-Day Exploits?
Keeping up to date with patches is a critical part of Information Security, obviously. However, it's not enough on its own. As we've discussed above, a vulnerability could exist in the wild for decades before the general public (and upstream software vendor) are made aware of it.
These common security principles aren't as commonly-implemented as they should be, but form the foundation of any solid security plan:
- Defense In Depth -- assume any piece of software is vulnerable or will be vulnerable at some point. The temptation is to assume that once your public-facing services (such as a PHP web server) are patched and somewhat locked down, that you don't need to worry about backend systems such as databases or file systems. Assume that the PHP web server is vulnerable and protect your other systems from a malicious actor operating it. Run the PHP service inside an environment that is void of any tools that a malicous actor might use to jump from this server to the next.
- Principle Of Least Privilege -- for every single component, grant it access to only the absolute bare minimum it needs. Whether it's a human, a network service or something like an AI agent or tool, if all it needs to be able to do is read files in one directory, only allow it to read files in that one directory.
- User Training -- Social Engineering is still one of the easiest forms of attack. With the help of AI, frauds and fakes will get better and better. Train your staff to avoid phishing attacks and to authenticate anyone looking for sensitive information.
- Patches -- it's still critical to stay up to date with patches. Once a vulnerability becomes widely known, it's frequently widely exploited within a very short period or time.
It isn't always easy to work out how to secure an individual service or component (or a whole application for that matter) in practical terms. In many cases, if you're simply doing a docker pull of some remote image, it's hard to tell how hardened the image and service are, or how to harden the systems they run on. In those cases, it pays to ask someone to help.
Comments
Powered by Bluesky. Reply on Bluesky
Loading replies…