Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Mercurial

Detects Mercurial infostealer

MalwareMercurialditekSHen 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 Mercurial infostealer

Zugehörige Malware-Familie: Mercurial.

Ziele: Windows-PE.

Sie definiert 13 Muster (12 Text, 0 Hex, 1 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-mercurial.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Mercurial : FILE
{
	meta:
		description = "Detects Mercurial infostealer"
		author = "ditekSHen"
		id = "c262ada2-01ca-5fc1-adef-987908514019"
		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#L6573-L6593"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "400f8f717a4e07bf4de508c02bbcd9e82bf21f3df84c989fc622378f33e192f0"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "mercurial grabber" wide nocase
		$x2 = "\"text\":\"Mercurial Grabber |" wide
		$x3 = "/nightfallgt/mercurial-grabber" wide
		$s1 = "/LimerBoy/Adamantium-Thief/" ascii
		$s2 = "Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0" fullword wide
		$s3 = "StealCookies" fullword ascii
		$s4 = "StealPasswords" fullword ascii
		$s5 = "DetectDebug" fullword ascii
		$s6 = "CaptureScreen" fullword ascii
		$s7 = "WebhookContent" fullword ascii
		$s8 = /Grab(Token|Product|IP|Hardware)/ fullword ascii
		$p1 = "[\\w-]{24}\\.[\\w-]{6}\\.[\\w-]{27}" fullword ascii wide
		$p2 = "mfa\\.[\\w-]{84}" fullword ascii wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 1 of ( $x* ) or 5 of ( $s* ) or ( all of ( $p* ) and 3 of ( $s* ) ) )
}

Strings (13 Muster)

BezeichnerTypWertModifikatoren
$x1Text"mercurial grabber"wide nocase
$x2Text"\"text\":\"Mercurial Grabber |"wide
$x3Text"/nightfallgt/mercurial-grabber"wide
$s1Text"/LimerBoy/Adamantium-Thief/"ascii
$s2Text"Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0"fullword wide
$s3Text"StealCookies"fullword ascii
$s4Text"StealPasswords"fullword ascii
$s5Text"DetectDebug"fullword ascii
$s6Text"CaptureScreen"fullword ascii
$s7Text"WebhookContent"fullword ascii
$s8Regex/Grab(Token|Product|IP|Hardware)/fullword ascii
$p1Text"[\\w-]{24}\\.[\\w-]{6}\\.[\\w-]{27}"fullword ascii wide
$p2Text"mfa\\.[\\w-]{84}"fullword ascii wide

Bedingung

uint16( 0 ) == 0x5a4d and ( 1 of ( $x* ) or 5 of ( $s* ) or ( all of ( $p* ) and 3 of ( $s* ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $p* ) müssen treffen.
  • Mindestens 1 Muster aus ( $x* ) müssen treffen.
  • Mindestens 5 Muster aus ( $s* ) müssen treffen.
  • Mindestens 3 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: c262ada2-01ca-5fc1-adef-987908514019

Tags:FILE