SecuFocus
Brief

An online PHP obfuscator adds a backdoor

SANS Internet Storm Center examined an online service that claims to make PHP harder to read. In the example it analysed, the returned file contained a backdoor even though the script still produced the expected result.

Illustration d’un écran comparant deux fichiers de code, avec un bloc vert dans le panneau droit.

Generated image · SecuFocus

At a glance

Key points

The added code can send the full URL of a visited page to an external server and allow a file to be placed on the server running the modified script. If you already deployed the file, compare it with a trusted version and review your logs before drawing conclusions about a compromise.

A service that does more than obfuscate code

Patrick Scholing of DNSBunker.org spotted the service that Johannes Ullrich examined in a SANS Internet Storm Center post published on 29 November 2026. An obfuscator is supposed to make code harder to read without changing what it does. In the example SANS examined, the service inserted code the developer had not asked for.

The finding concerns the file returned by this service, not a vulnerability in PHP itself. The report does not establish how many sites, if any, deployed a file modified this way.

Why a page that loads is not proof of safety

The sample script still produced the expected result. Yet the added code can send the full URL of the page being visited to an external server and allow a file to be placed on the server running the modified PHP. A test that only checks whether the page loads will not rule out either behaviour.

Review the file before releasing it

For web agencies and small businesses in French-speaking Switzerland, a practical starting point is to keep the original in source control and use a vetted tool the team can run locally. If a third-party service returns a file that is too opaque to review, go back to the original rather than shipping it on the strength of a page-load test.

If the file is already on the server

Compare deployed files with a trusted version, then review whatever logs are available for the period in question. Look for unexplained outbound connections and unexpected files. Having used the service does not prove an intrusion, and a lack of evidence in incomplete logs does not rule one out.

Check and explore

Sources for this article

Numbers connect each reference to the passages that use it. Dates show when the documentation was consulted.

This article draws on the sources above. The exercises are for you to try on your devices; SecuFocus does not present them as tests carried out by its editorial team. Interfaces and features can change. Method and corrections.

Cite this article

Keep this reference with the article when you save or share it.