Malware

How PHP2Shell urgency became an attack vector: A Rust RAT aimed at researchers

PHP2Shell threat analysis

Threat snapshot
Threat type Trojanized PoC repository delivering a remote access Trojan targeting security researchers
Bait vulnerability CVE-2026-109618 and CVE-2026-109619 (PHP2Shell), CVSSv4 9.2, disclosed October 21, 2026
Tracked as Not attributed to a named group. Chinese-language strings and infrastructure observed
Details
Platform Windows OS (x86_64)
Primary artifact exp复现执行.exe, a Rust-based multi-stage RAT
Delivery mechanism GitHub repository cloned from legitimate security research, with a single executable added; promoted through a Chinese-language Telegram channel
Execution trigger No automated trigger. Execution depends entirely on a researcher choosing to run the file. Because the PoC itself is Linux-based, the Windows executable beside it looks like the version intended for Windows users
Payload Rust remote access tool (RAT) with remote desktop, interactive shell, fileless execution, .NET hosting, network tunnelling, and Alibaba Cloud exfiltration
Persistence Not confirmed. Operator error strings describe service installation, but the binary imports no service or registry APIs and the .NET payload could not be retrieved from the inactive C2

Executive Summary

On October 21, 2026, PHP disclosed two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, collectively known as PHP2Shell. Both carry a CVSS v4.0 score of 9.2 and allow unauthenticated remote code execution on vulnerable servers. Given PHP’s widespread use, the disclosure rightly raised urgent security concerns. Organizations running affected versions should patch immediately.

Within a day, a researcher published a working proof-of-concept (PoC) on GitHub, attracting more than 1,500 stars. The following day, another account copied the repository and added two files, one of them a Windows executable with a Chinese filename meaning “exploit reproduction execution.” The documentation never mentions it, and no script in the repository invokes it. To a researcher on Windows, where reproducing the Linux-based PoC means setting up Docker first, the executable looks like a shortcut.

The executable is a Rust-based, multi-stage remote access Trojan. It provides remote desktop, interactive shell, file and process control, in-memory payload execution, and cloud exfiltration. It resolves its command-and-control (C2) infrastructure over DNS-over-HTTPS and encrypts its traffic independently of TLS. Compiled 44 days before the PHP2Shell disclosure, it appears not to have been built for this campaign. The attacker already had it and found an opportunity to deploy it.

On October 24, METAL (ManageEngine Threat Analysis Lab) identified the repository through an internal threat intelligence tracker that had scanned 1601 repositories associated with PHP2Shell. One was malicious. Endpoint Central EDR’s machine learning engine classified the executable as malicious before execution, when no security vendor had publicly detected it.

The campaign targets researchers, not a particular industry. Compromising a researcher’s machine can give an attacker access to credentials, offensive tools, and potentially privileged systems.

This report examines the campaign and assesses PHP2Shell’s real-world exploitability. METAL independently reproduced both vulnerabilities and found that a working lab exploit cannot be transferred to an arbitrary production server without significant adaptation.

PHP2Shell: Two critical bugs in PHP’s core

CVE-2026-109618 and CVE-2026-109619, collectively known as PHP2Shell, were disclosed on October 21, 2026. Both carry a CVSS v4.0 score of 9.2 and affect PHP versions earlier than 8.2.35, 8.3.36, 8.4.27, and 8.5.12, including several end-of-life releases.

Both allow unauthenticated code execution, meaning attackers need no credentials and do not need to exploit a vulnerability in the hosted application. CVE-2026-109618 is a memory corruption flaw triggered through PHP’s error-handling path. CVE-2026-109619 is a use-after-free caused by stale global state left behind when a fatal error interrupts cleanup. PHP confirmed it is reachable through several paths, including session upload progress and, on PHP 8.5, fatal-error backtraces.

With PHP powering an estimated 70 percent of websites, the disclosure raised concerns about widespread exposure. However, potentially affected systems and systems that can actually be exploited are two different things. METAL investigated this distinction through an exploitability assessment, which we discuss later in this report.

The repository: Legitimate research, plus one executable

Within a day of the PHP2Shell disclosure, a security researcher known as 9bie published an exploit reproduction on GitHub under 9bie/php2shell-bypass-aslr-exp. The repository included a working Python PoC, a Docker test environment, debugger traces, and ten research documents.

The work gained more than 1,500 stars and 438 forks. The researcher’s account had 62 repositories and 820 followers.

On October 22, a GitHub account named brigaddefin-del published a repository called phpshell, reproducing 9bie’s work in full and without changes. Every file from 9bie’s repository was copied across unaltered, however two new files were added.

