← Back to SOC feed Coverage →

Web Shell - file php-backdoor.php

yara HIGH signature-base
backdoorflorian-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-10T23:00:00Z · Confidence: medium

Hunt Hypothesis

This detection identifies adversaries who have established a persistent PHP web shell backdoor on a web server to enable remote command execution and potential lateral movement. Proactively hunting for this behavior in Azure Sentinel is critical because web shells often serve as an initial foothold that allows attackers to maintain stealthy access and exfiltrate sensitive data before triggering broader security alerts.

YARA Rule

rule webshell_php_backdoor {
	meta:
		description = "Web Shell - file php-backdoor.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 = "2b5cb105c4ea9b5ebc64705b4bd86bf7"
		id = "393e738a-b4c2-5630-a55f-c3caee4ff75e"
	strings:
		$s1 = "if(!move_uploaded_file($HTTP_POST_FILES['file_name']['tmp_name'], $dir.$fname))" fullword
		$s2 = "<pre><form action=\"<? echo $PHP_SELF; ?>\" METHOD=GET >execute command: <input "
	condition:
		all of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 2 string patterns in its detection logic.

False Positive Guidance

Here are 5 specific false positive scenarios for the Web Shell - file php-backdoor.php detection rule, including suggested filters and exclusions:

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