Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Kimsuky_Konni_Dll

Rule based on structure offset and file extension

MalwareKimsukyKonniSEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X
Autor
Sekoia.io
Fecha
2022-09-12
Modificada
2024-12-19
Puntuación / Calidad
75 / 80

Qué detecta esta regla

Rule based on structure offset and file extension

Familia de malware asociada: Kimsuky, Konni.

Objetivos: PE de Windows.

Define 14 patrones (5 de texto, 9 hex, 0 regex).

Resumen generado a partir de los metadatos y la condición de la regla.

Código de la regla

kimsuky-konni-dll.yarDetection Rule License 1.1
rule SEKOIA_Kimsuky_Konni_Dll : FILE
{
	meta:
		description = "Rule based on structure offset and file extension"
		author = "Sekoia.io"
		id = "6a20c492-e932-41bd-ac4a-01d35bfb0c49"
		date = "2022-09-12"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/kimsuky_konni_dll.yar#L1-L29"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "7099156decdfe35cde22958133d851479f12180fff7b5744af0c549ab8259636"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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 }
		$offset_structure_4 = { 8d ?? 20 08 00 00 }
		$offset_structure_5 = { 8d ?? 28 0a 00 00 }
		$offset_structure_6 = { 89 ?? f8 11 00 00 }
		$offset_structure_7 = { 8d ?? fc 11 00 00 }
		$offset_structure_8 = { 89 ?? 0c 12 00 00 }
		$offset_structure_9 = { 89 ?? 10 12 00 00 }

	condition:
		uint16be( 0 ) == 0x4d5a and filesize < 11MB and all of them
}

Cadenas (14 patrones)

IdentificadorTipoValorModificadores
$ext_1texto".zip"wide ascii fullword
$ext_2texto".cab"wide ascii fullword
$ext_3texto".rar"wide ascii fullword
$ext_4texto".ini"wide ascii fullword
$ext_5texto".dat"wide ascii fullword
$offset_structure_1hex{ 8d ?? 08 02 00 00 }
$offset_structure_2hex{ 8d ?? 10 04 00 00 }
$offset_structure_3hex{ 8d ?? 18 06 00 00 }
$offset_structure_4hex{ 8d ?? 20 08 00 00 }
$offset_structure_5hex{ 8d ?? 28 0a 00 00 }
$offset_structure_6hex{ 89 ?? f8 11 00 00 }
$offset_structure_7hex{ 8d ?? fc 11 00 00 }
$offset_structure_8hex{ 89 ?? 0c 12 00 00 }
$offset_structure_9hex{ 89 ?? 10 12 00 00 }

Condición

uint16be( 0 ) == 0x4d5a and filesize < 11MB and all of them

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • El archivo debe ocupar menos de 11MB (un límite barato que descarta archivos grandes).
  • Deben coincidir todos los patrones de la regla.

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.

Abrir en el editor

Referencias

Licencia y atribución

Autor: Sekoia.io

Repositorio de origen: SEKOIA.IO Community @ a438a5901a

Licencia: Detection Rule License 1.1 (licencia del repositorio)

Regla original

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

version1.0
classificationTLP:CLEAR

Etiquetas:FILE

Más reglas de Kimsuky