The first, exp复现执行.exe, is a 371KB Windows executable. Its Chinese filename translates to “exploit reproduction execution.” This is the Trojanized binary examined in the rest of this report.

The second, 新建文件夹.rar, is a 163KB archive named after Windows’ default label for a new folder: “New Folder.” It contains no malware. Instead, it holds the original repository’s tools/ directory and an empty folder named php2shell-bypass-aslr-exp-main, the default directory name used when GitHub repositories are downloaded as ZIP files. This is the actor’s own working directory, uploaded by mistake.

Evidence of cloning

The actor left several traces of how the repository was assembled.

The README still instructs the reader to clone the original. The command reads git clone https://github.com/9bie/php2shell-bypass-aslr-exp.git, pointing at the repository the actor copied from rather than their own. They edited the README to add their Telegram channel but did not change the clone URL.

The repository’s commit history is a record of every change made to it. Real development accumulates over weeks, as code is written, tested, and revised. This repository has ten, all made on October 22 within a 25-minute window through GitHub’s web upload page, under the author name ai智能体, which translates as “AI agent.” That is the signature of a folder uploaded in one pass, not a project someone built.

In the original repository, tools is a directory containing 215 scripts. In the clone it is an empty one-byte file. The directory was flattened during the bulk upload, which is also why its actual contents ended up in the RAR archive instead.

The log files, research documents, and exploit script all match the original.

The same technique appears in how the repository was promoted. The actor created a Telegram channel, @php2shellexp, on the same day and linked it from the README. Alongside the repository, the channel distributed two sets of exploit materials for MacCMS 10, a Chinese video content management system: a vulnerability write-up and a collection of Python PoC scripts. Neither of the MacCMS files contains malware. They are legitimate research tools that security professionals share openly, and posting them made the channel look like the work of an active researcher. The actor wrote none of it: not 9bie’s repository, not the MacCMS tools. Both were taken from others and republished to build a reputation the actor had not earned.

No compromise involved

Despite how the campaign may appear, there was no compromise of PHP, GitHub, or 9bie’s account or repository. The actor copied publicly available research material, republished it under their own GitHub account, and added the Trojanized executable.

Execution: Why a researcher runs it

Most Trojanized repositories hide their payload inside something the victim is already going to run, such as an install script or a build configuration. This one takes a different approach. The executable is referenced nowhere in the repository, and the attack depends entirely on a researcher deciding to run it unprompted.

How the lure works

The repository root looks like this:

├── exploit.py            ← the legitimate Python exploit
├── exp复现执行.exe       ← the trojanized binary
├── 新建文件夹.rar        ← the actor's staging folder
├── docker/               ← Docker lab environment
├── logs/                 ← 50+ debugger traces and captures
├── lab/                  ← Apache lab configuration
├── src/php-8.4.26.tar.gz ← PHP source archive
├── tools                 ← empty file
└── *.md (×12)            ← research notes and READMEs

The README instructs users to run python3 exploit.py inside a Docker container. This is the genuine PoC, and it works, but testing it requires Docker, a Linux environment, and a vulnerable PHP build. For a Windows user, this means spending time setting up the environment before running the exploit.

In the same directory, however, sits an executable with a Chinese filename that presents itself as a ready-to-use reproduction tool. To a Windows user, it appears to offer a simpler alternative to the Linux-based script. This is not an unreasonable assumption. Security research toolkits are commonly published with a compiled Windows utility sitting alongside the Linux version, as a convenience for users on either platform. The Chinese filename also makes its purpose less obvious to readers who do not understand the language. Rather than raising suspicion, it reads as just another technical filename, which discourages a closer look.

The platform reveals the target

The PoC runs on Linux, as do most servers running a vulnerable PHP. An attacker targeting those servers has little use for a Windows executable.

But the added executable runs only on Windows. This points to the real target: the researcher, not the vulnerable server. The actor appears to have understood that researchers would use Windows workstations to analyze Linux-based systems.

This was social engineering, not exploitation. The attacker made the executable appear legitimate and relied on the researcher to run it.

What the researcher sees

The executable runs silently, requires no administrator privileges, and opens no visible window. Within a second, the implant attempts to contact its C2 server.

To the researcher, nothing happens. The file appears not to work, making it easy to move on to the Docker-based PoC without noticing the infection.

AI-assisted workflows

Researchers increasingly use large language models to find, understand, and run PoC code. These workflows speed up research, but they also reduce manual inspection of repository contents, removing the moment where someone might have asked what an unreferenced Windows executable was doing in a Linux exploit repository.

