Skip to content

YARA · Embee Research

EMBEERESEARCH_Win_Cobalt_Sleep_Encrypt

Detects Sleep Encryption Logic Found in Cobalt Strike Deployments

Hack toolEmbee ResearchDetection Rule License 1.1Compiles with YARA-X
Author
Matthew @ Embee_Research
Date
2023-08-27
Modified
2023-10-18
Score / Quality
75 / 75

What this rule detects

Detects Sleep Encryption Logic Found in Cobalt Strike Deployments

It defines 2 patterns (0 text, 2 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

win-cobalt-sleep-encrypt.yarDetection Rule License 1.1
rule EMBEERESEARCH_Win_Cobalt_Sleep_Encrypt : FILE
{
	meta:
		description = "Detects Sleep Encryption Logic Found in Cobalt Strike Deployments"
		author = "Matthew @ Embee_Research"
		id = "6bd6fbb4-6634-5b51-90f0-f24e48d69043"
		date = "2023-08-27"
		modified = "2023-10-18"
		reference = "https://github.com/embee-research/Yara-detection-rules/"
		source_url = "https://github.com/embee-research/Yara-detection-rules//blob/ac56d6f6fd2a30c8cb6e5c0455d6519210a8b0f4/Rules/win_cobalt_sleep_encrypt_aug_2023.yar#L1-L55"
		license_url = "N/A"
		hash = "26b2f12906c3590c8272b80358867944fd86b9f2cc21ee6f76f023db812e5bb1"
		logic_hash = "7aa2674ecaaae819c3f26924fa0622df322b1214493f37b1bdf5e00ba5ee98e6"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$r1_nokey = {4E 8B 04 08 B8 ?? ?? ?? ?? 41 F7 E3 41 8B C3 C1 EA 02 41 FF C3 6B D2 0D 2B C2 8A 4C 18 18 41 30 0C 38 48 8B 43 10 41 8B FB 4A 3B 7C 08 08}
		$r2_nokey = {49 8B F9 4C 8B 03 B8 ?? ?? ?? ?? 41 F7 E1 41 8B C1 C1 EA 02 41 FF C1 6B D2 0D 2B C2 8A 4C 18 18 42 30 0C 07 48 FF C7 45 3B CB}

	condition:
		($r1_nokey or $r2_nokey )
}

Strings (2 patterns)

IdentifierTypeValueModifiers
$r1_nokeyhex{4E 8B 04 08 B8 ?? ?? ?? ?? 41 F7 E3 41 8B C3 C1 EA 02 41 FF C3 6B D2 0D 2B C2 8A 4C 18 18 41 30 0C 38 48 8B 43 10 41 8B FB 4A 3B 7C 08 08}
$r2_nokeyhex{49 8B F9 4C 8B 03 B8 ?? ?? ?? ?? 41 F7 E1 41 8B C1 C1 EA 02 41 FF C1 6B D2 0D 2B C2 8A 4C 18 18 42 30 0C 07 48 FF C7 45 3B CB}

Condition

($r1_nokey or $r2_nokey )

In plain words (Heuristic)

  • Pattern $r1_nokey must be present.
  • Pattern $r2_nokey must be present.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • 26b2f12906c3590c8272b80358867944fd86b9f2cc21ee6f76f023db812e5bb1

Licence & attribution

Author: Matthew @ Embee_Research

Source repository: Embee Research @ ac56d6f6fd

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 6bd6fbb4-6634-5b51-90f0-f24e48d69043

Tags:FILE