← Back to SOC feed Coverage →

Gh0st

yara LOW Yara-Rules
community
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-12T23:00:00Z · Confidence: medium

Hunt Hypothesis

This hypothesis posits that adversaries are deploying the Gh0st remote access trojan to establish persistent command-and-control channels within Azure workloads, often evading standard signature-based detection due to its low-severity footprint. Proactively hunting for this behavior in Azure Sentinel is critical to identify early-stage lateral movement and data exfiltration attempts before they escalate into significant security incidents.

YARA Rule

rule Gh0st : RAT
{
    meta:
        description = "Gh0st"
	author = "botherder https://github.com/botherder"

    strings:
        $ = /(G)host/
        $ = /(i)nflate 1\.1\.4 Copyright 1995-2002 Mark Adler/
        $ = /(d)eflate 1\.1\.4 Copyright 1995-2002 Jean-loup Gailly/
        $ = /(%)s\\shell\\open\\command/
        $ = /(G)etClipboardData/
        $ = /(W)riteProcessMemory/
        $ = /(A)djustTokenPrivileges/
        $ = /(W)inSta0\\Default/
        $ = /(#)32770/
        $ = /(#)32771/
        $ = /(#)32772/
        $ = /(#)32774/

    condition:
        all of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

False Positive Guidance

Here are 4 specific false positive scenarios for the Gh0st detection rule in an enterprise environment, including suggested filters and exclusions:

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