The actor appears to have been working the same way. All ten commits were authored under the name ai智能体, meaning “AI agent.”

Discovery: 1601 repositories, one malicious

METAL PHP2Shell Threat Intel Tracker dashboard with repository counts and one critical alert

Figure 1: The PHP2Shell Threat Intel Tracker

The executable did not arrive from a victim report. METAL found it by looking for it.

The tracker

When a major vulnerability is disclosed, PoC code follows within days and surfaces in predictable places: public repositories such as GitHub, package registries such as npm, and the channels where exploit code circulates, including Telegram and Discord. Those are also the places a threat actor will put a Trojanized version, for the same reason a researcher goes there to look.

METAL operates an internal threat-hunting system, the PHP2Shell Threat Intel Tracker, that monitors those sources on a schedule. It collects candidate repositories tied to a CVE cluster, triages each one automatically, scores it, and submits any binary it finds to Endpoint Central EDR’s machine learning engine. By the time of this analysis, it had evaluated 1601 repositories connected to PHP2Shell. One was malicious.

What the triage caught

On October 24, 2026, the tracker flagged brigaddefin-del/phpshell as malicious, assigning it a risk score of 98. Automated triage identified several independent indicators:

  • An unsigned, prebuilt Windows executable with no source code or references in the repository.
  • Remote-access commands for heartbeat, interactive shell, screen control, tunneling, and file deletion. It matched all nine remote-access markers checked by the triage system.
  • Raw socket imports and cloud-storage credential fields, consistent with a C2 agent rather than an exploit runner.
  • PE metadata identifying it as Microsoft’s Runtime Broker, despite being an unsigned Rust binary with no debug information.
  • Strings describing a host-fingerprinting beacon and commands for file operations, downloads, screenshots, tunneling, and plugin installation, carried over WebSocket with DNS-over-HTTPS resolution and no plaintext C2 host.
  • A commit history inconsistent with genuine development. The repository had no stars or releases and belonged to an account created in March 2026.
  • A README promoting a Telegram channel and documenting only exploit.py, without mentioning the executable.
  • File lineage showing that 60 of the repository’s 80 files were byte-identical to those in 9bie/php2shell-bypass-aslr-exp. The original contained no executable.

A METAL analyst reviewed and confirmed the alert, and the analysis in this report followed.

Detection

Endpoint Central EDR’s machine learning engine classified exp复现执行.exe as malicious before execution. The file was four days old with no public detections and no VirusTotal reports, so there was no signature to match and no reputation to check.

METAL detonated the sample in a controlled environment. Its C2 server at 107.151.212.122:9090 was unresponsive and remained so throughout the analysis.

With no operator to reach, the implant had nothing to do. The capabilities described later in this report are all operator-driven: the remote desktop stream, the interactive shell, the tunnels, and the in-memory payloads only activate on command. None of them ran, so none were observed behaviorally.

That is a limitation worth stating plainly, and it is why parts of this analysis rest on static examination of the binary rather than on observed behavior. It is also why the .NET assembly that the implant is built to load could not be retrieved, which we'll discuss more in detail in the Persistence: Error strings that describe what the binary cannot do section below.

For a victim, the pre-execution verdict is the one that counts. A file blocked before it runs never reaches the point where any of that behavior begins. The indicators from this analysis have been added to ManageEngine’s threat intelligence database.

VirusTotal

At the time of analysis, this sample had no VirusTotal presence at all. METAL submitted it on October 26, 2026, so that other vendors could build coverage.

The binary: Built 44 days before the CVEs

This is a single-file implant. The capabilities covered in the rest of this report are all compiled into the single file described below.

Properties of the analyzed sample
Property Value
SHA-256 c6a73f834f47c5e86eda142647d5e99ba3279d868ad83a07c300304bac26e9e4
MD5 f8ea9d466e06c2e991788a23bae9be4f
Imphash 5d0a0524d37943d1d4fcc4cd4f5c8134
File size 379,904 bytes (371KB)
Format PE32+ x86_64, GUI subsystem
Compiler Rust, target x86_64-pc-windows-msvc
Linker Microsoft Linker 14.36.35228
Image base 0x140000000
Entry point 0x140046970
Functions 1,176
Defined strings 511
PE version info RuntimeBroker.exe 10.0.19041.5794, Microsoft Corporation
Compile timestamp 7 September 2026, 18:52:36 UTC

The timestamp

The Portable Executable (PE) header records a compile time of September 7, 2026, 44 days before PHP2Shell was disclosed. The implant predates the vulnerability it was used to promote.

