This detection rule identifies potential post-exploitation command-and-control activities associated with the DarkComet malware, which often establishes persistent connections to exfiltrate sensitive data from Azure workloads. Proactively hunting for these specific behavioral patterns in Azure Sentinel is critical because early identification of DarkComet’s low-severity indicators can prevent lateral movement and mitigate data loss before more severe impacts occur.
rule DarkComet_2 : rat
{
meta:
description = "DarkComet"
author = "Jean-Philippe Teissier / @Jipe_"
date = "2013-01-12"
filetype = "memory"
version = "1.0"
strings:
$a = "#BEGIN DARKCOMET DATA --"
$b = "#EOF DARKCOMET DATA --"
$c = "DC_MUTEX-"
$k1 = "#KCMDDC5#-890"
$k2 = "#KCMDDC51#-890"
condition:
any of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 5 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the DarkComet detection rule in an enterprise environment, including suggested filters and exclusions:
Endpoint Management Agent Updates
IntuneManagementExtension.exe, TaniumClientService.exe) running under the SYSTEM or dedicated service accounts (DOMAIN\svc-intune). Additionally, filter alerts where the execution path matches the standard installation directory of these tools.Scheduled Antivirus Scans and Remediation
C:\Program Files\CrowdStrike\FalconSensor\csfalcon.exe) and the action occurs during defined maintenance windows (e.g., 02:00 – 04:00 local time).IT Admin PowerShell Automation Scripts