Backdoored PHP Obfuscator Adds URL Reporting and File-Upload Capability

Summary
A SANS researcher found a PHP obfuscator that adds page-URL reporting and an `mrz`-triggered file-upload backdoor. A logged request uploaded an older PHP webshell; no attempt to access it had been observed.
Key points
- The obfuscator at obfuscator[.]tools added code to an otherwise simple PHP snippet using a base64/gzip wrapper.
- The added code sends the full page URL to hxxps://siyahi[.]top/ghost/.
- A GET request containing the `mrz` parameter triggers a fetch of a supplied remote file URL and saves its content as `mrz.php`.
- A logged request to the upload feature resulted in an older PHP webshell being uploaded to the server.
- The researcher reported no attempt to access the uploaded webshell; the observed upload request came from an IP address identified as a known VPN endpoint.
- The C2 website appeared to be a compromised construction company site, though its boilerplate details may have been a decoy.
Article Details
- Attack Vectors
- The obfuscator website adds PHP code that sends the current page URL to a remote collection endpoint.
- A request using the `mrz` parameter and a supplied `file` URL triggers retrieval of remote content and saves it as `mrz.php`.
- An observed request used this feature to upload an older PHP webshell to a server.
- Defensive Notes
- Inspect code produced by web-based PHP obfuscators for added network requests and file-writing behavior.
- Monitor for requests containing the `mrz` parameter and for unexpected creation of `mrz.php`.
- Review outbound requests to the reported collection endpoint.
Indicators of compromise
| Type | Indicator | Context |
|---|---|---|
| DOMAIN | obfuscator[.]tools | Website reported to add backdoor functionality to obfuscated PHP code. |
| IPV4 | 54[.]38[.]58[.]236 | Source IP reported for the request that uploaded the webshell; described as a known VPN endpoint. |
| URL | hxxps[:]//siyahi[.]top/ghost/ | Collection endpoint receiving the current page URL from the backdoored PHP code; reported as C2 infrastructure. |
MITRE ATT&CK
T1027 · Obfuscated Files or InformationThe obfuscator encodes and compresses PHP code, which is then decoded and executed with `eval`.T1041 · Exfiltration Over C2 ChannelThe added code transmits the current page URL to the reported C2 collection endpoint.T1071.001 · Web ProtocolsThe added PHP code sends the current page URL to the collection endpoint using an HTTP POST request.T1105 · Ingress Tool TransferThe `mrz` feature retrieves content from a supplied remote URL and writes it to the server as `mrz.php`.T1505.003 · Web ShellThe file retrieved through the upload feature was identified as an older PHP webshell.