PE timestamps can be forged, but there are no clear signs of tampering. The Rust and MSVC toolchain versions are consistent with a September build, and an actor wanting to mislead would more likely backdate much further or set the timestamp to zero.

This suggests the actor did not develop the implant for this campaign. They already had it, and PHP2Shell provided an opportunity to deploy it. The binary supports this: its fileless execution module handles .exe, .elf, .so, and .dylib files, indicating cross-platform capabilities unnecessary for a Windows-only campaign targeting PHP researchers.

The implant is carefully engineered, but the campaign shows several operational mistakes documented earlier in this report. That gap usually means the person who built the tool and the person who used it are not the same, and that this operator acquired the implant rather than writing it.

A workspace, not a payload

Rust binaries retain their source paths in debug and panic-handling strings, which exposes how the project was organized. This one is a Cargo workspace with separate crates:

project/
├── crates/
│   ├── crypto/
│   │   ├── src/aead.rs        AEAD authenticated encryption
│   │   └── src/kdf.rs         key derivation
│   ├── transport/
│   │   ├── src/ws.rs          WebSocket transport
│   │   ├── src/dns.rs         DNS-over-HTTPS resolution
│   │   ├── src/udp.rs         UDP channel
│   │   ├── src/oss.rs         Alibaba Cloud OSS client
│   │   └── src/sha1.rs        SHA1 for the WebSocket handshake
│   └── winind/
│       └── src/lib.rs         Windows host identification
└── src/
    ├── memexec.rs             fileless PE execution
    ├── peload.rs              manual PE loader
    ├── clrhost.rs             .NET CLR hosting
    ├── conpty.rs              interactive pseudo-terminal
    ├── screen.rs              screen capture
    ├── tunnel.rs              network tunnelling
    ├── guard.rs               watchdog
    ├── fileops.rs             file operations
    ├── runtime.rs             implant runtime
    ├── huffman.rs             JPEG compression
    ├── encoder.rs             image encoding
    └── image_buffer.rs        screenshot buffering

The structure matters more than any individual module. Separating crypto and transport into their own crates is how a developer organizes code they expect to reuse and maintain, not how someone assembles a single-use payload. Four transport channels are implemented side by side. The crypto crate implements its own authenticated encryption and key derivation rather than relying on TLS, which means payload confidentiality survives network inspection.

The binary also carries hashbrown, a standard Rust library, at version 0.17.1. That release was current when the implant was compiled, which points to a project under active development rather than an old codebase recompiled for this campaign.

Imports and dependencies

Imports and dependencies of the implant
DLL Key imports Purpose
WS2_32.dll WSASocketW, WSADuplicateSocketW Raw socket creation, socket duplication for tunnelling
KERNEL32.dll GetProcessHeap, GetCurrentProcess, ExitProcess, FindFirstFileExW, GetSystemInfo Memory management, process introspection, file enumeration, host fingerprinting
bcryptprimitives.dll ProcessPrng Cryptographic random number generation
ADVAPI32.dll SystemFunction036 RtlGenRandom, used by the Rust standard library
dbghelp.dll Sym* via GetProcAddress Debug symbol handling for panic reporting

The import table is notable because of what it's missing. There are no service management functions, no CreateServiceW or OpenSCManagerW, and no registry functions such as RegSetValueExW. This matters because the binary contains error strings describing exactly those operations, a contradiction covered in the persistence section.

The masquerade

The PE version resource declares the file to be RuntimeBroker.exe, version 10.0.19041.5794, with Microsoft Corporation copyright. It is a genuine Windows 10 20H1 component that lives in C:\Windows\System32 and runs on every Windows system, making it unremarkable in a process list.

The file is unsigned. A real Microsoft binary carries a valid Authenticode signature, so the masquerade survives a glance at the process name and fails the moment anyone checks the signature or the path.

Capabilities: Twelve modules behind one dispatcher

The implant routes operator commands through an internal dispatch mechanism, visible in the binary as getif_slot, start_slot, and dom_slot. Capabilities are registered as slots rather than hard-wired into a single command handler, which is consistent with the modular workspace structure described in the previous section.

