This detection identifies the deployment of a malicious web shell disguised as a MySQL interface version 0.8.php, which adversaries often use to establish persistence and execute arbitrary commands on compromised web servers. Proactive hunting for this artifact in Azure Sentinel is critical because web shells frequently evade standard signature-based defenses by mimicking legitimate application files, allowing attackers to maintain covert access to sensitive data and internal networks.
rule webshell_MySQL_Web_Interface_Version_0_8 {
meta:
description = "Web Shell - file MySQL Web Interface Version 0.8.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 = "36d4f34d0a22080f47bb1cb94107c60f"
id = "393e738a-b4c2-5630-a55f-c3caee4ff75e"
strings:
$s2 = "href='$PHP_SELF?action=dumpTable&dbname=$dbname&tablename=$tablename'>Dump</a>"
condition:
all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
Here are specific false positive scenarios for the Web Shell - file MySQL Web Interface Version 0.8.php detection rule, along with recommended filters and exclusions:
Scenario: Automated Backup Script Execution
requests library to verify database connectivity. The script uploads the standard 0.8.php interface file to a temporary staging directory (/var/www/html/maintenance) before running a health check query against the MySQL instance.192.168.10.55) and restrict the detection to the specific staging directory path (*maintenance*). Alternatively, exclude events occurring during the defined maintenance window (e.g., 02:00–04:00 UTC daily).Scenario: Developer CI/CD Pipeline Deployment
0.8.php file to the web root (/opt/webapp/public) to allow QA engineers to manually verify database connection strings before promoting the build to production.svc-deploy, jenkins-bot) and the file creation timestamp aligns with active pipeline run IDs. Exclude files created within the specific deployment directory structure (*/deployments/*).**Scenario: Third-Party Monitoring Agent Installation