This hunt targets adversaries leveraging the Indetectables Remote Access Trojan (RAT) by monitoring for specific signature strings identified in recent research by Paul Rascagneres and Ronan Mouchoux. Proactively hunting for these indicators within Azure Sentinel is critical to identify early-stage, stealthy command-and-control communications that may evade standard heuristic detections due to their low-severity classification.
rule Indetectables_RAT: RAT {
meta:
description = "Detects Indetectables RAT based on strings found in research by Paul Rascagneres & Ronan Mouchoux"
author = "Florian Roth"
reference = "http://www.sekoia.fr/blog/when-a-brazilian-string-smells-bad/"
date = "2015-10-01"
super_rule = 1
hash1 = "081905074c19d5e32fd41a24b4c512d8fd9d2c3a8b7382009e3ab920728c7105"
hash2 = "66306c2a55a3c17b350afaba76db7e91bfc835c0e90a42aa4cf59e4179b80229"
hash3 = "1fa810018f6dd169e46a62a4f77ae076f93a853bfc33c7cf96266772535f6801"
strings:
$s1 = "Coded By M3" fullword wide
$s2 = "Stub Undetector M3" fullword wide
$s3 = "www.webmenegatti.com.br" wide
$s4 = "M3n3gatt1" fullword wide
$s5 = "TheMisterFUD" fullword wide
$s6 = "KillZoneKillZoneKill" fullword ascii
$s7 = "[[__M3_F_U_D_M3__]]$" fullword ascii
$s8 = "M3_F_U_D_M3" ascii
$s9 = "M3n3gatt1hack3r" fullword wide
$s9a = "M3n3gatt1hack3r" fullword ascii
condition:
uint16(0) == 0x5a4d and filesize < 5000KB and 1 of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 10 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the Indetectables RAT detection rule, tailored for an enterprise environment:
Scenario: Enterprise Endpoint Protection Scanning (CrowdStrike Falcon or SentinelOne)
ParentProcessName matches known EDR agents (e.g., Cortex.exe, SentinelOneAgent.exe) and the CommandLine contains arguments related to “scan,” “update,” or “signature-check.”Scenario: Microsoft Office Macro Execution via Scheduled Maintenance
EXCEL.EXE, WINWORD.EXE) to process large datasets. These applications, when loading specific add-ins or processing VBA macros with embedded security libraries, may generate memory strings matching the RAT indicators, particularly if the enterprise uses a standardized template library.ProcessName equal to EXCEL.EXE or WINWORD.EXE where the UserAccount is a service account (e.g., svc-data-processor) and the execution occurs during defined maintenance windows (e.g., 02:00–04:00 local time).Scenario: Software Deployment via SCCM or Intune