← Back to SOC feed Coverage →

Web Shell - file server.php

yara MEDIUM signature-base
florian-rothwebshell
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at signature-base →
Retrieved: 2026-08-07T23:00:00Z · Confidence: medium

Hunt Hypothesis

This detection identifies potential web shell deployments where adversaries establish a persistent backdoor via a server.php file to execute commands and maintain access on compromised web servers. Proactively hunting for this behavior in Azure Sentinel is critical to uncover stealthy post-exploitation activities that may evade standard signature-based alerts, ensuring early identification of unauthorized persistence mechanisms before lateral movement occurs.

YARA Rule

rule webshell_php_sh_server {
	meta:
		description = "Web Shell - file server.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 = 50
		hash = "d87b019e74064aa90e2bb143e5e16cfa"
		id = "393e738a-b4c2-5630-a55f-c3caee4ff75e"
	strings:
		$s0 = "eval(getenv('HTTP_CODE'));" fullword
	condition:
		all of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 1 string patterns in its detection logic.

False Positive Guidance

Here are 4 specific false positive scenarios for the “Web Shell - file server.php” detection rule, including suggested filters or exclusions:

Original source: https://github.com/Neo23x0/signature-base/blob/main/yara/thor-webshells.yar