AI Agents Turned PHP2Shell Into 404 Hacked Servers

An unidentified operator used a farm of AI agents to turn two critical PHP flaws into one of the fastest mass-compromise campaigns of the year, according to a report published on 18 November 2026 by SOCRadar's Threat Research Unit. The researchers say the operator attacked 595 internet addresses in 57 countries and confirmed compromises on 404 servers, stealing about 290,000 files totalling 9.5 gigabytes.
The flaws at the centre of the campaign are CVE-2026-109618 and CVE-2026-109619, known together as PHP2Shell. Both allow an attacker to run commands on a web server without any login, and both score 9.2 under the CVSS version 4.0 scale. PHP released emergency fixes on 21 October 2026, and the US Cybersecurity and Infrastructure Security Agency added both flaws to its Known Exploited Vulnerabilities catalog on 26 October.
Exploit written on the day proofs appeared
SOCRadar says the operator wrote its first working PHP2Shell exploit on 21 October, the same day public proofs of concept appeared. Within days the operator had adapted the exploit to work against PHP servers running with default settings, rather than the unusual laboratory configurations the public proofs relied on. The researchers reconstructed the campaign from the operator's own servers, which were left open on the internet.
The scale of the operation came from automation. SOCRadar describes a self-built job queue, called maq, that dispatched targets to 39 parallel AI workers running on two self-hosted DeepSeek V4.1 model endpoints. The workers checked each target, triggered the memory-leak exploit, worked out the offsets needed for each PHP build, and ran the data collector. Targets came from a pool of 68,198 PHP and Apache hosts found through the Shodan search engine, narrowed to a shortlist of about 5,042.
Credentials were the prize
What the attackers took was mostly credentials. SOCRadar says the stolen material included cloud API keys, identity and access management credentials, database backups, application secrets, OAuth tokens, source code repositories and session files. The haul also included 191 application environment files across 144 compromised hosts. About 3.3 million user records were taken from an unauthenticated Redis database. SOCRadar stresses that no victim has confirmed the figures, and it names no victim organisations.
The campaign also had a second track aimed at money. A planning file, GOAL.md, told an agent to keep working on its own until a real payout was executed, aiming at more than 50,000 US dollars in the USDT stablecoin. SOCRadar says no theft was confirmed: a withdrawal of about 456,900 USDC stayed pending, and 7.3 bitcoin remained encrypted and out of reach.
Backdoors left behind on compromised servers
Persistence was built in from the start. Once inside a server, the operator planted its own SSH keys, set up reverse-shell beacons that reconnected every 60 seconds, installed token-protected PHP webshells, and ran a Dropbear SSH service bound to localhost with a reverse tunnel. SOCRadar found interactive shells on 217 hosts, but root access on only 12, because most of the compromised servers ran as the unprivileged www-data user inside containers.
The operator's own mistakes helped expose the campaign. SOCRadar found the command server serving its home directory and loot store over open, unauthenticated web pages, and on 8 November it found a second open directory on the operator's AI laboratory server holding an 18 gigabyte working tree. In one case an AI worker ran the data collector on the operator's own laboratory and uploaded the result to the public loot store.
Human-directed, not fully autonomous
SOCRadar is careful about what the evidence does and does not prove. It says the snapshot cannot establish how much of the campaign ran on its own, and it describes the operation as human-directed and AI-augmented rather than fully autonomous. It assesses with moderate confidence that the operator is financially motivated and working in the pattern of an initial-access broker, selling access to compromised systems, but it says confidence in the operator's identity is low and no known group is linked.
The lesson for defenders is speed. The report shows an operator of ordinary technical skill going from a public proof of concept to hundreds of compromised servers in days, using an agent queue to do the repetitive work. The October PHP releases, 8.5.12, 8.4.27, 8.3.36 and 8.2.35, stop PHP2Shell, but PHP shipped further releases on 19 November, 8.5.13, 8.4.28, 8.3.37 and 8.2.36, which also fix a related flaw, phpAfterShell, tracked as CVE-2026-126714, and an incomplete fix for CVE-2026-109619. SOCRadar and PlayCISO both advise moving to the November releases and checking any server that was exposed before patching, because a patched server can still carry the webshells and keys left behind by an earlier intrusion.