Medium 3 Hunt LeadsIOCsSANS Internet Storm Center

A Free PHP Obfuscator Hides a Backdoor in the Code It Hands Back

SANS ISC found that the free obfuscator[.]tools service adds code that reports each page's URL to siyahi[.]top and lets anyone plant a PHP file via an mrz parameter.

A free website that obfuscates PHP code is quietly adding a backdoor to every file it hands back. Johannes Ullrich of the SANS Internet Storm Center tested obfuscator[.]tools after a reader, Patrick Scholing of DNSBunker.org, flagged it. He fed it a one-line script and got back code that still works, but now reports every page it runs on to an outside server and lets anyone with the right URL drop a file of their choosing onto the website. Because the output is obfuscated by design, the person who asked for it has little reason to look inside.

For defenders

What the tool adds: with the “Legacy STT” method selected, the output is a base64 and gzip blob run through eval(gzinflate(base64_decode($stt1))) (T1027 (Obfuscated Files or Information)). Decoded, it holds the user’s original code at the end plus two additions. First, every time the page loads it POSTs the page’s full URL, as a file_url field, to hxxps://siyahi[.]top/ghost/ (T1071.001 (Application Layer Protocol: Web Protocols)), giving the operator a list of sites running the backdoor. Second, a request carrying the mrz parameter makes the page fetch whatever URL is given in file and save it as mrz.php next to it (T1105 (Ingress Tool Transfer), T1505.003 (Server Software Component: Web Shell)). That’s an unauthenticated way to plant any PHP file on the server.

Status: Ullrich seeded the collection server with a test URL and, an hour later, had seen no follow-up request, so whether the operator is actively using the list isn’t known. He notes siyahi[.]top looks like a construction company’s site, possibly compromised or possibly a decoy. No CVE, no named actor, no hashes published. Effectively a trojanized developer tool (T1195.002 (Supply Chain Compromise: Compromise Software Supply Chain)).

Network
obfuscator[.]tools
siyahi[.]top
hxxps://siyahi[.]top/ghost/

Host
mrz.php (written next to the backdoored script)
Request parameters: ?mrz=…&file=…
Variables $stt1 / $stt0 with eval(gzinflate(base64_decode(…)))
Response text: “File : mrz.php Success !”

What it means for you

If you or your web developer ever ran PHP code through an online “obfuscator” to hide it, that code may now carry a hidden extra. On a site built this way, anyone who knows the trick can upload their own program to your web server, then use it to deface the site, steal customer data or send spam. If you’ve never used one of these tools and don’t run PHP, there’s nothing to do.

