Skip to main content
Mallory
← Back to News
persistence-methoddefense-evasion-methodremote-access-implantpayload-delivery-evasion

Whitespace Steganography Hides PHP Web Shell in Fake license.php Files

Attack Tradecraft · 2 sources · Updated 4mo ago · First seen Aug 14, 2026

Whitespace Steganography Hides PHP Web Shell in Fake license.php Files

Attackers concealed a PHP web shell inside whitespace appended to a seemingly benign license.php file, using a steganographic technique that encoded the payload in tabs and spaces after legitimate-looking text from the GNU GPL license. The visible PHP code then read its own file, extracted data after the final semicolon, converted whitespace into binary, and applied multiple decoding layers including gzdecode, str_rot13, and base64_decode to rebuild and execute the hidden malware.

The recovered payload was a large web shell capable of file and database operations, information theft, file infection, brute-force activity, and use as a server console or anonymizer on compromised websites. Investigators also found uploader backdoors used to create the fake license.php files and additional malicious changes to .htaccess and index.php, while noting that the whitespace-decoding routine appeared to be adapted from a public proof of concept previously published on Habr.ru.

Why it matters

Impact assessment

This activity affects operators of PHP-based websites and web applications, especially shared hosting, CMS-driven sites, and environments where file integrity monitoring is weak. The impact is high on already-compromised servers because the implanted web shell enables persistent remote access, file and database manipulation, credential and data theft, brute-force activity, and use of the victim host as attacker infrastructure.

The exposure is targeted to compromised web servers rather than a mass client-side issue, but the technique is stealthy and can survive superficial cleanup because the payload is hidden in appended whitespace inside a plausible license.php file. The reference describes active malicious use on compromised sites, indicating real-world exploitation of the technique.

Supporting facts

  • Affected assets: PHP web servers and websites with writable application directories.
  • Likely affected populations: website owners, hosting providers, e-commerce operators, and organizations running PHP applications.
  • Business impact:
    • Unauthorized access and persistence on web servers.
    • Theft of server and database information.
    • Website defacement or malicious content injection through index.php and .htaccess changes.
    • Abuse of victim infrastructure for brute-force attacks or anonymization.
  • Scope:
    • Not tied to a specific CVE or product vulnerability in the reference.
    • Relevant wherever attackers already obtained write access to web content.
  • In-the-wild evidence:
    • Investigators found fake system/license.php files, uploader backdoors, and related malicious modifications on compromised websites.
Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · 2011 – 2019
  1. Reported Feb 2, 20216y ago

    Sucuri analyzes whitespace-concealed PHP malware

    Sucuri documented how the visible license.php code read its own file, decoded tab-and-space data appended after the final semicolon, and reconstructed a 74 KB web shell through base64, ROT13, and gzip decoding layers. The analysis also noted fallback execution via a blank-named temporary file and described the web shell's capabilities, including file and database management, information theft, brute-force activity, and anonymization.

    Whitespace Steganography Conceals Web Shell in PHP Malware
  2. Reported Feb 2, 20216y ago

    Attackers deploy hidden PHP web shell on compromised websites

    Investigators found attackers had hidden a PHP web shell inside whitespace appended to a fake system/license.php file on compromised websites. Additional uploader backdoors were also used to create fake license.php files and inject malicious code into .htaccess and index.php files.

    Whitespace Steganography Conceals Web Shell in PHP Malware
  3. 2019

    Habr.ru publishes whitespace steganography proof of concept

    According to the analysis, a 2019 Habr.ru article published a proof of concept for whitespace steganography, and the malware's decoder appears to match that technique without modification.

    Whitespace Steganography Conceals Web Shell in PHP Malware
  4. 2011

    Whitespace steganography technique described in 2011 article

    The malware analysis states that the whitespace-only encoding method used by the PHP malware was originally inspired by a 2011 article about encoding data using only tabs and spaces.

    Whitespace Steganography Conceals Web Shell in PHP Malware
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.