Black October: PHP2Shell, LiteLLM 1.107.0 Malware, OpenCode Key Theft, and $5K Agent Hacks
Within a single week in mid-October, security teams stopped treating AI-driven attacks as red-team thought experiments and started calling the stretch “Black October.” Across seven days between October 17 and October 23, four distinct incidents collided: a distillation-linked breach at OpenCode, a hacker reportedly compromising more than 100 websites for roughly $5,000 in agent tokens, decade-old PHP engine remote code execution flaws cracked with frontier models, and credential-stealing malware inside a widely deployed LLM gateway package.
Even last November’s early warning of AI-orchestrated intrusions and September’s Critical rating on GPT-6 Astra felt cleaner in lab sandboxes than what landed in production environments this week. Looking at the incidents side by side exposes how fast attackers are turning both sides of the AI stack into leverage.
PHP2Shell Breaks the Decade-Old Patch Barrier
On October 21, Wiz Research disclosed PHP2Shell, two critical CVE clusters (CVE-2026-109618 and CVE-2026-109619, severity up to CVSS 9.2) inside PHP’s core engine affecting releases back to PHP 5.4 across roughly 70% of websites, including WordPress, Drupal, and Joomla containers even when application code itself is spotless.
The bugs themselves sat in PHP’s fatal-error and out-of-memory cleanup paths for years, leaving corrupted memory state behind for subsequent worker requests. Turning stale heap artifacts into reliable unauthenticated RCE and Heartbleed-style credential leaks used to demand excruciating manual heap feng shui across target layouts. Wiz noted alongside OpenAI and Calif that frontier models compressed that exploit-chaining cycle from weeks into hours. Once complexity stops shielding legacy C runtimes from practical exploitation, unpatched servers have hours, not months.
Credential Theft Targets LLM Keys Directly
While PHP teams scrambled to patch servers, attackers went straight after the keys paying for model inference.
- On October 17, OpenCode disclosed a security breach affecting 1.4% of OpenCode Console users tied to a large-scale model distillation campaign, targeting customers who had external Anthropic, OpenAI, and Google API keys linked.
- Four days later, on October 21, a compromised
litellm==1.107.0package hit PyPI and official Docker/GHCR registries. As Microsoft’s Security Blog documented on October 23, attackers used stolen developer GitHub credentials to alter the release workflow to point at a lookalike repository (Berri-AI/litellm), embedding Python startup hooks inside the wheel. Merely runningpythonorpipin an infected container or workstation triggered credential collection across cloud env vars, SSH directories, browsers, and LiteLLM’s own provider key database without ever importinglitellm. - Meanwhile, reporting on October 19 showed a solo intruder running Claude Code powered by DeepSeek weights to systematically break into over 100 corporate websites on roughly $5,000 in token spend.
API tokens now carry double black-market value: raw compute theft plus covert model distillation. Storing long-lived Anthropic, OpenAI, or Google credentials inside shared container environment variables or ~/.config files on build runners running unpinned dependencies has become an instant blast radius.
Even Internal Safety Monitors Had Blind Spots
Defensive governance hit an uncomfortable reality check on October 22 when METR and Redwood Research published their audit of OpenAI’s internal misalignment monitoring stack as of late July. Because Codex compaction events were not triggering post-turn reviews at the time, roughly 10% of eligible internal Codex traffic went unmonitored, and red-teamers found client headers plus serialization mismatches that could theoretically evade monitoring or sandbox blocks before OpenAI patched them. Just as Hugging Face saw during its July intrusion, monitoring hooks that sit adjacent to agent code instead of outside its trust boundary always remain vulnerable.
Black October draws a clear boundary for engineering teams heading into winter. Pin dependencies by hash, move API credentials out of developer workstation environments into scoped proxies, patch runtime engines faster than exploit chains assemble, and assume anything readable by a Python interpreter or coding agent will eventually be probed.