A server can be patched this afternoon and still leave an uncomfortable question hanging over the incident: did someone execute code on it before the fix went in? That is the gap between closing a vulnerability and understanding whether it was used.
GREYCORTEX highlighted that problem in its 22 October 2026 PHP2Shell playbook. The exploit chain combines two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, each rated CVSS 9.2. The flaws can allow unauthenticated remote code execution on servers processing PHP, including products that bundle PHP such as content management systems, control panels and appliances. The practical lesson for security teams is broader than one patch cycle: use network evidence to establish what happened before, during and after remediation.
Build the exposure list before hunting for alerts
Start by finding every place PHP runs. That means more than the main web servers. Include internet-facing applications, management consoles, appliances, hosted CMS platforms and vendor products that ship with their own PHP runtime. Record the service owner, public exposure, PHP version, web server configuration and the person responsible for applying the fix.
Prioritise systems that accept requests from the internet, then confirm the patched package with the relevant operating-system or product vendor. GREYCORTEX’s playbook lists fixed PHP releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP 8.1 and older no longer receive official PHP project releases, so teams on those branches need to check their distribution or long-term-support provider rather than assume a routine update is available.
This inventory also gives the SOC a useful reference when an alert arrives. An unfamiliar outbound connection from a test server is not the same as the same behaviour from a public application holding customer data.
Connect the web request to what the network did next
PHP2Shell investigations should not rely on one fixed signature. The exploit details can change, and encrypted traffic may hide the request body from a network sensor. GREYCORTEX recommends looking for behaviour that can be correlated across web, PHP and network records.
- Multipart POST requests containing the
PHP_SESSION_UPLOAD_PROGRESSfield. - A burst of HTTP 5xx responses after multipart requests, alongside PHP log messages such as memory exhaustion.
- Unusual or oversized PHP session identifiers in response cookies.
- A web process launching shells or utilities such as
curlandwget, reaching destinations the server has never contacted before, or probing internal hosts.
These clues become more useful when they are placed on one timeline. Match the request time to server errors, DNS lookups, outbound sessions, firewall events and activity on nearby systems. A network detection and response solution can add the communication context that application logs alone may not provide: which host talked to which destination, how often, how much data moved and whether another device became involved.
Follow the connection, not just the compromised server
If a PHP worker starts a shell or makes a new outbound connection, investigate the destination and the next step in the chain. Did the server retrieve a file? Did it scan an internal subnet? Did it contact a directory service, backup system or management interface it normally has no reason to reach?
This is where network visibility matters across mixed IT and OT environments. Some devices cannot run an endpoint agent, and some older systems are difficult to change quickly. Traffic analysis can still show communication patterns, unexpected services and new relationships between assets. It can also help distinguish an ordinary maintenance connection from activity that crosses network segments unexpectedly.
Be realistic about encrypted sessions: without visibility into the payload, a sensor cannot confirm the exact contents of every request. It can still help identify timing, endpoints, traffic volume and deviations from normal behaviour. Combine those signals with host logs and application evidence instead of treating any single alert as proof of compromise.
Preserve evidence before the cleanup starts
When exploitation is suspected, follow the incident-response process rather than immediately wiping or rebuilding the host. Isolate the affected server where operationally safe, preserve web and PHP logs, retain relevant packet captures and document the actions taken. Then patch the vulnerable runtime, restart the affected workers and review the application and operating-system layers for persistence or additional changes.
Credential rotation deserves special attention. GREYCORTEX notes that PHP worker memory may have held passwords, API keys, session secrets or TLS private keys. If exploitation may have exposed process memory, rotate the secrets those workers could access; a clean-looking file system is not enough to prove those values remained private.
After containment, keep monitoring the server and related destinations. Confirm that the vulnerable version is gone, the expected egress paths remain in place and no other host continues the suspicious communication.
Make the investigation repeatable for the next incident
Turn the exercise into a short playbook with clear owners: infrastructure identifies PHP assets and patches; the SOC correlates web and network evidence; application teams validate business impact; and incident response coordinates isolation, evidence preservation and credential rotation.
GREYCORTEX Mendel is designed to provide network traffic visibility, threat detection and investigation across IT and OT networks, with integrations to security infrastructure such as SIEM platforms, firewalls and network access control tools. In a PHP2Shell scenario, that kind of network context can help analysts move from an initial alert to a better-supported view of affected hosts and follow-on activity. It does not replace patching, secure application configuration or endpoint telemetry; it helps fill the gaps between them.
The important question after a PHP vulnerability is not only whether the server is now patched. It is whether the organisation can explain what the server communicated, what else may have been exposed and why the team is confident the incident is contained.
About GREYCORTEX
GREYCORTEX uses advanced artificial intelligence, machine learning, and data mining methods to help organizations make their IT operations secure and reliable.
MENDEL, GREYCORTEX’s network traffic analysis solution, helps corporations, governments, and the critical infrastructure sector protect their futures by detecting cyber threats to sensitive data, networks, trade secrets, and reputations, which other network security products miss.
MENDEL is based on 10 years of extensive academic research and is designed using the same technology which was successful in four US-based NIST Challenges.
About Version 2 Limited
Version 2 Digital is one of the most dynamic IT companies in Asia. The company distributes a wide range of IT products across various areas including cyber security, cloud, data protection, end points, infrastructures, system monitoring, storage, networking, business productivity and communication products.
Through an extensive network of channels, point of sales, resellers, and partnership companies, Version 2 offers quality products and services which are highly acclaimed in the market. Its customers cover a wide spectrum which include Global 1000 enterprises, regional listed companies, different vertical industries, public utilities, Government, a vast number of successful SMEs, and consumers in various Asian cities.

