Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Turian

Hunt for Turian / Qurian

MalwareTurianditekSHen 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

Hunt for Turian / Qurian

Zugehörige Malware-Familie: Turian.

Ziele: Windows-PE.

Sie definiert 18 Muster (18 Text, 0 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-turian.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Turian : FILE
{
	meta:
		description = "Hunt for Turian / Qurian"
		author = "ditekSHen"
		id = "eafa9442-a01b-5044-bc47-634297a3efcc"
		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#L6315-L6343"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		hash = "d1218ab9d608ee0212e880204e4d7d75f29f03b77248bca7648d111d67405759"
		logic_hash = "87f4263381c5e93fcba0873aa3bb9a1db4b21225141cd7f06be30f5777a47806"
		score = 75
		quality = 75
		tags = "FILE"
		cnc_domain = "windowsupdate[.]dyndns[.]info"
		cnc_ip = "58[.]158[.]177[.]102"

	strings:
		$s1 = "%s a -m5 -hp1qaz@WSX3edc -r %s %s\\*.*" ascii wide
		$s2 = "%s a -m5 -hpMyHost-1 -r %s %s\\*.*" ascii wide
		$s3 = "%s a -m5 -hp1qaz@WSX3edc -ta%04d%02d%02d000000 -r %s c:" ascii wide
		$s4 = "%s a -m5 -hpMyHost-1 -ta%04d%02d%02d000000 -r %s c:"
		$s5 = "cmd /c dir /s /O:D %s>>\"%s\"" ascii wide
		$s6 = "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /v %s /t REG_SZ /d \"%s\" /f" fullword ascii
		$s7 = "Not Connect!" fullword ascii
		$p1 = "RECYCLER\\S-1-3-33-854245398-2067806209-0000980848-2003\\" ascii wide
		$p2 = "%sRECYCLER.{S-1-3-33-854245398-2067806209-0000980848-2003}\\" ascii wide
		$p3 = "\\RECYCLER.{S-1-3-33-854245398-2067806209-0000980848-2003}\\" ascii wide
		$p4 = "\\RECYCLER.{645ff040-5081-101b-9f08-00aa002f954e}\\" ascii wide
		$p5 = "%sRECYCLER.{645ff040-5081-101b-9f08-00aa002f954e}\\" ascii wide
		$c1 = "CONNECT %s:%u HTTP/1." ascii wide
		$c2 = "User-Agent: Mozilla/4.0" ascii wide
		$m1 = "winsupdatetw" fullword ascii wide
		$m2 = "clientsix" fullword ascii wide
		$m3 = "updatethres" fullword ascii wide
		$m4 = "uwatchdaemon" fullword ascii wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or ( all of ( $c* ) and ( 2 of ( $s* ) or 1 of ( $m* ) or 1 of ( $p* ) ) ) or ( 1 of ( $m* ) and 1 of ( $s* ) and ( 1 of ( $c* ) or 1 of ( $p* ) ) ) )
}

Strings (18 Muster)

BezeichnerTypWertModifikatoren
$s1Text"%s a -m5 -hp1qaz@WSX3edc -r %s %s\\*.*"ascii wide
$s2Text"%s a -m5 -hpMyHost-1 -r %s %s\\*.*"ascii wide
$s3Text"%s a -m5 -hp1qaz@WSX3edc -ta%04d%02d%02d000000 -r %s c:"ascii wide
$s4Text"%s a -m5 -hpMyHost-1 -ta%04d%02d%02d000000 -r %s c:"
$s5Text"cmd /c dir /s /O:D %s>>\"%s\""ascii wide
$s6Text"\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /v %s /t REG_SZ /d \"%s\" /f"fullword ascii
$s7Text"Not Connect!"fullword ascii
$p1Text"RECYCLER\\S-1-3-33-854245398-2067806209-0000980848-2003\\"ascii wide
$p2Text"%sRECYCLER.{S-1-3-33-854245398-2067806209-0000980848-2003}\\"ascii wide
$p3Text"\\RECYCLER.{S-1-3-33-854245398-2067806209-0000980848-2003}\\"ascii wide
$p4Text"\\RECYCLER.{645ff040-5081-101b-9f08-00aa002f954e}\\"ascii wide
$p5Text"%sRECYCLER.{645ff040-5081-101b-9f08-00aa002f954e}\\"ascii wide
$c1Text"CONNECT %s:%u HTTP/1."ascii wide
$c2Text"User-Agent: Mozilla/4.0"ascii wide
$m1Text"winsupdatetw"fullword ascii wide
$m2Text"clientsix"fullword ascii wide
$m3Text"updatethres"fullword ascii wide
$m4Text"uwatchdaemon"fullword ascii wide

Bedingung

uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or ( all of ( $c* ) and ( 2 of ( $s* ) or 1 of ( $m* ) or 1 of ( $p* ) ) ) or ( 1 of ( $m* ) and 1 of ( $s* ) and ( 1 of ( $c* ) or 1 of ( $p* ) ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $c* ) müssen treffen.
  • Mindestens 3 Muster aus ( $s* ) müssen treffen.
  • Mindestens 2 Muster aus ( $s* ) müssen treffen.
  • Mindestens 1 Muster aus ( $m* ) müssen treffen.
  • Mindestens 1 Muster aus ( $p* ) müssen treffen.
  • Mindestens 1 Muster aus ( $s* ) müssen treffen.
  • Mindestens 1 Muster aus ( $c* ) 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

Proben-Hashes

Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).

  • d1218ab9d608ee0212e880204e4d7d75f29f03b77248bca7648d111d67405759

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: eafa9442-a01b-5044-bc47-634297a3efcc

Metadaten

cnc_domainwindowsupdate[.]dyndns[.]info
cnc_ip58[.]158[.]177[.]102

Tags:FILE