Do this now

  1. Search your website’s files for mrz.php and for code containing $stt1 or gzinflate(base64_decode. Any mrz.php you didn’t create means someone has already used the backdoor.
  2. Replace any file that went through obfuscator[.]tools with your original, unobfuscated source.
  3. Check your web server logs for requests containing mrz= and block outbound traffic to siyahi[.]top.
  4. Don’t paste production code into free online obfuscators or “beautifiers”. If you need obfuscation, use a tool you can run and inspect locally.

Source article: Backdoored PHP Obfuscator
Publisher: SANS Internet Storm Center (Johannes B. Ullrich, Ph.D.)
Published: Nov. 29, 2026
URL: https://isc.sans.edu/diary/33556

Executive Summary

The SANS Internet Storm Center reports that obfuscator[.]tools, a free web service that obfuscates PHP code, inserts a backdoor into the code it returns; no actor, malware family name or vendor alias is attached to it. A reader, Patrick Scholing of DNSBunker.org, spotted it, and Johannes Ullrich reproduced it by submitting a one-line script with the “Legacy STT” method selected. The service returns a base64 and gzip blob executed through eval(gzinflate(base64_decode($stt1))); decoded, the original code still runs last, so the page looks normal, but two blocks are added in front of it. The first builds the page’s full URL from HTTP_HOST and REQUEST_URI and POSTs it as file_url to hxxps://siyahi[.]top/ghost/ on every execution, giving the operator an inventory of backdoored pages. The second, triggered by a GET parameter mrz, fetches the URL in the file parameter and writes its content to mrz.php in the working directory, an unauthenticated arbitrary file upload that becomes a web shell. Any site that deployed code from this service is exposed to full server-side code execution by whoever holds the collected URLs; the scope is every user of the service, which is unknown. Ullrich seeded the collector with a test URL and saw no follow-up within an hour, and assesses siyahi[.]top as a compromised or decoy business site. Hunt leads, false positive expectations and indicators are detailed below; no detection rules or hashes were published.

ATT&CK chain: Initial Access → Defense Evasion → Command and Control → Persistence

Hunt Lead Grid

Hunt Lead Level Hunt Lead Name ATT&CK Risk of False Positives
1 (Junior) Backdoored Obfuscator Code and Infrastructure Sweep T1195.002 (Supply Chain Compromise: Compromise Software Supply Chain), T1027 (Obfuscated Files or Information) Low. The two domains, a file named mrz.php and the $stt1/$stt0 eval(gzinflate(base64_decode())) wrapper are specific; other packers also use gzinflate and base64, so a wrapper match alone needs decoding to confirm the siyahi URL inside.
2 (Pro) mrz Parameter Upload and mrz.php Creation T1505.003 (Server Software Component: Web Shell), T1105 (Ingress Tool Transfer) Low to Medium. Few applications use a parameter named mrz together with a file parameter holding a URL; the rule anchors on that pair in access logs and on a new .php file written by the web server account, which legitimate CMS updates and plugin installs also do, so tie it to the mrz request.
3 (Elite) PHP Worker Posting Page URLs to a New External Host T1071.001 (Application Layer Protocol: Web Protocols) Medium. PHP sites call payment, analytics and API endpoints all the time; the correlation anchors on a first-seen destination contacted on nearly every page view, with a form-encoded POST body carrying the site’s own URL.

Backdoored Obfuscator Code and Infrastructure Sweep

Code produced by obfuscator[.]tools with the “Legacy STT” method declares two string variables, $stt1 (the payload, written with mixed \x hex escapes inside a base64 string) and $stt0 (an unused decoy string), followed by eval(gzinflate(base64_decode($stt1)));. Decoded, the payload contains base64_decode('aHR0cHM6Ly9zaXlhaGkudG9wL2dob3N0Lw=='), which resolves to the siyahi[.]top /ghost/ collector, the literal parameter names mrz and file, the output file name mrz.php and the status string File : mrz.php Success !. The sweep greps web roots and source repositories for the $stt1/$stt0 pair and the eval/gzinflate/base64_decode wrapper, decodes any hit to look for the base64 string above or the siyahi domain, searches the file system for any file named mrz.php, and searches DNS and proxy logs for obfuscator[.]tools (developers using the service) and siyahi[.]top (servers running backdoored code).

Use file integrity monitoring or a scripted search of web server document roots, source control history, and DNS resolver and egress proxy logs. Search back as far as logs allow, at least 90 days, because obfuscated code can sit in production for months and the collector receives a request every time a page loads. Scope to PHP web servers and to developer workstations, where hits for obfuscator[.]tools show who submitted code. Blocking siyahi[.]top at the egress firewall stops the URL beacon but not the upload trigger, which only needs inbound requests, so it is not a fix; the backdoored files must be replaced with clean source. Any decoded payload containing the collector URL, or any unexpected mrz.php, means the site is backdoored and should go to incident response, with the assumption that the page URL has already been collected.

Hunt Lead Level: 1 (Junior Analyst)

ATT&CK: Initial Access → T1195.002 (Supply Chain Compromise: Compromise Software Supply Chain); Defense Evasion → T1027 (Obfuscated Files or Information)

Sources: “Backdoored PHP Obfuscator”, SANS Internet Storm Center, Nov. 29, 2026, https://isc.sans.edu/diary/33556 (source article)

mrz Parameter Upload and mrz.php Creation

The added block checks isset($_GET['mrz']); when it is present it takes $_GET['file'] as a remote URL, reads it with file_get_contents, base64-encodes and decodes it, writes the result to mrz.php in the script’s working directory with file_put_contents, prints “File : mrz.php Success !” and exits. An operator therefore needs two requests: one to a backdoored page with ?mrz=<anything>&file=<URL of a PHP payload>, and a second to /…/mrz.php to run what was planted. Build two linked detections: an access-log rule for any request whose query string contains both an mrz parameter and a file parameter whose value starts with http or https, and a file-creation rule for mrz.php (or any new .php file) written by the web server or PHP-FPM user inside the document root, raising severity when the file creation follows the mrz request on the same host within seconds and a request to that new file follows.

Use web server access logs (Apache, Nginx, IIS, or a WAF or CDN log that keeps full query strings), plus Linux auditd or EDR file events for the web root, or Windows Sysmon Event ID 11 on IIS. Sweep access logs for 90 days or as far back as they go, since the collector may have handed out URLs well before the diary was published. Scope to every PHP site, and especially those where developers say they used an online obfuscator. Legitimate plugin and CMS updates also write PHP files as the web user, so allowlist by known update windows and paths rather than suppressing the web account; the mrz/file parameter pair has no common legitimate use, so a match on it should not be tuned away. A WAF rule blocking the parameter pair is a useful stopgap but leaves the backdoored code in place. A request returning “File : mrz.php Success !” or a resulting mrz.php means a web shell was planted: take the site offline or isolate it, preserve the file and logs, and treat server credentials and database contents as exposed.

Hunt Lead Level: 2 (Pro)

ATT&CK: Persistence → T1505.003 (Server Software Component: Web Shell); Command and Control → T1105 (Ingress Tool Transfer)

Sources: “Backdoored PHP Obfuscator”, SANS Internet Storm Center, Nov. 29, 2026, https://isc.sans.edu/diary/33556 (source article)

PHP Worker Posting Page URLs to a New External Host

On every execution, the backdoor builds 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], wraps it in a form-encoded body (Content-type: application/x-www-form-urlencoded, field file_url) and sends it with file_get_contents over a POST stream context to the collector, so the beacon fires inside the PHP worker synchronously with inbound page requests. The detection to build correlates, per server: outbound HTTPS from the PHP or web server process to a destination not in that server’s egress baseline; a connection rate that tracks the inbound request rate for one script path (roughly one outbound connection per page view); and, where an egress proxy or TLS inspection exposes bodies, a POST whose body contains the server’s own hostname in a file_url field. The rate correlation is what separates this from normal API calls, which happen on specific actions rather than on every view of a page.

