YARA · SEKOIA.IO Community
SEKOIA_Loader_Win_Konni_Bat
Detect the BAT files (named trap.bat or yup.bat) used by KONNI
- 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:
= "Detect the BAT files (named trap.bat or yup.bat) used by KONNI"
= "Sekoia.io"
= "e8921336-6c91-4b46-bd3f-3cf4a9b31082"
= "2023-09-26"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_konni_bat.yar#L1-L22"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "3476e41461692c3ccfc0ef47a4d5b8822c4940987755763d2a5913e27d9350d4"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $ | 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 < 3KBEn 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.
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: e8921336-6c91-4b46-bd3f-3cf4a9b31082
Metadatos
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Etiquetas:FILE
Reglas relacionadas
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-09-26
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-09-26
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-09-12
- APT / actorSEKOIA.IO Community· Sekoia.io· 2023-11-27
- APT / actorSEKOIA.IO Community· Sekoia.io· 2023-11-27
- APT / actorSEKOIA.IO Community· Sekoia.io· 2022-09-12
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16