YARA · SEKOIA.IO Community
SEKOIA_Apt_Konni
Rule based on structure offsets and file extension
- Autor
- Sekoia.io
- Fecha
- 2022-09-12
- Modificada
- 2024-12-19
- Puntuación / Calidad
- 75 / 80
Qué detecta esta regla
Rule based on structure offsets and file extension
Familia de malware asociada: Konni.
Objetivos: PE de Windows.
Define 9 patrones (6 de texto, 3 hex, 0 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
apt-konni.yarDetection Rule License 1.1
rule SEKOIA_Apt_Konni : FILE
{
meta:
= "Rule based on structure offsets and file extension"
= "Sekoia.io"
= "6a20c492-e932-41bd-ac4a-01d35bfb0c49"
= "2022-09-12"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_konni.yar#L1-L25"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "8f178421fd0968f4ce809054022579c7fc8dede5f6514e89966d13acb83d75d9"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ext_1 = ".zip" wide ascii fullword
$ext_2 = ".cab" wide ascii fullword
$ext_3 = ".rar" wide ascii fullword
$ext_4 = ".ini" wide ascii fullword
$ext_5 = ".dat" wide ascii fullword
$offset_structure_1 = { 8d ?? 08 02 00 00 }
$offset_structure_2 = { 8d ?? 10 04 00 00 }
$offset_structure_3 = { 8d ?? 18 06 00 00 }
$url = "%s/dn.php?name=%s&prefix=%s" wide
condition:
uint16be( 0 ) == 0x4d5a and filesize < 3MB and 3 of ( $ext_* ) and all of ( $offset_structure_* ) and $url
}
Cadenas (9 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $ext_1 | texto | ".zip" | wide ascii fullword |
| $ext_2 | texto | ".cab" | wide ascii fullword |
| $ext_3 | texto | ".rar" | wide ascii fullword |
| $ext_4 | texto | ".ini" | wide ascii fullword |
| $ext_5 | texto | ".dat" | wide ascii fullword |
| $offset_structure_1 | hex | { 8d ?? 08 02 00 00 } | |
| $offset_structure_2 | hex | { 8d ?? 10 04 00 00 } | |
| $offset_structure_3 | hex | { 8d ?? 18 06 00 00 } | |
| $url | texto | "%s/dn.php?name=%s&prefix=%s" | wide |
Condición
uint16be( 0 ) == 0x4d5a and filesize < 3MB and 3 of ( $ext_* ) and all of ( $offset_structure_* ) and $urlEn palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- El archivo debe ocupar menos de 3MB (un límite barato que descarta archivos grandes).
- Deben coincidir todos los patrones de ( $offset_structure_* ).
- Deben coincidir al menos 3 patrones de ( $ext_* ).
- El patrón $url debe estar presente.
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.
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: 6a20c492-e932-41bd-ac4a-01d35bfb0c49
Metadatos
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Etiquetas:FILE
Reglas relacionadas
- APT / actorSEKOIA.IO Community· Sekoia.io· 2023-11-27
- APT / actorSEKOIA.IO Community· Sekoia.io· 2023-11-27
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-09-26
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-09-26
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-09-26
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-09-12
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-09-10