← Back to SOC feed Coverage →

Looks like a keylogger file created by DarkComet Malware

yara MEDIUM Yara-Rules
communityinfostealer
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 malware to establish persistence and exfiltrate sensitive credentials through stealthy keylogging mechanisms on Azure endpoints. Proactively hunting for this behavior in Azure Sentinel is critical because early detection of these specific file artifacts allows the SOC team to isolate compromised hosts before attackers can escalate privileges or extract high-value data.

YARA Rule

rule DarkComet_Keylogger_File  : RAT
{
	meta:
		author = "Florian Roth"
		description = "Looks like a keylogger file created by DarkComet Malware"
		date = "25.07.14"
		reference = "https://raw.githubusercontent.com/Neo23x0/Loki/master/signatures/thor-hacktools.yar"
		score = 50
	strings:
		$magic = "::"
		$entry = /\n:: [A-Z]/
		$timestamp = /\([0-9]?[0-9]:[0-9][0-9]:[0-9][0-9] [AP]M\)/
	condition:
		($magic at 0) and #entry > 10 and #timestamp > 10
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 3 string patterns in its detection logic.

References

False Positive Guidance

Here are 4 specific false positive scenarios for the DarkComet Keylogger detection rule in an enterprise environment, along with suggested filters:

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