Aller au contenu

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.1Compile avec YARA-X
Auteur
Sekoia.io
Date
2023-09-26
Modifiée
2024-12-19
Score / Qualité
75 / 80

Ce que détecte cette règle

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

Famille de malware associée : Konni.

Elle définit 8 motifs (8 texte, 0 hex, 0 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

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
}

Chaînes (8 motifs)

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

Condition

3 of them and filesize < 3KB

En clair (Heuristique)

  • Le fichier doit faire moins de 3KB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Au moins 3 motifs de la règle doivent être trouvés.

Tester cette règle dans votre navigateur

Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

Références

Licence et attribution

Auteur : Sekoia.io

Dépôt source : SEKOIA.IO Community @ a438a5901a

Licence : Detection Rule License 1.1 (licence du dépôt)

Règle d’origine

Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.

Identifiant de règle: e8921336-6c91-4b46-bd3f-3cf4a9b31082

Métadonnées

version1.0
classificationTLP:CLEAR

Tags:FILE

Plus de règles Konni