This detection rule identifies the execution of the Xtrem Remote Access Trojan (RAT) version 3.5, which adversaries deploy to establish persistent command-and-control channels and exfiltrate sensitive data from endpoints. Proactively hunting for this specific malware variant in Azure Sentinel is critical because its low severity classification may cause it to be overlooked by standard alerting thresholds, allowing stealthy lateral movement to go undetected until significant compromise occurs.
rule xtremrat : rat
{
meta:
author = "Jean-Philippe Teissier / @Jipe_"
description = "Xtrem RAT v3.5"
date = "2012-07-12"
version = "1.0"
filetype = "memory"
strings:
$a = "XTREME" wide
$b = "XTREMEBINDER" wide
$c = "STARTSERVERBUFFER" wide
$d = "SOFTWARE\\XtremeRAT" wide
$e = "XTREMEUPDATE" wide
$f = "XtremeKeylogger" wide
$g = "myversion|3.5" wide
$h = "xtreme rat" wide nocase
condition:
2 of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 8 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the Xtrem RAT v3.5 detection rule in an enterprise environment, including suggested filters and exclusions:
Antivirus Real-Time Scanning on Large Archives
.zip or .7z files, triggering the YARA signature due to generic RAT-like strings found in standard development libraries (e.g., libcurl, openssl).C:\Program Files\CrowdStrike\fs.exe or MsMpEng.exe) when they are accessing files with extensions .zip, .7z, or .tar. Additionally, exclude file paths located in designated “Archive” directories.Software Deployment via SCCM/Intune
AdobeInstaller.exe) that drops temporary DLLs and scripts into %TEMP% which contain obfuscated code resembling the Xtrem RAT’s command-and-control initialization logic.C:\Windows\CCMCache\* or C:\ProgramData\Microsoft\Intune Management Extension\*. Furthermore, add a process exclusion for known deployment agents such as ccmexec.exe and msiexec.exe when they are spawning child processes with high entropy scores.Automated Backup Verification Jobs