Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Loader_Win_Konni_Bat

Detect the BAT files (named trap.bat or yup.bat) used by KONNI

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

Qué detecta esta regla

Detect the BAT files (named trap.bat or yup.bat) used by KONNI

Familia de malware asociada: Konni.

Define 8 patrones (8 de texto, 0 hex, 0 regex).

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

Código de la regla

loader-win-konni-bat.yarDetection Rule License 1.1
rule SEKOIA_Loader_Win_Konni_Bat : FILE
{
	meta:
		description = "Detect the BAT files (named trap.bat or yup.bat) used by KONNI"
		author = "Sekoia.io"
		id = "e8921336-6c91-4b46-bd3f-3cf4a9b31082"
		date = "2023-09-26"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_konni_bat.yar#L1-L22"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "3476e41461692c3ccfc0ef47a4d5b8822c4940987755763d2a5913e27d9350d4"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "del /f /q \"%~dp0\\*.zip\" > nul"
		$ = "del /f /q \"%~dp0\\*.xml\" > nul"
		$ = "del /f /q \"%~dp0\\wpnprv*.dll\" > nul"
		$ = "del /f /q \"%~dp0\\*.bat\" > nul"
		$ = "del /f /q \"%~dpnx0\" > nul"
		$ = "echo %~dp0 | findstr /i \"system32\" > nul"
		$ = "if %ERRORLEVEL% equ 0 (goto INSTALL) else (goto COPYFILE)"
		$ = "if exist \"%ProgramFiles(x86)%\" ("

	condition:
		3 of them and filesize < 3KB
}

Cadenas (8 patrones)

IdentificadorTipoValorModificadores
$texto"del /f /q \"%~dp0\\*.zip\" > nul"
$texto"del /f /q \"%~dp0\\*.xml\" > nul"
$texto"del /f /q \"%~dp0\\wpnprv*.dll\" > nul"
$texto"del /f /q \"%~dp0\\*.bat\" > nul"
$texto"del /f /q \"%~dpnx0\" > nul"
$texto"echo %~dp0 | findstr /i \"system32\" > nul"
$texto"if %ERRORLEVEL% equ 0 (goto INSTALL) else (goto COPYFILE)"
$texto"if exist \"%ProgramFiles(x86)%\" ("

Condición

3 of them and filesize < 3KB

En palabras sencillas (Heurística)

  • El archivo debe ocupar menos de 3KB (un límite barato que descarta archivos grandes).
  • Deben coincidir al menos 3 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: e8921336-6c91-4b46-bd3f-3cf4a9b31082

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE

Más reglas de Konni