YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Gelsemine
Detects Gelsemine
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects Gelsemine
Familia de malware asociada: Gelsemine.
Objetivos: PE de Windows.
Define 13 patrones (7 de texto, 6 hex, 0 regex).
YARA-X dice: warning[duplicate_pattern_value]: duplicate pattern value
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
rule DITEKSHEN_MALWARE_Win_Gelsemine : FILE
{
meta:
= "Detects Gelsemine"
= "ditekSHen"
= "f7e9ca53-fc52-5da0-a760-cb09c2544f4f"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6174-L6194"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "8c20efa6f34ee9165fac9f1f2e5eb20830a02016309dfaa5681977e1a8ac6068"
= 75
= 75
= "FILE"
strings:
$s1 = "If any of these steps fails.only pick one of the targets for configuration\"If you want to just get on with it*which also use [ " wide
$s2 = "A make implementation+with core modules (please read NOTES.PER_L)2The per_l Text::Template (please read NOTES.PER_L)" wide
$s3 = "NOTES.VMS (OpenVMS)!NOTES.WIN (any supported Windows)%NOTES.DJGPP (DOS platform with DJGPP)'NOTES.ANDROID (obviously Android [ND" wide
$s4 = "A simple example would be this)which is to be understood as one of these" fullword wide
$s5 = "bala bala bala" fullword wide
$s6 = "echo FOO" fullword wide
$s7 = "?_Tidy@?$basic_string@DU?$char_traits@D@std@@V" ascii
$o1 = { eb 08 c7 44 24 34 fd ff ff ff 8b 44 24 54 8b 4c }
$o2 = { eb 08 c7 44 24 34 fd ff ff ff 8b 44 24 54 8b 4c }
$o3 = { 8b 76 08 2b f0 a1 34 ff 40 00 03 f0 89 35 38 ff }
$o4 = { 83 c4 34 c3 8b 4e 20 6a 05 e8 73 10 00 00 8b 76 }
$o5 = { 8b 44 24 44 2b d1 03 d0 8b f2 e9 14 ff ff ff 8d }
$o6 = { 68 00 06 00 00 6a 00 e8 d3 ff ff ff a2 48 00 41 }
condition:
uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or ( all of ( $o* ) and 2 of ( $s* ) ) )
}
Cadenas (13 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "If any of these steps fails.only pick one of the targets for configuration\"If you want to just get on with it*which also use [ " | wide |
| $s2 | texto | "A make implementation+with core modules (please read NOTES.PER_L)2The per_l Text::Template (please read NOTES.PER_L)" | wide |
| $s3 | texto | "NOTES.VMS (OpenVMS)!NOTES.WIN (any supported Windows)%NOTES.DJGPP (DOS platform with DJGPP)'NOTES.ANDROID (obviously Android [ND" | wide |
| $s4 | texto | "A simple example would be this)which is to be understood as one of these" | fullword wide |
| $s5 | texto | "bala bala bala" | fullword wide |
| $s6 | texto | "echo FOO" | fullword wide |
| $s7 | texto | "?_Tidy@?$basic_string@DU?$char_traits@D@std@@V" | ascii |
| $o1 | hex | { eb 08 c7 44 24 34 fd ff ff ff 8b 44 24 54 8b 4c } | |
| $o2 | hex | { eb 08 c7 44 24 34 fd ff ff ff 8b 44 24 54 8b 4c } | |
| $o3 | hex | { 8b 76 08 2b f0 a1 34 ff 40 00 03 f0 89 35 38 ff } | |
| $o4 | hex | { 83 c4 34 c3 8b 4e 20 6a 05 e8 73 10 00 00 8b 76 } | |
| $o5 | hex | { 8b 44 24 44 2b d1 03 d0 8b f2 e9 14 ff ff ff 8d } | |
| $o6 | hex | { 68 00 06 00 00 6a 00 e8 d3 ff ff ff a2 48 00 41 } |
Condición
uint16( 0 ) == 0x5a4d and ( 6 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 6 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.
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: f7e9ca53-fc52-5da0-a760-cb09c2544f4f
Etiquetas:FILE
Reglas relacionadas
- ARKBIRD_SOLG_APT_Gelsemium_Gelsemine_June_2021_1Solo metadatosAPT / actorArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2021-06-12
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06