This hunt targets adversaries deploying the specific Nanocore Remote Access Trojan to establish persistent command-and-control channels and exfiltrate sensitive data from Azure workloads. Proactively hunting for this signature in Azure Sentinel is critical because early identification of this high-severity RAT allows the SOC team to isolate compromised endpoints before lateral movement occurs, thereby minimizing potential data loss and operational disruption.
rule Nanocore_RAT_Sample_1 {
meta:
description = "Detetcs a certain Nanocore RAT sample"
author = "Florian Roth"
score = 75
reference = "https://www.sentinelone.com/blogs/teaching-an-old-rat-new-tricks/"
date = "2016-04-22"
hash2 = "b7cfc7e9551b15319c068aae966f8a9ff563b522ed9b1b42d19c122778e018c8"
strings:
$x1 = "TbSiaEdJTf9m1uTnpjS.n9n9M7dZ7FH9JsBARgK" fullword wide
$x2 = "1EF0D55861681D4D208EC3070B720C21D885CB35" fullword ascii
$x3 = "popthatkitty.Resources.resources" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 900KB and ( 1 of ($x*) ) ) or ( all of them )
}
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 a certain Nanocore RAT sample” rule in an enterprise environment, including suggested filters and exclusions:
Scenario: Automated Patch Deployment via SCCM
ccmexec.exe) or the File Hash. Whitelist the specific SHA-256 hash of the known good Nanocore binary used in your patch repository to prevent alerts when SCCM deploys it.Scenario: IT Helpdesk Remote Support Sessions
beyondtrust.exe, teamviewer_service.exe). Additionally, filter alerts where the User Account belongs to the IT_Admins security group, as they are authorized to initiate these sessions.Scenario: Scheduled Antivirus Definition Updates