This rule identifies the execution of the CrossRAT remote access tool by matching its specific file hash against ingested telemetry within Azure Sentinel. Proactively hunting for this signature is essential to distinguish legitimate administrative usage from potential unauthorized remote sessions that could serve as a foothold for lateral movement or data exfiltration.
rule CrossRAT: RAT
{
meta:
description = "Detects CrossRAT known hash"
author = "Simon Sigre (simon.sigre@gmail.com)"
date = "26/01/2018"
ref = "https://simonsigre.com"
ref= "https://objective-see.com/blog/blog_0x28.html"
strings:
$magic = { 50 4b 03 04 ( 14 | 0a ) 00 }
$string_1 = "META-INF/"
$string_2 = ".class" nocase
condition:
filesize < 400KB and
$magic at 0 and 1 of ($string_*) and
hash.md5(0, filesize) == "85b794e080d83a91e904b97769e1e770"
}
This YARA rule can be deployed in the following contexts:
This rule contains 3 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the Detects CrossRAT known hash rule, tailored for a legitimate enterprise environment:
Endpoint Detection and Response (EDR) Agent Self-Updates
C:\Program Files\CrowdStrike\fsagent.exe) and restrict the detection scope to exclude events where the parent process is the EDR’s own updater service.Scheduled Enterprise Patch Management Deployments
ccmexec.exe or IvAgent.exe) running under the SYSTEM account.Automated Compliance and Configuration Auditing