This detection identifies potential adversary persistence and command execution activities through the deployment of a suspicious web shell named r57142.php within the web server environment. Proactive hunting for this artifact in Azure Sentinel is critical to rapidly identify unauthorized entry points that could serve as a foothold for lateral movement or data exfiltration before they escalate into a broader compromise.
rule webshell_PHP_r57142 {
meta:
description = "Web Shell - file r57142.php"
license = "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE"
author = "Florian Roth (Nextron Systems)"
date = "2014/01/28"
score = 70
hash = "0911b6e6b8f4bcb05599b2885a7fe8a8"
id = "393e738a-b4c2-5630-a55f-c3caee4ff75e"
strings:
$s0 = "$downloaders = array('wget','fetch','lynx','links','curl','get','lwp-mirror');" fullword
condition:
all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 2 string patterns in its detection logic.
Here are 3-5 specific false positive scenarios for the Web Shell - file r57142.php detection rule, including suggested filters and exclusions:
Scenario: Automated Backup Script Execution by Admin Tools
r57142.php is frequently generated as a unique session token during these scheduled nightly jobs (e.g., running at 02:00 AM via Windows Task Scheduler).Veeam.Backup.Service.exe or Acronis.Agent.exe, and the file creation timestamp falls within a defined maintenance window (e.g., 01:00–04:00 local time).Scenario: CI/CD Pipeline Deployment of Monitoring Agents
r57142.php may be a standard artifact uploaded by the Ansible automation engine to verify connectivity before full application rollout.svc_ci_cd_deploy) and the file hash matches a known good baseline stored in the configuration management database (CMDB).Scenario: Third-Party Analytics or A/B Testing Tool Installation