Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWRE_Win_Darkgate

Detects DarkGate infostealer and coinminer

MalwareCoinminerditekSHen 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 DarkGate infostealer and coinminer

Zugehörige Malware-Familie: Coinminer.

Ziele: Windows-PE.

Sie definiert 17 Muster (15 Text, 0 Hex, 2 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malwre-win-darkgate.yarBSD 2-Clause License
rule DITEKSHEN_MALWRE_Win_Darkgate : FILE
{
	meta:
		description = "Detects DarkGate infostealer and coinminer"
		author = "ditekSHen"
		id = "4488e1e6-daac-5832-8326-3151c834daf1"
		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#L10747-L10771"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "805a04bbb3915d539e76927393384a2786c25490e8b9fc151d5b12415247578b"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "SYSTEM Elevation: Completed, new DarkGate connection with SYSTEM privileges" ascii
		$x2 = "-u 0xDark" ascii
		$x3 = "DarkGate" ascii
		$x4 = "/c cmdkey /generic:\"127.0.0.2\" /user:\"SafeMode\" /pass:\"darkgatepassword0\"" ascii
		$s1 = "c:\\temp\\crash.txt" ascii
		$s2 = "/cookiesfile \"" ascii
		$s3 = "/c rmdir /s /q \"" ascii
		$s4 = "/c xcopy /E /I /Y \"%s\" \"%s\" && exit" ascii
		$s5 = "U_MemScan" ascii
		$s6 = "U_Google_AD" ascii
		$s7 = "untBotUtils" ascii
		$s8 = "____padoru____" ascii
		$s9 = "u_SysHook" ascii
		$s10 = "zLAxuU0kQKf3sWE7ePRO2imyg9GSpVoYC6rhlX48ZHnvjJDBNFtMd1I5acwbqT+=" ascii
		$s11 = "C:\\Windows\\System32\\ntdll.dll" fullword ascii
		$s12 = /(SYSTEM )?Elevation: (Cannot|I already|AT RAW|FAILURE)/ ascii
		$s13 = /Stub: (WARNING:|Configuration updated:|Global Ping Invoked)/ ascii

	condition:
		( uint16( 0 ) == 0x5a4d and ( ( 3 of ( $x* ) ) or ( 2 of ( $x* ) and 3 of ( $s* ) ) or ( 1 of ( $x* ) and 5 of ( $s* ) ) or ( 6 of ( $s* ) ) ) ) or ( 10 of them )
}

Strings (17 Muster)

BezeichnerTypWertModifikatoren
$x1Text"SYSTEM Elevation: Completed, new DarkGate connection with SYSTEM privileges"ascii
$x2Text"-u 0xDark"ascii
$x3Text"DarkGate"ascii
$x4Text"/c cmdkey /generic:\"127.0.0.2\" /user:\"SafeMode\" /pass:\"darkgatepassword0\""ascii
$s1Text"c:\\temp\\crash.txt"ascii
$s2Text"/cookiesfile \""ascii
$s3Text"/c rmdir /s /q \""ascii
$s4Text"/c xcopy /E /I /Y \"%s\" \"%s\" && exit"ascii
$s5Text"U_MemScan"ascii
$s6Text"U_Google_AD"ascii
$s7Text"untBotUtils"ascii
$s8Text"____padoru____"ascii
$s9Text"u_SysHook"ascii
$s10Text"zLAxuU0kQKf3sWE7ePRO2imyg9GSpVoYC6rhlX48ZHnvjJDBNFtMd1I5acwbqT+="ascii
$s11Text"C:\\Windows\\System32\\ntdll.dll"fullword ascii
$s12Regex/(SYSTEM )?Elevation: (Cannot|I already|AT RAW|FAILURE)/ascii
$s13Regex/Stub: (WARNING:|Configuration updated:|Global Ping Invoked)/ascii

Bedingung

( uint16( 0 ) == 0x5a4d and ( ( 3 of ( $x* ) ) or ( 2 of ( $x* ) and 3 of ( $s* ) ) or ( 1 of ( $x* ) and 5 of ( $s* ) ) or ( 6 of ( $s* ) ) ) ) or ( 10 of them )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 3 Muster aus ( $x* ) müssen treffen.
  • Mindestens 2 Muster aus ( $x* ) müssen treffen.
  • Mindestens 3 Muster aus ( $s* ) müssen treffen.
  • Mindestens 1 Muster aus ( $x* ) müssen treffen.
  • Mindestens 5 Muster aus ( $s* ) müssen treffen.
  • Mindestens 6 Muster aus ( $s* ) müssen treffen.
  • Mindestens 10 Muster aus der Regel 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: 4488e1e6-daac-5832-8326-3151c834daf1

Tags:FILE

Weitere Coinminer-Regeln