← Back to SOC feed Coverage →

Havex Trojan PHP Server

yara LOW Yara-Rules
backdoorcommunity
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 Yara-Rules →
Retrieved: 2026-07-13T11:00:00Z · Confidence: medium

Hunt Hypothesis

This detection identifies the presence of the Havex Trojan on PHP web servers by scanning for specific file artifacts known to establish persistence and command-and-control channels. Proactive hunting is essential in Azure Sentinel to uncover dormant infections that may evade standard signature-based alerts, allowing analysts to assess lateral movement risks before an active outbreak occurs.

YARA Rule

rule Havex_Trojan_PHP_Server
{
    meta:
        Author      = "Florian Roth"
        Date        = "2014/06/24"
        Description = "Detects the PHP server component of the Havex RAT"
        Reference   = "www.f-secure.com/weblog/archives/00002718.html"

    strings:
        $s1 = "havex--></body></head>"
        $s2 = "ANSWERTAG_START"
        $s3 = "PATH_BLOCKFILE"

    condition:
        all of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 3 string patterns in its detection logic.

False Positive Guidance

Here are 5 specific false positive scenarios for the Havex Trojan PHP Server detection rule in an enterprise environment, along with suggested filters or exclusions:

Original source: https://github.com/Yara-Rules/rules/blob/main/malware/RAT_Havex.yar