YARA · SEKOIA.IO Community
SEKOIA_Loader_Win_Ninerat
Detect the NineRAT instrumentator
- Autor
- Sekoia.io
- Fecha
- 2023-12-12
- Modificada
- 2024-12-19
- Puntuación / Calidad
- 75 / 80
Qué detecta esta regla
Detect the NineRAT instrumentator
Familia de malware asociada: Ninerat.
Objetivos: PE de Windows.
Define 2 patrones (2 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_Loader_Win_Ninerat
{
meta:
= "Detect the NineRAT instrumentator"
= "Sekoia.io"
= "b9aa3ddc-7892-402f-b045-182884ee9bad"
= "2023-12-12"
= "2024-12-19"
= "https://blog.talosintelligence.com/lazarus_new_rats_dlang_and_telegram/"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_ninerat.yar#L4-L37"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "ba8cd92cc059232203bcadee260ddbae273fc4c89b18424974955607476982c4"
= "5b02fc3cfb5d74c09cab724b5b54c53a7c07e5766bffe5b1adf782c9e86a8541"
= "eab81277a2ffe926c2d9f990ee2e36f0e5f27a14d3048c50d31952d90ce7ab0b"
= 75
= 80
= ""
= "1.0"
= "TLP:CLEAR"
strings:
$ = "TelegramRat\\lastest\\Dropper"
$ = "\\Release\\ServiceMid.pdb"
condition:
all of them or pe.imphash ( ) == "104a3dc970a385f64de39e0dad61a9a2" or hash.md5 ( pe.rich_signature.clear_data ) == "aab0aa6b89d883e42be8b65a4e41a139" 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 ) == "827d5fd4b1a0426037529ee9bba48da0" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "82354f92508dcb33acda01c226de2975" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "ccd0f5d837a6cc05a861f040cbdfe080" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "8d2c169356afe8b53b0ecb83de3084b9" )
}
Cadenas (2 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $ | texto | "TelegramRat\\lastest\\Dropper" | |
| $ | texto | "\\Release\\ServiceMid.pdb" |
Condición
all of them or pe.imphash ( ) == "104a3dc970a385f64de39e0dad61a9a2" or hash.md5 ( pe.rich_signature.clear_data ) == "aab0aa6b89d883e42be8b65a4e41a139" 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 ) == "827d5fd4b1a0426037529ee9bba48da0" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "82354f92508dcb33acda01c226de2975" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "ccd0f5d837a6cc05a861f040cbdfe080" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "8d2c169356afe8b53b0ecb83de3084b9" )En palabras sencillas (Heurística)
- 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 el hash de importaciones PE (imphash).
- 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.
Hashes de muestras
Hashes de las muestras que el autor lista en los metadatos de la regla (búscalos en tu plataforma de threat intelligence).
- ba8cd92cc059232203bcadee260ddbae273fc4c89b18424974955607476982c4
- 5b02fc3cfb5d74c09cab724b5b54c53a7c07e5766bffe5b1adf782c9e86a8541
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: b9aa3ddc-7892-402f-b045-182884ee9bad
Metadatos
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Reglas relacionadas
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-12-12
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-12-12
- 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