Skip to content
Php2shell In The Wild Beelzebub Honeypot

Php2shell In The Wild Beelzebub Honeypot

beelzebub.ai • October 22, 2026

On October 22, 2026, a Beelzebub honeypot received a sequence of external requests targeting a simulated PHP document portal. The most revealing request contained 149 identical binary fields, each embedding the same command:

This report examines six captured requests, the decoy configuration, and the complete body of the final request. Together, they document an external command-execution attempt consistent with a PHP2Shell-related payload. They do not establish that the payload could successfully exploit a vulnerable PHP runtime: the receiving service was a decoy, and the available evidence contains requests only.

The useful finding is what reached the sensor: a structured multipart payload carrying an explicit command-execution check. The SOC section below includes both Sigma rules and both Suricata signatures directly in the article.

PHP2Shell: the vulnerability behind the traffic

PHP2Shell covers two related vulnerability classes in PHP itself. CVE-2026-109618 concerns corruption associated with out-of-memory handling. CVE-2026-109619 concerns stale global state that can survive a failed request and reference freed memory during subsequent processing. Their exploitation conditions vary; a request mentioning PHP2Shell does not establish which underlying path it exercises. PHP Foundation

The PHP Foundation announced fixed releases on October 21, 2026, the calendar day before the traffic examined here. It also reported that, at disclosure, its examination of circulating public PoCs had not identified a functional exploit. That makes the distinction between a payload’s advertised purpose and its demonstrated capabilities particularly relevant. PHP Foundation

The payload structure is consistent with a PHP2Shell-related attempt, but these requests alone do not establish which underlying vulnerability path it could exercise. CVE-2026-109619 remains relevant background rather than an independently confirmed attribution for this traffic.

Building a believable PHP target

The Beelzebub profile exposed an HTTP service on port 80, presented as Archive Portal , a small document library. Its public surface included a library, an upload form, a login page, and a simulated phpinfo.php .

These were properties of the simulated environment. They were not evidence that the honeypot ran a vulnerable PHP interpreter.

The upload form included PHP_SESSION_UPLOAD_PROGRESS , while the simulated phpinfo() page exposed matching session and memory settings. This gave visitors a coherent application surface to inspect.

Selected POST requests were routed to Beelzebub’s LLM honeypot plugin. Its instructions allowed synthetic application responses, memory-exhaustion messages, and a limited set of simulated command outputs. They prohibited executing commands, persisting uploaded files, or making outbound connections.

That design also defines the evidentiary boundary. A convincing response from the decoy would demonstrate deception behavior, not successful corruption of PHP memory. The profile’s expected responses must remain separate from the traffic actually recorded.

Six requests in 53 seconds

The supplied records contain six requests from 211.240.117.200 , all targeting /upload.php , between 06:33:42 and 06:34:35 UTC on October 22.

The first four events form two GET/POST pairs, with each pair sharing a session cookie. This establishes a relationship within each pair, but it does not reveal the application state the sender expected or received.

The complete bodies of those two earlier POSTs are unavailable. Their lengths and multipart headers alone cannot tell us whether they attempted memory exhaustion, tested upload handling, or performed another preparation step.

The final two requests several visible characteristics. However, the complete attached body belongs specifically to 06:34:35 , a separate event from 06:34:01 . Matching headers and declared lengths do not prove that their bodies were identical.

The 53-second window describes the supplied sequence. It does not establish when the sensor was deployed or when this source first contacted it.

Inside the final multipart body

The final body was supplied as escaped text. Decoding that representation produced 62,929 bytes , matching its recorded Content-Length . This is a useful consistency check on the export, although it is not an independent packet capture.

Each t[] value contained the same embedded sequence:

Here, \0 represents a NUL byte. This short extract highlights the command; the complete request body is included below in a lossless escaped representation.

The repetition is consistent with an attempted heap spray: placing many copies of an attacker-selected structure into request-controlled data. It does not demonstrate that these structures reached a useful allocation, matched a particular PHP build, or could redirect execution.

There are 149 copies of one command-bearing value . There is no evidence of 149 command executions.

The command suggests two intended checks. sleep 6 requests a six-second delay, while echo 2701 requests an output marker. If execution were achieved in a suitable environment, these could give the sender timing and response-content signals.

Neither signal is available here. The records contain no response bodies or request durations. The 34-second gap between the final two request timestamps is not a measurement of how long either request took to complete.

The profile was also configured only to generate response text, not to execute sleep . Any future analysis of response timing would need to account for the decoy’s own processing, including LLM latency.

Complete captured request body

The expandable block below contains the entire body of the POST recorded at 06:34:35 UTC : every multipart boundary, file part, padding byte, and all 149 t[] fields. No sections have been omitted or replaced with ellipses. This is the request body, not a reconstruction of the full HTTP exchange.

For readable, lossless display, the body is represented as a JSON array of consecutive string chunks , each containing at most 128 original bytes. Concatenate the decoded strings in order to recover the body. Array punctuation and display line breaks are not transmitted bytes; \r\n and \u0000 inside the strings encode the original CRLF and NUL characters.

Reconstructed length: 62,929 bytes .

To verify a copy of the JSON block saved as request-body.json , decode and concatenate its strings without executing the payload:

What the evidence supports

The combination of repeated binary multipart fields, the upload-progress field, and the embedded system command supports describing the final request as a command-execution attempt consistent with a PHP2Shell-related payload.

The same evidence does not validate the exploit implementation. A recognizable multipart boundary can help correlate similar payloads without proving their provenance or effectiveness.

The honeypot configuration already contained a recognition rule for this general payload shape. That rule explains how the decoy was intended to react; it is not independent confirmation that the incoming payload implements a working exploit.