Capabilities of the implant, with source modules and error codes
Capability Source module Error code Detail
Remote desktop and screen capture screen.rs, image_buffer.rs, huffman.rs, encoder.rs E030 Full remote desktop. Frames are JPEG-compressed and returned as base64
Interactive shell conpty.rs — ConPTY pseudo-terminal, with output returned as pty_data
File operations fileops.rs — Chunked base64 transfer, with permissions displayed in Unix style
Fileless PE execution memexec.rs, peload.rs E042 Dispatches on extension across .exe, .elf, .so and .dylib, entirely in memory. Payloads leave no file on the disk for later recovery
.NET CLR hosting clrhost.rs E041 Loads assembly wsp (v0.0.0.0, unsigned), entry class MainProgramApp
Network tunneling tunnel.rs E040 TCP by default, with a udp: prefix selecting UDP mode
Cloud exfiltration crates/transport/src/oss.rs E021 Alibaba Cloud OSS PUT with a signed authorization header
File and process deletion dispatcher — delfile and delprocess, allowing an operator to remove artifacts and terminate processes, including forensic and security tooling
System fingerprinting inline E001 Registration beacon reporting hostname, username, OS, local IP, and process path
Process masquerading PE metadata — Version info claims RuntimeBroker.exe
DNS-over-HTTPS crates/transport/src/dns.rs — Domain resolution via /dns-query, placing C2 lookups inside encrypted traffic to legitimate providers rather than in DNS logs
AEAD encryption crates/crypto/src/aead.rs, kdf.rs — Payload encryption independent of TLS, so traffic remains opaque even where HTTPS is intercepted and inspected
Slot-based dispatch runtime — Modular capability loading

The last four entries, process masquerading, DNS-over-HTTPS, AEAD encryption, and slot-based dispatch, are properties of the implant rather than things an operator invokes. The transport and encryption capabilities are covered below in the Command and control: Hiding in ordinary traffic section.

Three numbered control commands sit alongside the capabilities above: 1 terminates the implant, 2 adjusts the beacon interval, and 3 places the implant into a degraded, low-activity mode. A degraded mode reduces the implant’s activity to evade behavioral detection that keys on beacon regularity.

The screen capture capability deserves attention. screen_input injects mouse and keyboard events, which makes this interactive remote control rather than passive observation.

Error codes

The implant carries a structured error taxonomy, which is itself evidence of maintained software rather than a single-use payload: E001 for registration or fingerprinting failure, E021 for OSS bucket operations including E021:missing bucket, E030 for screenshot capture failure, E040 for an empty tunnel target, E041 for in-memory execution stages (load3, entry, invoke), E042 for fileless execution errors, and E050 for task dispatch.

Additional command strings

Triage recovered further command strings that do not appear in the capability analysis above: ls, rm, mkdir, modifytime, wget, run, upload, download, screenshot, plugin install, and handling for PowerShell tasks. The tracker also recorded tunnel_up alongside tunnel_down. Their behavior has not been separately analyzed.

Two are worth noting. modifytime indicates timestamp modification, an anti-forensic technique used to disguise when files were created or altered. plugin install suggests the implant accepts extensions beyond its compiled capabilities, which would be consistent with the slot-based dispatch described above.

Command and control: Hiding in ordinary traffic

The implant does not rely on a single channel. It carries four, each handling a different part of its communication: WebSocket for control, Alibaba Cloud storage for file exfiltration, UDP as a fallback if WebSocket fails, and DNS-over-HTTPS to resolve where the control server is.

C2 operator connected to WebSocket, Alibaba OSS and UDP channels, an AEAD layer and DNS-over-HTTPS

Figure 2: The implant's multi-channel C2 architecture.

Resolution over DNS-over-HTTPS

Rather than using the operating system’s DNS resolver, the implant resolves its C2 domains itself by sending DNS queries as HTTP POST requests to DNS-over-HTTPS endpoints:

POST /dns-query HTTP/1.1
Host: <DoH-resolver>
Content-Type: application/dns-message
Content-Length:
Connection: close

The queries travel as encrypted HTTPS to well-known providers such as Cloudflare or Google, so they never appear in DNS logs and never reach intrusion detection that inspects DNS traffic. Browsers resolve the same way, which makes the implant’s lookups difficult to separate from ordinary web activity. It also rules out sinkholing, the standard technique of intercepting a malware DNS lookup and redirecting it to a controlled server, because there is no plaintext query to intercept.

The binary exposes the life cycle states of this process: dns up, dns end, nch for the nonce handshake, and hex for hex encoding.

The WebSocket channel

The primary control channel is a standard RFC 6455 WebSocket upgrade, with SHA1-based key verification implemented in crates/transport/src/sha1.rs, declaring Sec-WebSocket-Version: 13. Once established, the full-duplex connection carries commands and responses in both directions.

On connection, the implant registers itself:

{"type":"register","hostname":"","username":"",
"os":"<os_type>","localip":"<local_ip>","process":"<process_path>"}

It then maintains the session with a periodic heartbeat:

{"type":"heartbeat","ping":<unix_timestamp>}

