Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Markirat

Detects MarkiRAT

MalwareMarkiratditekSHen detectionBSD 2-Clause LicenseCompile avec YARA-X
Auteur
ditekSHen
Date
2020-11-06
Modifiée
2024-11-01
Score / Qualité
75 / 75

Ce que détecte cette règle

Detects MarkiRAT

Famille de malware associée : Markirat.

Cibles : PE Windows.

Elle définit 16 motifs (15 texte, 0 hex, 1 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

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 ) ) )
}

Chaînes (16 motifs)

IdentifiantTypeValeurModificateurs
$pdbtexte"\\mfcmklg.pdb"ascii
$s1texte"runinhome Completed"wide
$s2texte"ERROR find next file<br>"wide
$s3texte"<br><mark>Hello: %s</mark>"wide
$s4texte"<br><mark>CLIPBOARD["wide
$s5texte"@userhome@"wide
$s6texte"Global\\{2194ABA1-BFFA-4e6b-8C26-D1BB20190312}"wide
$s7texte"taskkill /im svehost.exe /t /f"fullword ascii
$s8texte"taskkill /im keepass.exe /t /f"fullword ascii
$baregex/bitsadmin \/(addfile|cancel|SetPriority|resume)/ascii wide
$c1texte"/ech/client.php?u="wide
$c2texte"/up/uploadx.php?u="wide
$c3texte"/ech/echo.php?req=rr&u="wide
$c4texte"/ech/rite.php"wide
$c5texte"http://microsoft.com-view.space/i.php?u="wide
$c6texte"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 ) ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins un motif de la règle doit être trouvé.
  • Au moins 5 motifs de ( $s* ) doivent être trouvés.
  • Au moins 3 motifs de ( $c* ) doivent être trouvés.
  • Au moins 4 motifs de la règle doivent être trouvés.
  • Le motif $ba doit apparaître > 3 fois.
  • Le motif $pdb 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.

Ouvrir dans l’éditeur

Références

Licence et attribution

Auteur : ditekSHen

Dépôt source : ditekSHen detection @ e76c93dcde

Licence : BSD 2-Clause License (licence du dépôt)

Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Règle d’origine

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: 6cfa276c-a64e-532a-a1ae-11a9e00867bd

Tags:FILE