The source IP is an observation useful for correlation. Its recorded geolocation does not establish the operator’s nationality, physical location, or affiliation. The requests also do not establish whether the sender was a researcher, a scanner operator, or someone pursuing malicious access.

The following rules are experimental . They cover observed fingerprints and suspicious request structure, not all PHP2Shell variants or successful exploitation. The boundary fingerprint has medium priority; the command-bearing structure merits high-priority investigation.

No single ordinary upload feature should carry the conclusion. PHP_SESSION_UPLOAD_PROGRESS , multipart requests, and session cookies all occur in legitimate traffic. An isolated fingerprint match also does not prove malicious intent.

Sigma prerequisites and field mapping

Save each YAML block below as a separate rule. Map the fields through your Sigma backend pipeline; RequestContentType and RequestBody are custom fields for this article.

The body rule requires actual NUL characters after JSON decoding, not the literal text \u0000 . Do not unescape an already decoded body a second time. Verify that ingestion preserves NULs and that the target backend supports the regex hex escape and adequate field lengths. Missing or truncated bodies reduce coverage; normal access logs generally do not contain the required body.

Sigma: observed multipart boundary

This rule matches the boundary fingerprint in a multipart POST. It is a substring fingerprint, not an exact MIME-boundary validator, and changing the boundary evades it.

Sigma: upload-progress fields with a NUL-framed command

This rule does not depend on the source IP, URI, boundary, exact command, request length, or 149 repetitions. It requires the two field-name strings together with system , a NUL, a command of 1–160 characters, and a terminating NUL. It does not count repeated fields or validate memory corruption. Different multipart quoting or field names can evade it.

Suricata: HTTP headers and binary request body

Save both signatures below in a local .rules file. Reserve or change the SIDs to avoid conflicts with your existing ruleset. These are alert-only rules, with both internal and external clients included; scope protected destination networks as appropriate.

The structural signature intentionally follows the observed field order. It requires a NUL immediately after system , but does not enforce command length or the terminating NUL. It is therefore broader than the Sigma body rule. Neither verifies heap allocations or exploitation success.

These signatures use the HTTP sticky buffers documented for Suricata 8.0.1 . HTTPS requires visibility after TLS termination or equivalent decrypted traffic. Confirm protocol coverage on the deployed sensor rather than assuming HTTP/2 or HTTP/3 parity.

Body inspection and validation

The known body is 62,929 bytes. A low body-inspection limit can hide relevant content, while a small inspection window can separate the early upload-progress field from the later command. For a lab validation profile , merge the following settings into the active app-layer.protocols.http.libhtp.default-config , accounting for server-specific overrides:

These are bounded lab defaults, not universal production settings. Ensure stream reassembly also covers the request, and benchmark memory use and detection on segmented bodies before adoption. Larger or reordered variants can evade this configuration. See the Suricata inspection configuration reference .

Validate the local ruleset before replaying an approved HTTP capture offline:

There is no need to submit the captured payload to a live PHP service to validate these signatures.

The two Sigma rules passed parsing with pySigma 0.11.23 , and their loaded selections passed eight positive and negative test cases , including ordinary uploads, altered boundaries, literal escaped NUL strings, missing fields, and truncated bodies. The supplied final body also matched both selections when paired with its recorded Content-Type. The fixture matcher exercised only the equality, contains, all, and regex operations used here; it was not a SIEM emulator.

Native Suricata syntax validation, PCAP replay, and target-SIEM conversion and ingestion remain deployment checks. Passing the local Sigma checks does not establish compatibility with every backend. The Sigma rule specification and modifier reference describe the portable format and its translation requirements.

Identify the signal and its visibility. Confirm the target, timestamp, rule, and whether the body was collected completely. An isolated boundary match is only a fingerprint.

Correlate neighboring requests. Group by source IP, destination/service, and a two-minute window, using cookies as secondary pivots. NAT and shared proxies can mix operators. Deduplicate multiple rule hits for one HTTP transaction; do not require the exact six-event sequence.

Look for effects separately. Retrieve responses, durations, PHP worker errors, crashes, and restarts. An OOM, HTTP 500, or six-second response alone does not prove exploitation. On a decoy, response bodies and timing can be synthetic.

Check host telemetry on real PHP deployments. Investigate unexpected worker-spawned processes, outbound connections, and file changes. Request-only evidence cannot establish either success or failure.

Tune approved activity narrowly. Research-sample uploads, authorized scanning, and replay exercises are plausible false positives. Scope exceptions to known assets, sources, and test windows. Treat the observed IP as a correlation pivot rather than an attribution or permanent blocking rule.

Remediation and closing observations

The first fixed PHP releases are 8.2.35, 8.3.36, 8.4.27, and 8.5.12 . Apply a fixed release or the appropriate vendor security update to every affected runtime, then restart the relevant services and workers. Application updates alone do not replace the PHP fix. PHP2Shell upgrade guidance

Beelzebub captured the attempted interaction without needing to execute the submitted command. The result is a narrow but useful observation: an external sender delivered a payload consistent with PHP2Shell-related activity and carrying an explicit execution check to a PHP decoy on October 22.

At Beelzebub, we’re working to make the Internet a safer place by turning interactions with decoys into knowledge defenders can use. We publish the evidence, explain what it tells us, and detection rules so security teams can investigate similar activity in their own environments.

This research is part of that effort. By sharing what reaches our honeypots, we want to help the security community recognize emerging threats, improve detection, and protect the systems people depend on.

Extracted Entities

Attack Types (1)

CWE Weaknesses (1)

Domains (2)

IP Addresses (1)

Platforms (1)

Tools (1)