Commands arrive in JSON format with a consistent field structure: action for the command type, path for a target file or resource, name for a resource identifier, description for command metadata, procArg for process or command arguments, filename for a target filename, time as a Unix timestamp, to for a destination target, and content for payload data, usually base64.

Responses follow the same pattern, with terminal output and screen frames returned as base64:

{"type":"pty_data","data":"<base64_output>"}
{"type":"screen_frame","data":"<base64_jpeg>"}

Exfiltration through Alibaba Cloud

File exfiltration does not travel over the WebSocket channel. The implant uploads to Alibaba Cloud Object Storage Service using signed HTTP PUT requests:

PUT <object-path> HTTP/1.1
Host: .oss-.aliyuncs.com
Date: <RFC1123-date>
Content-Length:
Authorization: OSS :
Connection: close

The Authorization: OSS header format and the E021:missing bucket error string confirm the integration. The binary carries full HTTP date formatting components, including day and month names and the GMT designator.

Alibaba Cloud gives the operator legitimate infrastructure with worldwide reach and high bandwidth. Blocking it outright is difficult in any network with normal business reason to communicate with Alibaba services, so the upload travels over a destination most organizations have no policy against.

Encryption

Every C2 payload is encrypted with the implant’s own authenticated encryption, independent of the TLS that may or may not be carrying it. An organization running HTTPS inspection would terminate the outer layer and find encrypted content underneath.

Session keys are derived by a custom key derivation function in crates/crypto/src/kdf.rs from embedded seed material. The AEAD cipher in crates/crypto/src/aead.rs then encrypts with authentication tags.

Two high-entropy blobs are embedded in the binary: 64 bytes at 0x14004dba0, likely the master key or the HMAC key used for OSS request signing, and 44 bytes at 0x14004dc00, immediately preceding the WS_GUARD identifier and likely the WebSocket session key seed. A standard base64 alphabet sits at 0x1400528b8 for payload encoding.

The server

The implant’s C2 endpoint is 107.151.212.122:9090, reached over TCP. The address is not stored in the binary as plaintext. METAL recovered it through static analysis of the binary’s construction logic rather than by reading a string or observing a connection.

The server was unresponsive throughout METAL’s analysis, but that does not mean the campaign is over. The implant, the technique, and the repository all survive infrastructure rotation, and the actor can set up a new server without touching any of them.

Persistence: Error strings that describe what the binary cannot do

Two Chinese-language error strings sit in the binary’s data section, both describing how the implant installs itself:

Error strings in the data section describing service installation
Address String Translation
0x14004db8a E017:需要管理员权限才能安装系统服务 E017: Need administrator permissions to install system service
0x14004db58 权限不足,已改为当前用户登录启动 Insufficient permissions, changed to current user login startup

Read on their own, these describe a conventional dual-mode design. The implant attempts to install itself as a Windows service, which survives reboots and runs before any user logs in. If it lacks the administrator rights that it requires, it falls back to a per-user login startup entry, which is less durable but needs no elevation.

The binary cannot do either. As set out in the binary analysis, it imports none of the service management or registry functions those operations require.

Where the capability most likely sits

The implant hosts the .NET runtime. It is built to load an assembly named wsp, version 0.0.0.0, unsigned, with entry class MainProgramApp, through the CLR hosting interface in clrhost.rs.

That assembly is not in the binary. It arrives from the C2 server at runtime. Managed .NET code has access to System.ServiceProcess and Microsoft.Win32, which provide exactly the service installation and registry-based startup the error strings describe. The native binary would then report failures using its own error taxonomy, which is consistent with E017 living in the Rust code while the operation itself happens elsewhere.

This is the most plausible reading of the evidence, and it is not a confirmed one. METAL could not retrieve the wsp assembly, because the C2 server was unresponsive.

Treat persistence as possible rather than established. An implant that reaches its operator can request the assembly and gain whatever that assembly implements, so a host that ran this file should not be assumed clean on the basis that no service or registry artifact was found.

Attribution: What the indicators show

Several indicators point to a Chinese-language operating context.

The implant’s error messages are written in Chinese and intended for the operator, not the victim, which places the developer interface in Chinese rather than indicating anything about the targets. The same pattern appears elsewhere: the executable is named exp复现执行.exe (exploit reproduction execution), the Telegram channel is called php2shell漏洞研究分享 (PHP2Shell vulnerability research sharing), and the commits are attributed to ai智能体 (AI agent). The README is also written in Chinese, with an English translation in a separate file.

The implant exfiltrates files to Alibaba Cloud Object Storage Service, used predominantly by Chinese organizations, using its specific authorization signature format. The Telegram channel also shared exploit materials for MacCMS 10, a Chinese video content management system with a predominantly Chinese user base.

