This detection targets adversaries deploying GlassRAT malware to establish persistent remote access and execute command-and-control communications within the Azure environment. Proactive hunting for this specific signature is essential because its low severity classification often allows initial infections to bypass automated alerts, enabling attackers to maintain a stealthy foothold before expanding their lateral movement.
rule glassrat: RAT
{
meta:
author = "Brian Wallace @botnet_hunter"
strings:
$a = "PostQuitMessage"
$b = "pwlfnn10,gzg"
$c = "update.dll"
$d = "_winver"
condition:
all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 4 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the glassrat detection rule in an enterprise environment, including suggested filters and exclusions:
Endpoint Detection & Response (EDR) Agent Self-Updates
glassrat YARA signature often matches the file hashing or memory scanning behavior of major EDR agents performing routine self-updates. For instance, when CrowdStrike Falcon, SentinelOne, or Microsoft Defender for Endpoint updates its sensor binaries, it may load modules that match the glassrat heuristic patterns (specifically looking for specific DLL injection signatures or file structure anomalies).falcon.sys, s1service.exe, or MsMpEng.exe and the event type is “File Creation” or “Module Load.”Scheduled Software Distribution Tasks (SCCM/Intune)
glassrat.ccmexec.exe (SCCM), IntuneManagementExtension.exe, or msiexec.exe running under a scheduled task context (Task Scheduler).IT Administration via Remote Desktop Services