An online tool meant to make PHP source code harder to read added a backdoor to a script processed by a researcher, the SANS Internet Storm Center reported. The November 29 analysis by Johannes Ullrich followed a tip from researcher Patrick Scholing.
The utility returned PHP that preserved the original script’s behavior while adding code that could disclose where it ran and allow an unauthorized file to be written. A test that only checks whether the application still works could miss the additions. SANS described the behavior in a tested sample. The number of people who used the service and the extent of any compromise remain unknown.
Teams that processed PHP with an online obfuscator can review deployed files against trusted source and build artifacts. If they find unexpected code, preserving logs and reviewing outbound traffic and recent file changes can help establish what happened before they redeploy from known-good source.