Use EDR or auditd network events with process attribution on the web servers, egress proxy or firewall logs, and web access logs to supply the inbound request rate; NetFlow works for the rate comparison if process data is missing. Run it as a continuous detection with a 30-day lookback, because the same pattern catches other PHP backdoors and skimmers that phone home on page load, not just this one. Scope to internet-facing PHP servers and build a per-server allowlist of known outbound destinations (payment processors, update servers, APIs) by domain and certificate rather than IP, since cloud IPs rotate. Don’t rely on blocking siyahi[.]top alone: the operator can change the collector in a new version of the tool’s output, and the rate-correlated beacon still shows up under a different domain. A confirmed beacon means the page is backdoored and its URL is already known to the operator; escalate to incident response and check for mrz.php or other planted files.

Hunt Lead Level: 3 (Elite)

ATT&CK: Command and Control → T1071.001 (Application Layer Protocol: Web Protocols)

Sources: “Backdoored PHP Obfuscator”, SANS Internet Storm Center, Nov. 29, 2026, https://isc.sans.edu/diary/33556 (source article)

Hash Appendix

Backdoored obfuscator output

The source article published no file hashes; the backdoored output differs for every input script, so per-file hashes would not generalize. Nothing was looked up in OTX AlienVault or VirusTotal for this report. Hunt on the code patterns, file name and infrastructure above instead.

MD5s

(not available)  # backdoored PHP output; varies per input script

SHA1s

(not available)  # backdoored PHP output; varies per input script

SHA256s

(not available)  # backdoored PHP output; varies per input script

References Appendix

  • “Backdoored PHP Obfuscator”, SANS Internet Storm Center (Johannes B. Ullrich, Ph.D.), Nov. 29, 2026, https://isc.sans.edu/diary/33556

More from the Roundup