YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Egregor
Detects Egregor ransomware variants
- 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.
import "pe"
rule DITEKSHEN_MALWARE_Win_Egregor : FILE
{
meta:
= "Detects Egregor ransomware variants"
= "ditekSHen"
= "2e24d4ec-39c2-5148-80a1-04f96bc8b477"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L2397-L2434"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "d39a7bf89a7574f7dfe56db78c8cdbbee97782f829805d4ee87fd9f1635154cd"
= 75
= 75
= "FILE"
= "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)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "C:\\Logmein\\{888-8888-9999}\\Logmein.log" | fullword wide |
| $p1 | texto | "--deinstall" | fullword wide |
| $p2 | texto | "--del" | fullword wide |
| $p3 | texto | "--exit" | fullword wide |
| $p4 | texto | "--kill" | fullword wide |
| $p5 | texto | "--loud" | fullword wide |
| $p6 | texto | "--nooperation" | fullword wide |
| $p7 | texto | "--nop" | fullword wide |
| $p8 | texto | "--skip" | fullword wide |
| $p9 | texto | "--useless" | fullword wide |
| $p10 | texto | "--yourmommy" | fullword wide |
| $p11 | texto | "-passegregor" | ascii wide |
| $p12 | texto | "-peguard" | ascii wide |
| $p13 | texto | "--nomimikatz" | ascii wide |
| $p14 | texto | "--multiproc" | ascii wide |
| $p15 | texto | "--killrdp" | ascii wide |
| $p16 | texto | "--nonet" | ascii wide |
| $p17 | texto | "--norename" | ascii wide |
| $p18 | texto | "--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.
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).
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_sig | MALWARE.Win.Ransomware.Egregor |
|---|
Etiquetas:FILE
Reglas relacionadas
- ARKBIRD_SOLG_Ran_Egregor_Oct_2020_1Solo metadatosMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2020-10-29
- ARKBIRD_SOLG_Ran_Egregor_Sept_2020_1Solo metadatosMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2020-10-07
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06