These indicators do not establish the actor’s identity or link the campaign to a known threat group. METAL does not attribute this campaign to a named actor.

Exploitability: Severe, but not universal

METAL independently reproduced both CVE-2026-109618 and CVE-2026-109619, achieving full unauthenticated remote code execution in a controlled lab within days of disclosure. Both are severe vulnerabilities that require immediate patching.

However, METAL’s analysis found that real-world exploitation is considerably more difficult than current online reports suggest.

Why the lab result does not transfer

Despite their CVSS v4.0 score of 9.2 and claims of widespread exposure, no exploit script in circulation compromises arbitrary PHP servers. The exploit must be adapted to each target environment; a working lab exploit cannot simply be transferred to another server.

Memory addresses and internal structures differ across PHP builds, even at the same version. Distribution patches, compiler versions, and optimization flags introduce further differences. An exploit developed for Ubuntu, for example, may not work against the same PHP version on Fedora. Building one requires obtaining or reverse-engineering the target’s exact PHP binary.

ASLR randomizes memory addresses at every process start, requiring an environment-dependent information leak. Web server configurations, PHP settings, and process management models introduce further constraints. Nginx, Apache, LiteSpeed, IIS, and Caddy handle PHP execution differently, while hardened and containerized deployments may disable settings the exploit requires.

Memory manipulation must also account for changing runtime conditions, including concurrent traffic and previous requests. Sustained network access is essential, but load balancers, reverse proxies, WAFs, CDNs, and rate limiters can disrupt the attack.

Each obstacle requires separate reconnaissance or reverse engineering, and failure at either one prevents exploitation. Building a reliable exploit across environments requires considerable expertise in PHP internals, memory management, and web server architecture.

METAL’s honeypot infrastructure has recorded no successful exploitation of either vulnerability.

Assessment

Organizations running affected PHP versions should upgrade immediately. If patching is delayed, harden configurations, enforce strict request-size limits at the web server and WAF levels, and monitor for traffic patterns consistent with exploitation attempts.

Organizations running patched PHP versions are not vulnerable to these CVEs.

Detection and hunting: Behavior over hashes

The actor can recompile the binary, which changes every hash in this report, and can move to a new endpoint without touching the implant. The behaviors below outlast both.

Network detection

These rules are starting points and require tuning. The DNS-over-HTTPS and WebSocket signatures match both legitimate and malicious traffic, since browsers and ordinary web applications use both mechanisms. They are most useful when correlated with the originating process.

# DNS-over-HTTPS from non-browser processes
alert http any any -> any any (msg:"Suspicious DoH - non-browser process";
content:"application/dns-message"; http_content_type; content:"/dns-query";
http_uri; flow:to_server; sid:1000001;)
# WebSocket upgrade
alert http any any -> any any (msg:"WS upgrade from suspicious process";
content:"Sec-WebSocket-Version: 13"; content:"Upgrade"; http_header; sid:1000002;)
# Alibaba Cloud OSS upload from unexpected process
alert http any any -> any any (msg:"Unexpected OSS upload";
content:"Authorization: OSS"; http_header; content:"PUT"; http_method;
sid:1000003;)
# Direct C2 connection
alert tcp any any -> 107.151.212.122 9090 (msg:"Rust RAT C2 beacon";
flow:to_server,established; sid:1000004;)

A process presenting itself as RuntimeBroker.exe that loads the .NET runtime has no legitimate reason to do so, and this is where the CLR hosting chain described in the persistence section becomes visible.

Sigma rule

title: RuntimeBroker.exe Executing Outside System32
id: 7f3e9c2a-5b41-4d8e-a6f0-1c93b7d54e82
status: experimental
description: |
    Detects RuntimeBroker.exe executing from any path other than
    C:\Windows\System32\. The legitimate Windows component lives only
    in System32; a process presenting this name from any other path
    is masquerading as a trusted Windows component.
references:
    - https://www.manageengine.com/threat-analysis-lab/php2shell-trojanized-poc-rust-rat.html
author: ManageEngine METAL
date: 2026-10-26
tags:
    - attack.stealth
    - attack.t1036.005
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\RuntimeBroker.exe'
    filter_legit:
        Image|startswith:
            - 'C:\Windows\System32\'
            - 'C:\Windows\SysWOW64\'
    condition: selection and not filter_legit
falsepositives:
    - None known; legitimate RuntimeBroker.exe runs only from System32
level: high

MITRE ATT&CK mapping

