Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWRE_Win_Darkgate

Detects DarkGate infostealer and coinminer

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

Famille de malware associée : Coinminer.

Cibles : PE Windows.

Elle définit 17 motifs (15 texte, 0 hex, 2 regex).

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

Source de la règle

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

Chaînes (17 motifs)

IdentifiantTypeValeurModificateurs
$x1texte"SYSTEM Elevation: Completed, new DarkGate connection with SYSTEM privileges"ascii
$x2texte"-u 0xDark"ascii
$x3texte"DarkGate"ascii
$x4texte"/c cmdkey /generic:\"127.0.0.2\" /user:\"SafeMode\" /pass:\"darkgatepassword0\""ascii
$s1texte"c:\\temp\\crash.txt"ascii
$s2texte"/cookiesfile \""ascii
$s3texte"/c rmdir /s /q \""ascii
$s4texte"/c xcopy /E /I /Y \"%s\" \"%s\" && exit"ascii
$s5texte"U_MemScan"ascii
$s6texte"U_Google_AD"ascii
$s7texte"untBotUtils"ascii
$s8texte"____padoru____"ascii
$s9texte"u_SysHook"ascii
$s10texte"zLAxuU0kQKf3sWE7ePRO2imyg9GSpVoYC6rhlX48ZHnvjJDBNFtMd1I5acwbqT+="ascii
$s11texte"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

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 )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 3 motifs de ( $x* ) doivent être trouvés.
  • Au moins 2 motifs de ( $x* ) doivent être trouvés.
  • Au moins 3 motifs de ( $s* ) doivent être trouvés.
  • Au moins 1 motifs de ( $x* ) doivent être trouvés.
  • Au moins 5 motifs de ( $s* ) doivent être trouvés.
  • Au moins 6 motifs de ( $s* ) doivent être trouvés.
  • Au moins 10 motifs de la règle doivent être trouvés.

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: 4488e1e6-daac-5832-8326-3151c834daf1

Tags:FILE

Plus de règles Coinminer