YARA · SEKOIA.IO Community
SEKOIA_Loader_Win_Konni_Bat
Detect the BAT files (named trap.bat or yup.bat) used by KONNI
- 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:
= "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
}
Chaînes (8 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $ | 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 < 3KBEn 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.
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)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Règles liées
- 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 / acteurSEKOIA.IO Community· Sekoia.io· 2023-11-27
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2023-11-27
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2022-09-12
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16