MITRE ATT&CK tactics and techniques observed in the PHP2Shell campaign
Tactic Technique ID Implementation
Initial Access Phishing: Spearphishing Link T1566.002 Trojanized GitHub PoC repository
Execution Native API T1106 WSASocketW, GetProcessHeap, direct syscalls
Persistence Create or Modify System Process T1543.003 (Windows Service) Not confirmed. Operator error strings describe service and login-startup installation; the binary imports no service or registry APIs
Defense Evasion Masquerading: Match Legitimate Name T1036.005 PE version info claims RuntimeBroker.exe
Defense Evasion Reflective Code Loading T1620 memexec.rs fileless PE execution
Defense Evasion Obfuscated Files or Information T1027 Encrypted C2 configuration, runtime URL construction
Discovery System Information Discovery T1082 COMPUTERNAME, USERNAME, architecture, OS
Collection Screen Capture T1113 screen.rs with JPEG compression
Command and Control Application Layer Protocol: Web Protocols T1071.001 WebSocket and HTTP PUT
Command and Control Application Layer Protocol: DNS T1071.004 DNS-over-HTTPS resolution
Command and Control Protocol Tunneling T1572 tunnel.rs
Command and Control Encrypted Channel: Asymmetric Cryptography T1573.001 (Symmetric Cryptography) Custom AEAD and KDF
Command and Control Proxy: Multi-hop Proxy T1090.003 Network tunneling with priority modes
Exfiltration Exfiltration Over Web Service: Cloud Storage T1567.002 Alibaba Cloud OSS PUT

Indicators of compromise

Indicators of compromise for the PHP2Shell campaign
Type Value Context
SHA-256 c6a73f834f47c5e86eda142647d5e99ba3279d868ad83a07c300304bac26e9e4 The analyzed sample
MD5 f8ea9d466e06c2e991788a23bae9be4f The analyzed sample
File size 379,904 bytes
File name exp复现执行.exe
Rust compiler rustc/88d9e12ae178fab0fb5cc050a94da85685d449ea Build-specific
SHA-256 893eaddde0f6b63059933fc279d0e50b9c2b2e7459130a176ff1d14b7199742d 新建文件夹.rar, 163KB, actor staging materials, no malware
IP and port 107.151.212.122:9090 Primary C2, unresponsive at time of analysis
Repository brigaddefin-del/phpshell Trojanized clone
GitHub account brigaddefin-del Created March 2026
Commit author ai智能体 All ten commits, October 22, 2026
Telegram channel t.me/php2shellexp 19 subscribers, “php2shell漏洞研究分享”
Telegram file maccms10_-----POC.md MacCMS 10 write-up, legitimate, distributed as bait
Telegram file maccms10-main_POC.py MacCMS 10 PoC collection, legitimate, distributed as bait

Reference, not an indicator

Original repository referenced in the campaign, not an indicator
Type Value Context
Original repository 9bie/php2shell-bypass-aslr-exp Legitimate research, cloned without permission. Not malicious and should not be blocked or flagged

Recommendations

For security researchers working with PoC code:

  • Never execute binaries from public exploit repositories without analyzing them first. Sandbox any downloaded executable in an isolated environment.
  • Verify a repository’s age, commit history, and contributor reputation before trusting the code it contains. The signals that identified this repository are available to anyone looking at it: a commit history compressed into minutes rather than built over time, an account with no prior work, a prebuilt executable with no source and nothing in the repository referencing it, and a README that documents the Python exploit while never mentioning the binary beside it.
  • Exercise heightened caution with repositories published for very recently disclosed vulnerabilities. This repository appeared one day after the original exploit was published, and threat actors routinely publish Trojanized PoC code within days of disclosure.
  • Organizations running affected PHP versions should follow the patching and hardening guidance in the exploitability assessment.

Final thoughts

The repository is still live at the time of publication. The C2 server is unresponsive, but that is the one component the actor can replace without effort. The implant, the lure, and the technique all survive it.

The cross-platform dispatch in the fileless execution module handles .elf, .so and .dylib alongside .exe. None of that is reachable from a Windows-only campaign, which suggests Linux and macOS variants exist or are in development.

Static indicators will not hold. The actor can recompile the binary and set up new infrastructure, and the hashes and addresses listed in the indicators of compromise expire the moment they do. What does not change is how the campaign works: a prebuilt executable with no source in a repository that did not write it, a process claiming to be a Windows component without the signature to match, and DNS resolution that never appears in a DNS log.

The research community is the target here, and it is a target that has to keep downloading and running unfamiliar code to do its work. That requirement is not going away, so the risk it creates has to be managed rather than removed.

Explore latest threat research