Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Egregor

Detects Egregor ransomware variants

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

Qué detecta esta regla

Detects Egregor ransomware variants

Familia de malware asociada: Egregor.

Objetivos: PE de Windows.

Define 19 patrones (19 de texto, 0 hex, 0 regex). Módulos YARA usados: pe.

YARA-X dice: warning[deprecated_field]: field `number_of_sections` is deprecated

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

Código de la regla

Incluye los imports necesarios para compilarla por sí sola.

malware-win-egregor.yarBSD 2-Clause License
import "pe"

rule DITEKSHEN_MALWARE_Win_Egregor : FILE
{
	meta:
		description = "Detects Egregor ransomware variants"
		author = "ditekSHen"
		id = "2e24d4ec-39c2-5148-80a1-04f96bc8b477"
		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#L2397-L2434"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "d39a7bf89a7574f7dfe56db78c8cdbbee97782f829805d4ee87fd9f1635154cd"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Ransomware.Egregor"

	strings:
		$s1 = "C:\\Logmein\\{888-8888-9999}\\Logmein.log" fullword wide
		$p1 = "--deinstall" fullword wide
		$p2 = "--del" fullword wide
		$p3 = "--exit" fullword wide
		$p4 = "--kill" fullword wide
		$p5 = "--loud" fullword wide
		$p6 = "--nooperation" fullword wide
		$p7 = "--nop" fullword wide
		$p8 = "--skip" fullword wide
		$p9 = "--useless" fullword wide
		$p10 = "--yourmommy" fullword wide
		$p11 = "-passegregor" ascii wide
		$p12 = "-peguard" ascii wide
		$p13 = "--nomimikatz" ascii wide
		$p14 = "--multiproc" ascii wide
		$p15 = "--killrdp" ascii wide
		$p16 = "--nonet" ascii wide
		$p17 = "--norename" ascii wide
		$p18 = "--greetings" ascii wide

	condition:
		( uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and ( ( all of ( $s* ) and 1 of ( $p* ) ) or ( 2 of them and filesize < 1000KB and for any i in ( 0 .. pe.number_of_sections ) : ( ( pe.sections [ i ] . name == ".00cfg" ) ) ) ) ) or 8 of ( $p* )
}

Cadenas (19 patrones)

IdentificadorTipoValorModificadores
$s1texto"C:\\Logmein\\{888-8888-9999}\\Logmein.log"fullword wide
$p1texto"--deinstall"fullword wide
$p2texto"--del"fullword wide
$p3texto"--exit"fullword wide
$p4texto"--kill"fullword wide
$p5texto"--loud"fullword wide
$p6texto"--nooperation"fullword wide
$p7texto"--nop"fullword wide
$p8texto"--skip"fullword wide
$p9texto"--useless"fullword wide
$p10texto"--yourmommy"fullword wide
$p11texto"-passegregor"ascii wide
$p12texto"-peguard"ascii wide
$p13texto"--nomimikatz"ascii wide
$p14texto"--multiproc"ascii wide
$p15texto"--killrdp"ascii wide
$p16texto"--nonet"ascii wide
$p17texto"--norename"ascii wide
$p18texto"--greetings"ascii wide

Condición

( uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and ( ( all of ( $s* ) and 1 of ( $p* ) ) or ( 2 of them and filesize < 1000KB and for any i in ( 0 .. pe.number_of_sections ) : ( ( pe.sections [ i ] . name == ".00cfg" ) ) ) ) ) or 8 of ( $p* )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • El archivo debe ocupar menos de 1000KB (un límite barato que descarta archivos grandes).
  • Deben coincidir todos los patrones de ( $s* ).
  • Deben coincidir al menos 1 patrones de ( $p* ).
  • Deben coincidir al menos 2 patrones de la regla.
  • Deben coincidir al menos 8 patrones de ( $p* ).
  • Un bucle for comprueba una propiedad sobre varias coincidencias o elementos.
  • Usa el módulo pe.
  • Comprueba secciones PE (nombres, número o propiedades).
  • Requiere una DLL.

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: 2e24d4ec-39c2-5148-80a1-04f96bc8b477

Metadatos

clamav_sigMALWARE.Win.Ransomware.Egregor

Etiquetas:FILE

Más reglas de Egregor