Saltar al contenido

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_HKTL_Cobaltstrike_Sleepmask_Jul22

Detects static bytes in Cobalt Strike 4.5 sleep mask function that are not obfuscated

Herramienta ofensivaCobalt StrikeSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compila con YARA-X
Autor
CodeX
Fecha
2022-07-04
Modificada
2023-12-05
Puntuación / Calidad
80 / 85

Qué detecta esta regla

Detects static bytes in Cobalt Strike 4.5 sleep mask function that are not obfuscated

Familia de malware asociada: Cobalt Strike.

Define 1 patrones (0 de texto, 1 hex, 0 regex).

Resumen generado a partir de los metadatos y la condición de la regla.

Código de la regla

hktl-cobaltstrike-sleepmask-jul22.yarDetection Rule License 1.1
rule SIGNATURE_BASE_HKTL_Cobaltstrike_Sleepmask_Jul22
{
	meta:
		description = "Detects static bytes in Cobalt Strike 4.5 sleep mask function that are not obfuscated"
		author = "CodeX"
		id = "d396ab0e-b584-5a7c-8627-5f318a20f9dd"
		date = "2022-07-04"
		modified = "2023-12-05"
		reference = "https://codex-7.gitbook.io/codexs-terminal-window/blue-team/detecting-cobalt-strike/sleep-mask-kit-iocs"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_cobaltstrike.yar#L3-L15"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "233b3cb441f45f400c0261589aac31dd1fcd9c4e3a86a6aaa46c60849063b34b"
		score = 80
		quality = 85
		tags = ""

	strings:
		$sleep_mask = { 48 8B C4 48 89 58 08 48 89 68 10 48 89 70 18 48 89 78 20 45 33 DB 45 33 D2 33 FF 33 F6 48 8B E9 BB 03 00 00 00 85 D2 0F 84 81 00 00 00 0F B6 45 }

	condition:
		$sleep_mask
}

Cadenas (1 patrones)

IdentificadorTipoValorModificadores
$sleep_maskhex{ 48 8B C4 48 89 58 08 48 89 68 10 48 89 70 18 48 89 78 20 45 33 DB 45 33 D2 33 FF 33 F6 48 8B E9 BB 03 00 00 00 85 D2 0F 84 81 00 00 00 0F B6 45 }

Condición

$sleep_mask

En palabras sencillas (Heurística)

  • El patrón $sleep_mask debe estar presente.

Prueba esta regla en tu navegador

Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.

Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.

Abrir en el editor

Referencias

Licencia y atribución

Autor: CodeX

Repositorio de origen: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licencia: Detection Rule License 1.1 (licencia del repositorio)

Regla original

Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.

Id de la regla: d396ab0e-b584-5a7c-8627-5f318a20f9dd

Más reglas de Cobalt Strike