YARA · SEKOIA.IO Community
SEKOIA_Apt_Konni
Rule based on structure offsets and file extension
- Autor
- Sekoia.io
- Datum
- 2022-09-12
- Geändert
- 2024-12-19
- Score / Qualität
- 75 / 80
Was diese Regel erkennt
Rule based on structure offsets and file extension
Zugehörige Malware-Familie: Konni.
Ziele: Windows-PE.
Sie definiert 9 Muster (6 Text, 3 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
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
}
Strings (9 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $ext_1 | Text | ".zip" | wide ascii fullword |
| $ext_2 | Text | ".cab" | wide ascii fullword |
| $ext_3 | Text | ".rar" | wide ascii fullword |
| $ext_4 | Text | ".ini" | wide ascii fullword |
| $ext_5 | Text | ".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 | Text | "%s/dn.php?name=%s&prefix=%s" | wide |
Bedingung
uint16be( 0 ) == 0x4d5a and filesize < 3MB and 3 of ( $ext_* ) and all of ( $offset_structure_* ) and $urlIn Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Die Datei muss kleiner als 3MB sein (eine günstige Grenze, die große Dateien ausschließt).
- Alle Muster aus ( $offset_structure_* ) müssen treffen.
- Mindestens 3 Muster aus ( $ext_* ) müssen treffen.
- Muster $url muss vorhanden sein.
Diese Regel im Browser testen
Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.
Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.
Referenzen
Lizenz & Namensnennung
Autor: Sekoia.io
Quell-Repository: SEKOIA.IO Community @ a438a5901a
Lizenz: Detection Rule License 1.1 (Repository-Lizenz)
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: 6a20c492-e932-41bd-ac4a-01d35bfb0c49
Metadaten
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Verwandte Regeln
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2023-11-27
- APT / AkteurSEKOIA.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 / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-10