Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Karkoff

Detects Karkoff

MalwareKarkoffditekSHen detectionBSD 2-Clause LicenseKompiliert mit YARA-X
Autor
ditekSHen
Datum
2020-11-06
Geändert
2024-11-01
Score / Qualität
75 / 75

Was diese Regel erkennt

Detects Karkoff

Zugehörige Malware-Familie: Karkoff.

Ziele: Windows-PE.

Sie definiert 8 Muster (7 Text, 0 Hex, 1 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-karkoff.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Karkoff : FILE
{
	meta:
		description = "Detects Karkoff"
		author = "ditekSHen"
		id = "7d2fe783-18b3-5d84-a9b5-e8e0b5a0db98"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5298-L5313"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "e9b6ba5be2b3cd0faa898347e57cee5a57b80b19842c3a1ddb42d620307c8b39"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "C:\\Windows\\Temp\\MSEx_log.txt" fullword wide
		$x2 = "CMD.exe" fullword wide
		$x3 = "Karkoff.ProjectInstaller.resources" fullword ascii
		$s1 = /try\shttp(s)?\s(ip|domain)/ fullword wide
		$s2 = "Reg cleaned!" fullword wide nocase
		$s3 = "Content-Disposition: form-data; name=\"{1}\"" fullword wide
		$s4 = "^[A-Fa-f0-9]{8}-([A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}$" fullword wide
		$s5 = "new backdoor" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or 4 of ( $s* ) or ( 2 of ( $x* ) and 2 of ( $s* ) ) )
}

Strings (8 Muster)

BezeichnerTypWertModifikatoren
$x1Text"C:\\Windows\\Temp\\MSEx_log.txt"fullword wide
$x2Text"CMD.exe"fullword wide
$x3Text"Karkoff.ProjectInstaller.resources"fullword ascii
$s1Regex/try\shttp(s)?\s(ip|domain)/fullword wide
$s2Text"Reg cleaned!"fullword wide nocase
$s3Text"Content-Disposition: form-data; name=\"{1}\""fullword wide
$s4Text"^[A-Fa-f0-9]{8}-([A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}$"fullword wide
$s5Text"new backdoor"fullword wide

Bedingung

uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or 4 of ( $s* ) or ( 2 of ( $x* ) and 2 of ( $s* ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $x* ) müssen treffen.
  • Mindestens 4 Muster aus ( $s* ) müssen treffen.
  • Mindestens 2 Muster aus ( $x* ) müssen treffen.
  • Mindestens 2 Muster aus ( $s* ) müssen treffen.

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: ditekSHen

Quell-Repository: ditekSHen detection @ e76c93dcde

Lizenz: BSD 2-Clause License (Repository-Lizenz)

Copyright-Hinweis: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Originalregel

Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.

Regel-ID: 7d2fe783-18b3-5d84-a9b5-e8e0b5a0db98

Tags:FILE