r/blueteamsec • u/Straight-Practice-99 • 10h ago
incident writeup (who and how) PHP2Shell detection: attempt signatures and IOCs from live open-dir tracking
hunt.iophp2shell attempts are easy to spot even though nobody is landing it yet. Watch for the php2shell user-agent (seen as php2shell-scan/109618 and php2shell-109618), multipart POSTs carrying a PHP_SESSION_UPLOAD_PROGRESS field with an oversized body, and bursts of "Allowed memory size exhausted" in PHP-FPM logs. Those show you were targeted, not compromised.
We also published the scanner and staging infrastructure (the Mirai-style botnet scanner network, payload host, botnet binary hosts and C2 domains) as block/detect indicators. Patch to 8.5.12 / 8.4.27 / 8.3.36 / 8.2.35. Disabling session.upload_progress was floated early but does not close the bug, since the flaw is the OOM-bailout handling, not that feature.