Whitespace Steganography Hides PHP Web Shell in Fake license.php Files
Attack Tradecraft · 2 sources · Updated 4mo ago · First seen Aug 14, 2026

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.phpand.htaccesschanges. - 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.phpfiles, uploader backdoors, and related malicious modifications on compromised websites.
- Investigators found fake


