YARA · SEKOIA.IO Community
SEKOIA_Backdoor_Win_Andardoor
Detect the Andardoor backdoor used by Andariel
- Autor
- Sekoia.io
- Fecha
- 2023-09-04
- Modificada
- 2024-12-19
- Puntuación / Calidad
- 75 / 80
Qué detecta esta regla
Detect the Andardoor backdoor used by Andariel
Familia de malware asociada: Andardoor.
Objetivos: PE de Windows.
Define 6 patrones (6 de texto, 0 hex, 0 regex). Módulos YARA usados: pe, hash.
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"
import "hash"
rule SEKOIA_Backdoor_Win_Andardoor : FILE
{
meta:
= "Detect the Andardoor backdoor used by Andariel"
= "Sekoia.io"
= "27f28f6e-b8fd-41dc-88a8-92f5a125a807"
= "2023-09-04"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/backdoor_win_andardoor.yar#L4-L34"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "631836634222f4e081d3070c92150a4e14f06bcdd462fbfdf0756aa1f2661b59"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = " : Deleted Dir" wide
$ = " : Not Exists" wide
$ = " : Deleted File" wide
$ = " : Closed." wide
$ = " : Opened." wide
$ = "GoodLuck!" wide
condition:
uint16( 0 ) == 0x5A4D and all of them or for any i in ( 0 .. pe.number_of_sections -1 ) : ( hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "9fea4972270c492ca304f3663913ae63" ) or for any i in ( 0 .. pe.number_of_resources -1 ) : ( hash.sha256 ( pe.resources [ i ] . offset , pe.resources [ i ] . length ) == "34fde27c3c864efa6225e72016992d341f29cbbea638432a1c63ce05ca568300" )
}
Cadenas (6 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $ | texto | " : Deleted Dir" | wide |
| $ | texto | " : Not Exists" | wide |
| $ | texto | " : Deleted File" | wide |
| $ | texto | " : Closed." | wide |
| $ | texto | " : Opened." | wide |
| $ | texto | "GoodLuck!" | wide |
Condición
uint16( 0 ) == 0x5A4D and all of them or for any i in ( 0 .. pe.number_of_sections -1 ) : ( hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "9fea4972270c492ca304f3663913ae63" ) or for any i in ( 0 .. pe.number_of_resources -1 ) : ( hash.sha256 ( pe.resources [ i ] . offset , pe.resources [ i ] . length ) == "34fde27c3c864efa6225e72016992d341f29cbbea638432a1c63ce05ca568300" )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de la regla.
- Un bucle for comprueba una propiedad sobre varias coincidencias o elementos.
- Usa el módulo pe.
- Usa el módulo hash.
- Compara un hash del archivo o de una parte.
- Comprueba secciones PE (nombres, número o propiedades).
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: Sekoia.io
Repositorio de origen: SEKOIA.IO Community @ a438a5901a
Licencia: Detection Rule License 1.1 (licencia del repositorio)
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: 27f28f6e-b8fd-41dc-88a8-92f5a125a807
Metadatos
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Etiquetas:FILE
Reglas relacionadas
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20