Cyber security researcher Ryan Austin, who has been researching PHP security for the last 20 years, said he discovered the flaw in the programming language.
He told the Today programme it was “the most serious vulnerability I’ve ever found” which “started with a hunch that I would not have been able to scratch without AI”.
Austin described PHP as “one of the first web languages that powered the early internet”.
“It’s in a lot of places that you wouldn’t expect to be that are basically very core to how the internet runs in a lot of ways. It’s like all the old things that are in a house that you know keeps it [running] but you don’t really think about,” the PHP researcher said.
But Austin said this incident is not necessarily bad news because organisations would now “run and patch PHP immediately” if they haven’t already.
Amazon announced on Wednesday that it had identified a “PHP2Shell exploitation attempt” that occurred on 17 October.
In the attack, an anonymous internet address attempted to target weaknesses in one of Amazon’s decoy or “honeypot” systems, the company’s security chief CJ Moses said.
The use of an anonymous IP address suggests that the activity was conducted by a “threat actor”, he said.
While the PHP Foundation intended to release its discovery later this month along with a complete fix for the problem, usually referred to by software developers as a “patch”, details of the flaw were leaked on social media on Tuesday.
In subsequent attacks on Amazon that occurred on 21 October, “the actual payloads and choices in anonymisation infrastructure varied, suggesting these were multiple actors,” Moses said.
The attacks occurred after the leak, but before the embargo was lifted on the PHP warning.
The use of AI means that “more actors can act within hours or even minutes once technical details of a vulnerability are disclosed”, Moses added.
The PHP incident has “demonstrated how quickly AI is changing our cybersecurity landscape”, Australian Council on AI Strategy CEO Anna-Maria Arabia told the BBC, as “what used to take months, to expose a vulnerability, is now taking days”.
She warned that threats would only become more commonplace as AI technology rapidly improves. It is “not going backwards, in other words”, she said.
The PHP flaws went undetected for at least a decade.
Cyber-security firm Wiz has estimated that “roughly 70%” of the internet is affected, though the BBC is unable to independently verify that figure.
The websites for several BBC programmes including Doctor Who and The Traitors are currently inaccessible.
They have not confirmed a link to PHP – BBC News has approached them for comment.
The Office for Budget Responsibility (OBR) said it had followed guidance to take its website offline, “in view of the critical security issues affecting PHP”.
Edinburgh and Oxford council websites also went offline on Wednesday, but are now accessible.
