SANS ISC
PHP Obfuscator Hides Backdoor That Can Install Remote Payload
SANS ISC reports that a PHP obfuscator tool available on obfuscator[.]tools hides a backdoor inside obfuscated PHP code. Reader Patrick Scholing of DNSBunker[.]org brought attention to how the tool can add deceptive functionality beyond mere obfuscation. A simple PHP snippet that echoes “x” can, when obfuscated with the “Legacy STT” method, expand into a much longer payload that includes an eval-based execution path.
The sample shows base64-encoded strings that, when decoded and inflated, execute code via gzinflate(base64_decode(...)) and then continue with a separate, seemingly benign evaluation chain. The consequence is an obfuscated payload that can conceal a hidden backdoor inside legitimate-looking code.
Ullrich details how the backdoor operates once deobfuscated. The obfuscated code, after a deobfuscation step, reveals an additional payload that can attempt to contact a remote host and potentially install a secondary PHP file. In the example provided, deobfuscation yields a script that sets up a simple remote call to a decoy HTTP endpoint and, under certain conditions, can upload content to a remote location and write a file named mrz.php on the host.
The observed command-and-control domain is siyahi[.]top, described as a compromised construction-company site used as a possible decoy, with the attacker’s collection script being invoked by a specific URL parameter. Ullrich notes that additional lines appear to exfiltrate the page URL and seed a remote script, but reports no confirmed external requests for the newly uploaded file at the time of writing. The piece ends with a caution to readers to remain vigilant.