Zum Inhalt springen

YARA · SEKOIA.IO Community

SEKOIA_Apt_Konni

Rule based on structure offsets and file extension

APT / AkteurKonniSEKOIA.IO CommunityDetection Rule License 1.1Kompiliert mit YARA-X
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:
		description = "Rule based on structure offsets and file extension"
		author = "Sekoia.io"
		id = "6a20c492-e932-41bd-ac4a-01d35bfb0c49"
		date = "2022-09-12"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_konni.yar#L1-L25"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "8f178421fd0968f4ce809054022579c7fc8dede5f6514e89966d13acb83d75d9"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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)

BezeichnerTypWertModifikatoren
$ext_1Text".zip"wide ascii fullword
$ext_2Text".cab"wide ascii fullword
$ext_3Text".rar"wide ascii fullword
$ext_4Text".ini"wide ascii fullword
$ext_5Text".dat"wide ascii fullword
$offset_structure_1Hex{ 8d ?? 08 02 00 00 }
$offset_structure_2Hex{ 8d ?? 10 04 00 00 }
$offset_structure_3Hex{ 8d ?? 18 06 00 00 }
$urlText"%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 $url

In 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.

Im Editor öffnen

Referenzen

Lizenz & Namensnennung

Autor: Sekoia.io

Quell-Repository: SEKOIA.IO Community @ a438a5901a

Lizenz: Detection Rule License 1.1 (Repository-Lizenz)

Originalregel

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

version1.0
classificationTLP:CLEAR

Tags:FILE

Weitere Konni-Regeln