PHP2Shell Exposure Hunting - Do you have it across your estate and where?? An Advanced Hunting pack for Defender XDR
Description
This content describes an advanced hunting pack for Microsoft Defender XDR designed to detect exposure to PHP2Shell vulnerabilities (CVE-2026-109618 and CVE-2026-109619) across Windows and Linux endpoints. The hunting queries identify active PHP processes, PHP engine DLLs, and web server activity to surface devices potentially running vulnerable PHP versions. The pack focuses on onboarded endpoints with a 30-day event lookback and does not cover dormant or unmanaged devices. It is intended to supplement existing IOC hunting methods by providing targeted detection of PHP2Shell exposure.
Reddit Discussion
I’ve spent the evening heavily developing and testing (in prod, where else) what appears to now be a relatively robust coverage set of 6 sequenced KQL/Advanced Hunting queries, 3 each across Linux and Windows. Sharing the love. Copy pasta, follow the in-line guidance - Might be useful in addition to your current methods! PRs welcome, if they don’t suck, and if my robot agrees.
https://github.com/deathbydata/php2shell-exposurehunt
This hunting set seeks to fill a gap while we all respond - there are plenty of IOC hunting repos, exposurehunt aims to help surface and verify known and unknown instances of naughty PHP.
Enjoy ☺️
Links cited in this discussion
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The repository provides a set of six sequenced KQL advanced hunting queries for Defender XDR, three each for Windows and Linux, to detect active PHP instances that may be vulnerable to PHP2Shell exploits. The hunts check for PHP executables, engine DLLs, installed software, and active web serving processes on specific ports. The detection logic uses regex patterns to identify PHP-related processes and modules, extracting version information where available. The hunting pack aims to identify devices running PHP that could be exposed to the PHP2Shell vulnerabilities, enabling defenders to verify and respond to potential exposures within their environment.
Potential Impact
The hunting pack itself does not describe a vulnerability or exploit but targets detection of exposure to known PHP2Shell vulnerabilities (CVE-2026-109618 and CVE-2026-109619). The impact is that organizations may have devices running vulnerable PHP versions that could be exploited if exposed. The hunting queries help identify such devices to enable timely remediation and reduce risk. No direct exploit or active compromise is indicated in the provided information.
Defensive Guidance
This content provides detection capabilities rather than a direct fix. Organizations should use the advanced hunting queries in Defender XDR to identify devices running PHP that may be vulnerable to PHP2Shell. Once identified, affected systems should be updated or remediated according to vendor guidance for CVE-2026-109618 and CVE-2026-109619. Patch status for these CVEs is not provided here; check the official vendor advisories for remediation details. No direct patch or fix is included in this hunting pack. The vendor manages Defender XDR platform updates, but endpoint remediation is the organization's responsibility.
Technical Details
- Source Type
- Subreddit
- blueteamsec+AskNetsec+Information_Security
- Reddit Score
- 0
- Discussion Level
- minimal
- Content Source
- reddit_link_post
- Post Type
- link
- Newsworthiness Assessment
- {"score":35,"reasons":["external_link","established_author","recent_news"],"isNewsworthy":true}
- Has External Source
- true
- Trusted Domain
- false
Threat ID: 6ada80894d27ba8daa7e5ea5
Added to database: 10/22/2026, 21:30:49 UTC
Last enriched: 10/22/2026, 21:30:55 UTC
Last updated: 10/23/2026, 04:15:18 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.