Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Doejocrypt

Detects DoejoCrypt / DearCry ransomware

MalwareDoejocryptditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
Autor
ditekSHen
Fecha
2020-11-06
Modificada
2024-11-01
Puntuación / Calidad
75 / 75

Qué detecta esta regla

Detects DoejoCrypt / DearCry ransomware

Familia de malware asociada: Doejocrypt.

Objetivos: PE de Windows.

Define 9 patrones (6 de texto, 3 hex, 0 regex).

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

Código de la regla

malware-win-doejocrypt.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Doejocrypt : FILE
{
	meta:
		description = "Detects DoejoCrypt / DearCry ransomware"
		author = "ditekSHen"
		id = "2c90f8e7-ced4-56da-ab8d-61b5ba63dacd"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L4977-L4993"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "f8a3897de9522340799a59e3e755c323b0defaab73a9030b6b69a1a82c05dcd0"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "DEARCRY!" fullword ascii
		$s2 = ".CRYPT" fullword ascii
		$s3 = "\\EncryptFile -svcV2\\" ascii
		$s4 = "please send me the following hash!" ascii
		$s5 = "dear!!!" fullword ascii
		$s6 = "/readme.txt" fullword ascii
		$o1 = { c3 8b 65 e8 c7 45 fc fe ff ff ff 8b b5 f4 e9 ff }
		$o2 = { 0f 8c 27 ff ff ff 33 db 57 e8 7b 36 00 00 eb 0a }
		$o3 = { 0f 8c 2a ff ff ff 53 57 e8 b7 42 00 00 8b 4c 24 }

	condition:
		uint16( 0 ) == 0x5a4d and 4 of ( $s* ) or ( all of ( $o* ) and ( 2 of ( $s* ) ) )
}

Cadenas (9 patrones)

IdentificadorTipoValorModificadores
$s1texto"DEARCRY!"fullword ascii
$s2texto".CRYPT"fullword ascii
$s3texto"\\EncryptFile -svcV2\\"ascii
$s4texto"please send me the following hash!"ascii
$s5texto"dear!!!"fullword ascii
$s6texto"/readme.txt"fullword ascii
$o1hex{ c3 8b 65 e8 c7 45 fc fe ff ff ff 8b b5 f4 e9 ff }
$o2hex{ 0f 8c 27 ff ff ff 33 db 57 e8 7b 36 00 00 eb 0a }
$o3hex{ 0f 8c 2a ff ff ff 53 57 e8 b7 42 00 00 8b 4c 24 }

Condición

uint16( 0 ) == 0x5a4d and 4 of ( $s* ) or ( all of ( $o* ) and ( 2 of ( $s* ) ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir todos los patrones de ( $o* ).
  • Deben coincidir al menos 4 patrones de ( $s* ).
  • Deben coincidir al menos 2 patrones de ( $s* ).

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: ditekSHen

Repositorio de origen: ditekSHen detection @ e76c93dcde

Licencia: BSD 2-Clause License (licencia del repositorio)

Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

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: 2c90f8e7-ced4-56da-ab8d-61b5ba63dacd

Etiquetas:FILE