← Back to SOC feed Coverage →

Malware creates the MSDCSC directory, which is a common path utilized by DarkComet, as well as the mutex pattern.

yara LOW Yara-Rules
community
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Yara-Rules →
Retrieved: 2026-07-12T23:00:00Z · Confidence: medium

Hunt Hypothesis

This hunt targets adversaries deploying DarkComet or similar malware that establish persistence and evade detection by creating the specific MSDCSC directory and associated mutex patterns within Windows environments. Proactively hunting for these artifacts in Azure Sentinel is critical to identify early-stage infections before they escalate, as this low-severity indicator often precedes more aggressive command-and-control activities.

YARA Rule

rule DarkComet_5
{ 
	meta:
		maltype = "DarkComet RAT"
		author = "https://github.com/reed1713"
		description = "Malware creates the MSDCSC directory, which is a common path utilized by DarkComet, as well as the mutex pattern."
	strings:
		$type="Microsoft-Windows-Security-Auditing"
		$eventid="4688"
		$data=/AppData\\Local\\Temp\\MSDCSC\\.+\.exe/

		$type1="Microsoft-Windows-Security-Auditing"
		$eventid1="4674"
		$data1=/DC_MUTEX-[0-9A-Z]{7}/
	condition:
		($type and $eventid and $data) or ($type1 and $eventid1 and $data1)
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 6 string patterns in its detection logic.

False Positive Guidance

Here are 5 specific false positive scenarios for the Malware creates the MSDCSC directory / DarkComet Mutex detection rule, including suggested filters and exclusions:

Original source: https://github.com/Yara-Rules/rules/blob/main/malware/RAT_DarkComet.yar