Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Markirat

Detects MarkiRAT

MalwareMarkiratditekSHen 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 MarkiRAT

Zugehörige Malware-Familie: Markirat.

Ziele: Windows-PE.

Sie definiert 16 Muster (15 Text, 0 Hex, 1 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-markirat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Markirat : FILE
{
	meta:
		description = "Detects MarkiRAT"
		author = "ditekSHen"
		id = "6cfa276c-a64e-532a-a1ae-11a9e00867bd"
		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#L6380-L6403"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "17b8bcfe8d2b4c87ff8e0bddb436e18029a3b28a5ad3994fe9bef359588d9cad"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$pdb = "\\mfcmklg.pdb" ascii
		$s1 = "runinhome Completed" wide
		$s2 = "ERROR find next file<br>" wide
		$s3 = "<br><mark>Hello: %s</mark>" wide
		$s4 = "<br><mark>CLIPBOARD[" wide
		$s5 = "@userhome@" wide
		$s6 = "Global\\{2194ABA1-BFFA-4e6b-8C26-D1BB20190312}" wide
		$s7 = "taskkill /im svehost.exe /t /f" fullword ascii
		$s8 = "taskkill /im keepass.exe /t /f" fullword ascii
		$ba = /bitsadmin \/(addfile|cancel|SetPriority|resume)/ ascii wide
		$c1 = "/ech/client.php?u=" wide
		$c2 = "/up/uploadx.php?u=" wide
		$c3 = "/ech/echo.php?req=rr&u=" wide
		$c4 = "/ech/rite.php" wide
		$c5 = "http://microsoft.com-view.space/i.php?u=" wide
		$c6 = "Content-Disposition: form-data; name=\"uploadedfile\"; filename=\"" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( ( $pdb and any of them ) or ( 5 of ( $s* ) ) or ( 3 of ( $c* ) ) or ( ( #ba > 3 and 4 of them ) ) )
}

Strings (16 Muster)

BezeichnerTypWertModifikatoren
$pdbText"\\mfcmklg.pdb"ascii
$s1Text"runinhome Completed"wide
$s2Text"ERROR find next file<br>"wide
$s3Text"<br><mark>Hello: %s</mark>"wide
$s4Text"<br><mark>CLIPBOARD["wide
$s5Text"@userhome@"wide
$s6Text"Global\\{2194ABA1-BFFA-4e6b-8C26-D1BB20190312}"wide
$s7Text"taskkill /im svehost.exe /t /f"fullword ascii
$s8Text"taskkill /im keepass.exe /t /f"fullword ascii
$baRegex/bitsadmin \/(addfile|cancel|SetPriority|resume)/ascii wide
$c1Text"/ech/client.php?u="wide
$c2Text"/up/uploadx.php?u="wide
$c3Text"/ech/echo.php?req=rr&u="wide
$c4Text"/ech/rite.php"wide
$c5Text"http://microsoft.com-view.space/i.php?u="wide
$c6Text"Content-Disposition: form-data; name=\"uploadedfile\"; filename=\""ascii

Bedingung

uint16( 0 ) == 0x5a4d and ( ( $pdb and any of them ) or ( 5 of ( $s* ) ) or ( 3 of ( $c* ) ) or ( ( #ba > 3 and 4 of them ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens ein Muster aus der Regel muss treffen.
  • Mindestens 5 Muster aus ( $s* ) müssen treffen.
  • Mindestens 3 Muster aus ( $c* ) müssen treffen.
  • Mindestens 4 Muster aus der Regel müssen treffen.
  • Muster $ba muss > 3-mal vorkommen.
  • Muster $pdb 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: 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: 6cfa276c-a64e-532a-a1ae-11a9e00867bd

Tags:FILE