P.K. SHARMA

Cyber security intelligence, AI governance, practitioner analysis

SANS diary says a web PHP obfuscator added a backdoor to the code it returned in a test

A SANS Internet Storm Center diary says a web tool for obscuring PHP added a backdoor to a one line test. The original line stayed, behind code that reports the page address. Read 30 November 2026.

By · LinkedIn · · 12 min read

One line went in. The decoded result puts two other jobs ahead of it

The test input had one job: print a single letter. In the decoded view of what a web tool gave back, the line doing that job is still there, at the end. Ahead of it sit two behaviours nobody asked for (a count this site draws from the diary's own two points). One sends the page's full address to a remote host. The other waits for a URL parameter named mrz and then writes a file called mrz.php.

The source is a SANS Internet Storm Center diary headed Backdoored PHP Obfuscator, written by the Dean of Research at SANS.edu. SANS sells security training, and the diary page links to classes its author teaches for SANS. The page prints Published 2026-11-29 and Last Updated 2026-11-30 16:34:34 UTC. This account rests on the page as read at 17:39 UTC on 30 November 2026.

The finding is narrower than the word backdoor may suggest. It is one test with one method on one tool. The diary does not say that other methods on the site add the same code, who put the code there, how long it has done so, how many people used the tool, or that any user's server was broken into.

What the diary tested

A reader spotted a web based PHP obfuscator at obfuscator[.]tools. An obfuscator rewrites code so that people find it hard to read. The author's verdict on this one: "This website hides some extra goodies in the obfuscated code."

The test used a very short PHP snippet and the tool's Legacy STT method. What came back was much longer. The author notes that growth in size is not unusual for obfuscation, so size alone was no warning. The method, in the diary's words, is a simple base64/gzip combination, and the author unpacked it to read what was inside.

This site's drawing from SANS Internet Storm Center diary 33556. Conceptual only. The diary prints no time for the seeding.

A page that still works is not a page that was checked

The diary puts the trap plainly:

Note that my original code remains at the end as the last line. The code will appear to work "just fine". But a few extra lines have been added.

The wording is that it will appear to work. The diary does not report running the returned file.

This site's reading: the word obfuscated is easy to hear as protected. Obfuscation changes how code reads. It makes no promise about what the code does. A test that only compares what the page displays asks whether the old behaviour survived, not whether new behaviour arrived. Here the old line survives.

The two additions in words. Middle column: SANS diary 33556. Right column: this site's reading unless it names another source.

AdditionWhat the diary says or printsWhat it means for a defender
Address reportThe extra lines send the full URL of the page to a path on siyahi[.]top.In the printed order the report comes first, with no condition of its own, so expect it whenever that part of the file runs. The diary does not say how often it was seen.
File featureA "simple arbitrary file upload feature", triggered by the mrz URL parameter. The file is saved as mrz.php.As printed, the server itself fetches the content from an address the caller supplies. The content need not arrive inside the incoming request, so check outbound connections and new files.

To build the address it reports, the diary's printed lines use the host name and PHP's request address value. The PHP manual describes that value as "The URI which was given in order to access this page". This site's note: in an ordinary web request that value also carries whatever follows a question mark. The manual line quoted here does not say so, and the diary does not discuss it. As a precaution, this site would treat any token or identifier carried in the address of a running affected page as sent.

The receiving host: the diary offers two readings

The diary calls siyahi[.]top the website used for command and control, and then gives two readings of what that site is.

  • It "appears to be a compromised construction company website".
  • But its "default" mailing address and boilerplate look and feel "may indicate that this is just a decoy to make the malicious site appear harmless during cursory inspection".

The diary does not settle which, and neither does this article. On the first reading a business whose website was broken into is being used, and is not shown to be the author of anything. On the second there may be no real business behind the pages. In neither case does the diary say who is on the other end, collecting the addresses.

A planted address, then an upload request

The author then tried a simple test: sending a request to the collection script to seed it with a specific web address, with a promise to update the diary if a request for that address came in. The first report was: "So far (about an hour later), I did not see a request for the specific URL." The page does not print when the address was sent, so the full wait cannot be worked out.

A quick update follows: "It took a while, but the upload request came". The log line printed under it is stamped 30 November 2026 at 05:03:25 UTC. It carries the mrz parameter and the address of a file on a third host, betelgoldap[.]pl. The diary says the file uploaded to the server was an older PHP webshell, meaning a script that gives remote control of a web server through web requests. A comment at the top of that file carries the date 14 September 2020. That is text inside a file, which whoever edits the file can set.

The update says "there has been no attempt to access the webshell", which the author says is leaving time to set up a decoy. It also says the request came from a known VPN endpoint. This article leaves the shared address out. The diary does not say who runs betelgoldap[.]pl or whether that site is itself compromised.

What the seeding test supports, and where it stops. From SANS diary 33556; readings marked as this site's.

QuestionWhat the diary supportsWhat it does not show
Are reported addresses acted on?An address was planted, and an upload request is reported later. This site reads the sequence as the planted address being picked up.The diary does not print the planted address beside the log line. Nothing shows that every reported address gets a request, or how soon.
Who sent the request?It came from a known VPN endpoint.The sender; whether a person or a script sent it; any link to who runs the tool or either other host.
Was a webshell delivered?The diary says the file uploaded to the server was an older PHP webshell.What code answered at the requested address, or the name the file was stored under.
Was the webshell used?No attempt to access it is reported.Anything after the page's last update, stamped 16:34:34 UTC on 30 November.

One detail matters for anyone reading their own logs. The printed line records status 200 followed by a 3, in the position where common web log formats record response size. Both reply messages in the diary's decoded view are longer than three characters. The diary does not print its log format or say what ran at that address. This site's reading is that the line shows a request arrived and was answered. On its own it does not show that the added code ran or that a file was written. In your own logs, treat a status code as a reason to look at the disk, not as the answer.

What the diary states, and what it does not

SANS diary 33556 as read at 17:39 UTC on 30 November 2026

SubjectStatedNot stated
MethodsThe test selected Legacy STT.Whether any other method adds code.
ResponsibilityThe website hides extra material in the obfuscated code.Who runs the site, and whether its owner or an intruder added the code.
DurationPublished 29 November; last updated 30 November.Since when the tool has added code, and whether it still does.
ReachA reader spotted it and the author tested it.How many people used it, and any victim.
The returned fileIt is longer than the input and uses base64 and gzip.What a second long string is for. The printed result assigns it, and the printed final line does not call it.
DetectionThe file name, the parameter name and the hosts appear in the text or its code and log extracts.The page prints no file hash, detection rule or list of defender steps.

On dates: the page shows Version: 1 although it now includes the quick update. The item in the publisher's feed keeps Sunday 29 November in its title, but its publication stamp, 30 November 16:34:34 GMT, matches the page's last update. Neither shows the exact time the first text appeared or when the update was added.

The names to search for

Names from SANS diary 33556, hosts defanged. The cautions are this site's.

NameWhat the diary ties it toCaution
mrz.phpThe file name the added code saves to.A shell can be copied or renamed. Finding no such file does not clear a server.
mrzThe URL parameter that triggers the file feature.Match it as a parameter name, not as any three letters in a log.
obfuscator[.]toolsThe web tool in the test.Look for it in proxy records and team history. Do not browse to it.
siyahi[.]topThe host that is sent the page address.Compromised business site or decoy: the diary gives both readings.
betelgoldap[.]plThe file source named in the one logged request.Another request could name a different source. Its operator is not stated.
30 November, 05:03:25 UTCThe time on the one printed upload request.Not a window for your search. Search from the day a returned file was first deployed.

Where to look, in order

The diary ends its first part with "As usual: Be careful" and prints no checklist. The drawing and the steps below are this site's suggestions.

This site's suggestions, drawn by this site. The file comparison method is also in the NSA's general web shell guidance.

Take this with you

This site's suggested steps

  • Ask developers, contractors and agencies whether any PHP went through obfuscator[.]tools or another online obfuscator, and when. Do not visit the tool to test it.
  • List every file that came back and every place it ran, including laptops and test servers.
  • Before changing anything, keep copies of those files, web server logs, and DNS and proxy records.
  • Search DNS, proxy and egress records for siyahi[.]top and betelgoldap[.]pl, then block both. Short or partial logs cannot clear you.
  • Search access logs for any request with a URL parameter named mrz, on every path and virtual host.
  • Search web roots and the folders of affected scripts for mrz.php. Compare all PHP files with a known good copy to find anything added or changed.
  • Replace affected files by rebuilding from clean source control. Do not edit lines out of the returned output. With no clean source, treat the file as untrusted and recover or rewrite it.
  • If you find the report leaving, the trigger arriving or an unexplained PHP file, treat the server as compromised. Isolate it, rebuild it, and replace database passwords, API keys, session secrets and every other secret it could read, plus any token carried in an affected page address.
  • Limit what web servers may connect to. Where an application does not need PHP to open web addresses, test it with allow_url_fopen turned off.
  • Keep production source and secrets out of web tools. Review what any code transforming tool returns before it ships.

Two steps have a published basis beyond the diary. The NSA's web shell guidance, a general document that is not about this tool, says the most effective way to discover most web shells is to "compare files on a production web server with a known-good version of that application".

The PHP manual says the allow_url_fopen option "enables the URL-aware fopen wrappers that enable accessing URL object like files". It is on by default and is set at system level. The diary's printed additions use a PHP file function both to send the report and to fetch the remote file, so this site infers that with the option off those two calls would fail. That has not been tested here. The setting would not remove added code or a webshell already on disk, does not govern every way PHP can reach a network, and may break software that relies on it.

The question the output leaves open

A file that is longer, hard to read and apparently working is what a user of an obfuscator expects to receive. In this test it was also where the additions sat. So for every file in your repository that nobody on the team can read: who checked what it does, and against which source?

Key facts

Sources

  1. PrimaryDiary 33556, 'Backdoored PHP Obfuscator', published 29 November 2026 and last updated 30 November at 16:34:34 UTC: the test, the added behaviours, the two readings of the receiving host, the seeding and the later request. Page footer links a CC BY-NC-SA 4.0 licenceSANS Internet Storm Centeraccessed 2026-11-30
  2. PrimaryThe publisher's feed, read for the title date and publication stamp of the diary's itemSANS Internet Storm Centeraccessed 2026-11-30
  3. PrimaryPHP manual page on server variables: the wording for the request address valueThe PHP Documentation Groupaccessed 2026-11-30
  4. PrimaryPHP manual page on filesystem and streams settings: allow_url_fopen, its default and where it can be setThe PHP Documentation Groupaccessed 2026-11-30
  5. PrimaryMitigating Web Shells repository page: general guidance on comparing a production web server with a known good copyNSA Cybersecurityaccessed 2026-11-30

Share this briefing

Know someone who owns this problem? Send it to them.

Related briefings

The briefing, in your inbox

Practitioner analysis of cyber and AI security news. No vendor noise.

How often

Every new briefing in one email, at 7am, or at 7am, 12:30pm and 6pm. Nothing is sent when nothing is new. Unsubscribe any time.