Skip to content
.ca
4 mincritical

PHP2Shell was exploited before the patch. Expect more of it.

PHP2Shell critical PHP core vulnerabilities were exploited four days before the October 21 patch, with ~1.3 million vulnerable hosts and AI-accelerated discovery becoming the new norm. Amazon honeypots captured exploitation on October 17, four days before the fix. Some attempts tied to Mirai botnet activity. Mean time to exploit has gone negative at minus seven days, with 70% of exploited vulnerabilities in 2023 being zero-days.

Sens:■ ImmediateConf:highAnalyzed:2026-11-05Z.ai
ActorsMirai BotnetShadow Brokers

Source:Sekoia.io

Indicators of Compromise1
1cve
Improve this report

Send corrections, useful missing information, or quality feedback. It is private and will not appear as a comment.

Feedback type

Detection / HunterZ.ai

Immediate Actions

  • Hunt backward in logs to October 17 for PHP server exploitation activity
  • Patch all PHP instances to the October 21 fix immediately
  • Take internet-facing PHP services offline if unpatched

Key Takeaways

  • Mandiant's 2025 mean time to exploit is minus seven days; 70% of 2023 exploited vulnerabilities were zero-days.
  • Palo Alto Networks counts 22M+ PHP instances exposed; ~1.3M actually vulnerable per Silas Cutler.
  • PHP 8.1 and older receive no official updates; Cisco Talos estimates half of PHP systems may never be patched.
  • Both Calif and Wiz used AI models to find PHP2Shell, which had existed in PHP code since 2012.
  • CVE-2026-111497 (Node2Shell) in Google's Brotli library affects Node.js, Bun, Linux distributions, and Python packages.

Attack Chain

  1. Initial Access: Threat actors scan for and exploit unpatched PHP core vulnerabilities on internet-facing servers
  2. Execution: Unauthenticated remote code execution achieved on vulnerable PHP instances
  3. Persistence: Web shells or new files placed in web-accessible directories
  4. Command and Control: Some exploitation attempts tied to Mirai botnet infrastructure
  5. Impact: Organizations forced to take services offline; potential data compromise

Affected Systems

  • PHP instances (PHP 8.1 and older unsupported)
  • Internet-facing PHP web servers
  • Node.js (Brotli library)
  • Bun runtime
  • Python packages bundling Brotli
  • WordPress and Drupal (confirmed exploitable via PHP2Shell)

Vulnerabilities (CVEs)

copy:
CVEProductDescription
CVE-2026-111497Google Brotli decompression libraryVulnerability in Brotli library bundled by Node.js, Bun, Linux distributions, and Python packages.

Detection Engineering Assessment

Hunting Hypotheses

copy:
HypothesisTelemetryStageFP Risk
Web server processes (php-fpm, httpd) spawning shell interpreters like bash or sh (T1059)EDR process telemetryExecutionLow — legitimate web-to-shell execution is rare
New files appearing in web-accessible directories on PHP servers after October 17 (T1505.003)File integrity monitoringPersistenceMedium — legitimate content updates expected
Unexpected outbound connections from web servers or appliances to non-standard ports (T1071)Network firewall logsCommand and ControlMedium — some apps make legitimate outbound calls
PHP processes executing with unexpected command-line arguments or loading unexpected modules (T1059)Sysmon Event ID 1ExecutionLow — PHP CLI usage is uncommon on web servers

Required Log Sources

  • Web server access logs
  • EDR process telemetry
  • Network firewall logs
  • Sysmon Event ID 1
  • DNS resolution logs
  • File integrity monitoring

Control Gaps

  • Pre-disclosure exploitation window leaves no patch available for protection
  • PHP 8.1 and older versions receive no official security updates
  • Bundled libraries like Brotli may be invisible to software inventory
  • Fake exploit repositories on GitHub target defenders seeking fixes

Recommendations

Infrastructure Hardening

  • Reduce internet exposure of administration panels and file-transfer servers
  • Put management interfaces behind access controls
  • Apply WAF rules for known PHP2Shell exploitation patterns
  • Track bundled libraries like Brotli in software inventory

User Protection

  • Block fake exploit repositories on GitHub targeting PHP2Shell
  • Remove unnecessary PHP services from internet exposure
  • Restrict execution of unverified fix scripts requiring root

MITRE ATT&CK Mapping

MITRE ATT&CK Mapping5 techniques
IOCs · 1
.txt.json
Showing defanged values
  • cve
    CVE-2026-111497Vulnerability in Brotli library bundled by Node.js, Bun, Linux distributions, and Python packages.