Table of Contents (click to expand)
- About The Project
- Quick Feeds for Defenders
- Vulnerability Matrix & Threat Landscape
- Technical Documentation
- Getting Started & Local Development
- Roadmap
- Contributing
- License & Disclaimer
- Acknowledgments & Sources
📌 About The Project
PHP2Shell refers to two actively exploited, critical zero-day vulnerabilities in PHP core:
- CVE-2026-109618 (Out-Of-Memory Multipart Parser Corruption)
- CVE-2026-109619 (PHP Worker Thread Use-After-Free)
These vulnerabilities allow unauthenticated attackers to achieve Remote Code Execution (RCE) on target web servers simply by delivering crafted multipart HTTP payloads—affecting PHP versions from 5.4 through 8.5.11 across all major Server APIs (php-fpm, mod_php, frankenphp, and lsphp).
This repository acts as an authoritative, centralized defender asset. It collects threat telemetry from global honeypots, vendor advisories, and active scanning networks, normalizes indicators into validated formats, and publishes line-delimited plain-text blocklists ready for instant firewall, EDR, and SIEM consumption.
Core Principles
- Defenders First: Feeds are zero-friction and line-delimited. No API keys, tokens, or parsing wrappers are required for edge enforcement.
- Strict Provenance: Every indicator retains earliest
first_seen timestamps, reporter attribution, confidence rating, and vulnerability context.
- Zero Weaponized Code: This repository does not host exploits, weaponized payloads, or binary drops.
- Surgical & Lean: Minimal standard-library-first pipelines with 100% test coverage and strict validation schemas.
Built With
(back to top)
🚀 Quick Feeds for Defenders
These feeds are raw, line-delimited plaintext blocklists served via GitHub raw CDN. They update automatically and are designed for direct drop-in integration into firewalls, proxies, EDRs, and DNS sinkholes:
| Feed Type |
Raw URL (Copy & Paste) |
Format |
Indicators |
Refresh Cadence |
Primary Use Case |
| IPv4 Blocklist |
iocs/ips.txt |
Plain Text (\n) |
267 |
Daily / Scheduled |
Firewall Inbound Drop (Palo Alto, FortiGate, pfSense) |
| Domain Blocklist |
iocs/domains.txt |
Plain Text (\n) |
26 |
Daily / Scheduled |
DNS Sinkholes (Pi-hole, AdGuard), Proxy Deny Lists |
| SHA-256 Hashes |
iocs/hashes.txt |
Plain Text (\n) |
30 |
Daily / Scheduled |
EDR File Blocks (CrowdStrike, SentinelOne, Defender) |
| Canonical CSV |
iocs/php2shell_iocs.csv |
CSV |
346 |
Daily / Scheduled |
SIEM Data Lookups, SOAR Enrichment, SOC Analysis |
| Canonical JSON |
iocs/php2shell_iocs.json |
Structured JSON |
346 |
Daily / Scheduled |
Automated Ingestion APIs, MISP & Threat Intel Platforms |
Automated Ingestion Snippets
Fetch the latest threat blocklists in real time with zero overhead:
# Ingest malicious IPv4 addresses
curl -sSL "https://raw.githubusercontent.com/naravid19/php2shell-ioc/main/iocs/ips.txt" -o /etc/firewall/php2shell_ips.txt
# Ingest malicious C2 & dropper domains
curl -sSL "https://raw.githubusercontent.com/naravid19/php2shell-ioc/main/iocs/domains.txt" -o /etc/pihole/php2shell_domains.txt
# Ingest malicious payload SHA-256 hashes
curl -sSL "https://raw.githubusercontent.com/naravid19/php2shell-ioc/main/iocs/hashes.txt" -o /etc/edr/php2shell_hashes.txt
(back to top)
⚡ Vulnerability Matrix & Threat Landscape
[!IMPORTANT]
Both vulnerabilities are being exploited in the wild across unpatched enterprise workloads. Threat actors actively chain CVE-2026-109618 and CVE-2026-109619 to bypass modern ASLR implementations without requiring local information disclosure.
| Attribute |
CVE-2026-109618 |
CVE-2026-109619 |
| Vulnerability Class |
Out-of-Memory (OOM) Heap Buffer Corruption |
Worker Thread / SAPI Use-After-Free (UAF) |
| CVSS v4.0 Score |
9.2 (Critical) |
9.2 (Critical) |
| Attack Vector |
Network (AV:N) / Unauthenticated (PR:N) |
Network (AV:N) / Unauthenticated (PR:N) |
| Attack Complexity |
Low (AC:L) |
Low (AC:L) |
| User Interaction |
None (UI:N) |
None (UI:N) |
| Scope |
Changed (S:C) |
Changed (S:C) |
| Affected SAPIs |
php-fpm, mod_php, frankenphp, lsphp |
php-fpm, mod_php, frankenphp, lsphp |
| Affected Versions |
PHP 5.4 through 8.5.11 |
PHP 5.4 through 8.5.11 |
| Patched Releases |
PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35 |
PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35 |
| Emergency Workaround |
Disable session.upload_progress.enabled |
Restrict body size & deploy virtual WAF patches |
For complete vulnerability deep-dives, heap layout analysis, and exploitation mechanics, see docs/threat_overview.md.
(back to top)
📚 Technical Documentation
Explore detailed architectural and operational documentation curated for blue teams, incident responders, and detection engineers:
| Document |
Focus & Contents |
Primary Audience |
| 📖 Threat Overview |
Technical analysis of OOM and UAF heap corruption, exploitation timelines, and SAPI impact matrix. |
Threat Researchers & Analysts |
| 🛡️ Detection & Hunting Guide |
Sigma rules for PHP worker processes, ModSecurity/Coraza WAF rules, KQL/Splunk/Elastic hunting queries. |
SOC Analysts & Detection Engineers |
| 🔒 Mitigation & Hardening Guide |
Official patching matrix, emergency php.ini mitigations (upload_progress = Off), and Apache hardening. |
System Administrators & DevOps |
| 🔌 Defender Integration Guide |
Integration walk-throughs for FortiGate, Palo Alto PAN-OS, pfSense/pfBlockerNG, Pi-hole, and SIEMs. |
Firewall Engineers & Network Admins |
(back to top)
🛠️ Getting Started & Local Development
Prerequisites
- Python 3.10+
- Git
- Optional: Virtual environment manager (
venv / pipenv / poetry)
Installation & Setup
Clone the repository:
git clone https://github.com/naravid19/php2shell-ioc.git
cd php2shell-ioc
Create and activate a virtual environment:
python -m venv .venv
# On Linux / macOS:
source .venv/bin/activate
# On Windows PowerShell:
.venv\Scripts\Activate.ps1
Install dependencies:
pip install -r requirements.txt
CLI Usage
Execute the collection pipeline locally against all configured sources:
# Run the collector across all sources in config/sources.json
python scripts/collect_iocs.py
# Perform a dry-run (validates and parses without overwriting output files)
python scripts/collect_iocs.py --dry-run
# Run against a single specific source
python scripts/collect_iocs.py --source fortiguard_outbreak
# Specify custom configuration or export directories
python scripts/collect_iocs.py --config config/sources.json --output-dir iocs/
Running Tests
This project follows strict Test-Driven Development (TDD). Every parser, normalizer rule, and extraction path is covered by automated unit and regression tests:
# Run pytest with full verbosity
python -m pytest -v
# Run tests with short failure reporting
python -m pytest --tb=short
(back to top)
🗺️ Roadmap
- Ingest initial honeypot telemetry (Amazon MadPot & OffSeq Mirage baseline)
- Integrate FortiGuard Outbreak intelligence feed
- Build multi-format export pipeline (
csv, json, ips.txt, domains.txt, hashes.txt)
- Publish Sigma rules, ModSecurity virtual patches, and hunting queries
- Implement automated GitHub Actions feed synchronization
- Implement direct MISP taxonomy export format (
misp-events.json)
- Add STIX 2.1 / TAXII 2.1 server-compatible JSON endpoints
- Add Suricata / Snort 3 rule generator script from active IPs/domains
(back to top)
🤝 Contributing
Contributions from the cybersecurity community, blue teamers, and threat researchers are welcome!
- Fork the Project.
- Create your Feature / Indicator Branch (
git checkout -b feat/new-source-feed).
- If submitting new IoCs or parsers:
- Ensure indicators have verified provenance or external report URLs.
- Add parser test fixtures under
tests/.
- Run
pytest -v to ensure 100% test pass rate.