YARA · SEKOIA.IO Community
SEKOIA_Apt_Konni
Rule based on structure offsets and file extension
- Auteur
- Sekoia.io
- Date
- 2022-09-12
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Rule based on structure offsets and file extension
Famille de malware associée : Konni.
Cibles : PE Windows.
Elle définit 9 motifs (6 texte, 3 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
apt-konni.yarDetection Rule License 1.1
rule SEKOIA_Apt_Konni : FILE
{
meta:
= "Rule based on structure offsets and file extension"
= "Sekoia.io"
= "6a20c492-e932-41bd-ac4a-01d35bfb0c49"
= "2022-09-12"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_konni.yar#L1-L25"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "8f178421fd0968f4ce809054022579c7fc8dede5f6514e89966d13acb83d75d9"
= 75
= 80
= "FILE"
= "1.0"
= "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 }
$url = "%s/dn.php?name=%s&prefix=%s" wide
condition:
uint16be( 0 ) == 0x4d5a and filesize < 3MB and 3 of ( $ext_* ) and all of ( $offset_structure_* ) and $url
}
Chaînes (9 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $ext_1 | texte | ".zip" | wide ascii fullword |
| $ext_2 | texte | ".cab" | wide ascii fullword |
| $ext_3 | texte | ".rar" | wide ascii fullword |
| $ext_4 | texte | ".ini" | wide ascii fullword |
| $ext_5 | texte | ".dat" | wide ascii fullword |
| $offset_structure_1 | hex | { 8d ?? 08 02 00 00 } | |
| $offset_structure_2 | hex | { 8d ?? 10 04 00 00 } | |
| $offset_structure_3 | hex | { 8d ?? 18 06 00 00 } | |
| $url | texte | "%s/dn.php?name=%s&prefix=%s" | wide |
Condition
uint16be( 0 ) == 0x4d5a and filesize < 3MB and 3 of ( $ext_* ) and all of ( $offset_structure_* ) and $urlEn clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Le fichier doit faire moins de 3MB (garde-fou peu coûteux qui écarte les gros fichiers).
- Tous les motifs de ( $offset_structure_* ) doivent être trouvés.
- Au moins 3 motifs de ( $ext_* ) doivent être trouvés.
- Le motif $url doit être présent.
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: 6a20c492-e932-41bd-ac4a-01d35bfb0c49
Métadonnées
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Règles liées
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2023-11-27
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2023-11-27
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-09-26
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-09-26
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-09-26
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-09-12
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-09-10