When AI finds the flaw, stolen passwords and API keys do the damage. PHP2Shell makes the case for verifiable credentials over shared secrets.
By Trevor Butterworth, VP Digital Strategy & Governance
“Websites across [the] world hit by millions of attempts to exploit PHP code flaw” ran the headline in the Guardian, as governments and companies pulled access to websites to patch the newest MOAV (mother of all vulnerabilities). The move — recommended for those who couldn’t patch right away by the U.S. National Security Agency — signaled that this wasn’t a typical dog-bites-man cybersecurity exploit, but a crack in the internet’s architecture that could cause havoc.
The story was more than data being at risk; it was a real-time demonstration of AI’s power to discover hidden vulnerabilities and to exploit them at machine speed. With the PHP2Shell exploit, two long-hidden flaws in the core of PHP, the programming language behind most of the web’s server-side code, were no longer dormant. To use them to crack open a server was, as one research team put it, at the edge of what human researchers could practically achieve.
Frontier AI models managed it in days. Complexity is no longer a meaningful (if inadvertent) security barrier. The scope of vulnerability is now unconstrained by human bandwidth. The good news is that we now have machine-speed capacity to find vulnerabilities and fix them; the bad news is that we now have machine speed capacity to find vulnerabilities and exploit them.
While everyone preps for patchapalooza, let’s step back. What if, instead of fixing the access problems, we just removed them? Think of the world of paper passports — and the staple of so many thrillers where an old guy in a basement produces a forgery or a fake. The problem was mitigated by adding a chip to the passport with digitally signed information, including the passport holder’s image; the fix made forgery far harder to pass.
Or, more to the point at hand, consider the magnetic strips once used on credit cards that contained static data which was easy to copy. The credit card companies then switched to chips that create a brand-new, one-time-use code for every single purchase. If that specific code is stolen during a sale, it can’t be used a second time.
The secret to access
Much of the digital world manages access the way old-time banks once managed their vaults: A person with a secret punches it into an interface, and the door opens. The vault was safe as long as the secret stayed with the bank manager.
Passwords, API keys, session cookies and bearer tokens all work this way. The system checks the string and it presumes that the person or program presenting it has the right to do so. But any copy works exactly as well as the original.
This was a reasonable design for a smaller, slower internet. Secrets are simple to issue and simple to check, and they fit neatly inside a perimeter: a company network, a single provider’s cloud, an integration negotiated once between two partners. Whole industries, from identity providers to secrets managers to firewalls, grew up to keep these strings out of the wrong hands.
This all depends on the places where the secrets are kept being hard to break into, and the history of cybersecurity is replete with accounts of these defenses failing. Now, every server, worker process and log file that touches a reusable secret has to contend with AI operating at machine speed to steal those secrets.
It gets worse
One interesting detail in Wiz Research’s discovery of the PHP flaws is that an attacker could read the memory of a PHP worker process without taking over the server at all. That memory, Wiz notes, can hold passwords, authentication tokens, API keys and certificates belonging to other visitors or to the server itself.
This means that an attacker who copies one of these secrets doesn’t need to understand the system it came from; they have the equivalent of the bank manager’s vault code. Every reusable secret becomes a liability waiting to be AI’d.
Maybe we stop using secrets?
How about an access architecture that leaves nothing reusable to steal — or at least shrinks this attack surface?
A verifiable credential carries its own proof. The credential issuer, say a bank or a licensing board, signs it digitally, and anyone can check that signature against the issuer’s public key. The check happens on the spot. There is no central database to call to confirm the claim, and so no password or API key to that database for anyone to steal.
Run PHP2Shell against that design. Today, most logins send a password into a server’s memory, and every check against a remote database needs a key kept close at hand. Those are exactly the things Wiz showed leaking. A credential login involves neither. The person proves who they are without sending a secret, and the server needs only public keys to check the proof. And because the person shares only what was asked for (that they are over 18, say, without their birthdate), there is less personal data in memory to take.
This is what we mean by authority at the edge. The power to act for someone stays with them, on their phone or with their agent, and the service only checks it. What a provider doesn’t hold, it can’t lose.
None of this would have stopped PHP2Shell. What it changes is the broader architecture of access by shrinking what’s available to steal. In this decentralized architecture, every AI agent at the border of a system presents a credential whose source can be proved, and whose scope for action can be verified, right there at the moment of contact. Every person accessing their bank account presents a cryptographic proof that the bank can verify as coming from the credential it issued.
Defenders are agents now, too
The second half of the problem is newer. AI did much of the work on the defensive side of PHP2Shell as well. Researchers using OpenAI’s and Google’s models, and Wiz’s own autonomous research tool, found the flaws, built and adapted the exploits and checked the patches. OpenAI’s proposed framework for future disclosures goes further, floating internet-wide, always-on scanning for known vulnerabilities, with scanners either notifying site owners or patching systems themselves.
Every step in that framework is a trust decision between parties that have never met. Who gets advance warning, and who gets the working exploit? Which organizations may use the most capable cyber models? Is the agent probing your server a sanctioned scanner, a patching service your host authorized, or an attacker?
Today those questions are answered with vetting forms, private lists and network addresses. During the WordPress “wp2shell” episode in July, Wiz removed an address from its list of attackers after confirming it belonged to a legitimate security scanner. That is the old answer to agent identity: guess from the address, and correct the record later.
A verifiable credential gives each party something better to show. A national cyber agency, an information-sharing center or a hosting provider can issue a credential stating who an organization is and what role it plays. A site owner can issue a scoped, revocable mandate to a named patching agent. Anyone can check either one against a list of issuers they accept, on the spot, with no shared system between them. A credential cannot stop an authorized recipient from leaking an embargoed exploit, and it cannot make a compromised server trustworthy. It can make every actor in the response identifiable and every authorization auditable.
OpenAI reached a similar conclusion from the other direction. In a policy blueprint published the day PHP2Shell went public, it called agent identification a protocol-level issue and urged support for NIST’s work on agent identity and for international standards through bodies such as the W3C and IETF. The W3C is where the standards for verifiable credentials and decentralized identifiers were written.
How the tech era of shared secrets ends
The shared-secret model of access has outlasted countless stolen password databases. PHP2Shell shows how AI could deliver the death blow through cheaper, faster break-ins. The sensible response is to make the break-in surface smaller, and any success less rewarding: stop keeping reusable secrets where a breach can reach them, and give the people, organizations and agents on the network a way to prove who they are and what they may do, wherever they go.
That architecture already exists. It is how Indicio Proven® handles digital travel credentials and reusable identity verification for financial services, and it is what Proven AI brings to AI agents. Patch today. Then start building access that a memory dump cannot steal.
For more on verifiable credentials for managing AI, our white paper, Identity, Commerce, and the Agentic Web, sets out the full architecture: how agents prove who they are, how consent and authority travel with them, and how mediation makes authority at the edge work at scale.



