YARA · ditekSHen detection
DITEKSHEN_MALWRE_Win_Darkgate
Detects DarkGate infostealer and coinminer
- 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
rule DITEKSHEN_MALWRE_Win_Darkgate : FILE
{
meta:
= "Detects DarkGate infostealer and coinminer"
= "ditekSHen"
= "4488e1e6-daac-5832-8326-3151c834daf1"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10747-L10771"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "805a04bbb3915d539e76927393384a2786c25490e8b9fc151d5b12415247578b"
= 75
= 75
= "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)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $x1 | Text | "SYSTEM Elevation: Completed, new DarkGate connection with SYSTEM privileges" | ascii |
| $x2 | Text | "-u 0xDark" | ascii |
| $x3 | Text | "DarkGate" | ascii |
| $x4 | Text | "/c cmdkey /generic:\"127.0.0.2\" /user:\"SafeMode\" /pass:\"darkgatepassword0\"" | ascii |
| $s1 | Text | "c:\\temp\\crash.txt" | ascii |
| $s2 | Text | "/cookiesfile \"" | ascii |
| $s3 | Text | "/c rmdir /s /q \"" | ascii |
| $s4 | Text | "/c xcopy /E /I /Y \"%s\" \"%s\" && exit" | ascii |
| $s5 | Text | "U_MemScan" | ascii |
| $s6 | Text | "U_Google_AD" | ascii |
| $s7 | Text | "untBotUtils" | ascii |
| $s8 | Text | "____padoru____" | ascii |
| $s9 | Text | "u_SysHook" | ascii |
| $s10 | Text | "zLAxuU0kQKf3sWE7ePRO2imyg9GSpVoYC6rhlX48ZHnvjJDBNFtMd1I5acwbqT+=" | ascii |
| $s11 | Text | "C:\\Windows\\System32\\ntdll.dll" | fullword ascii |
| $s12 | Regex | /(SYSTEM )?Elevation: (Cannot|I already|AT RAW|FAILURE)/ | ascii |
| $s13 | Regex | /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.
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).
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
Verwandte Regeln
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareTrellix Advanced Research Center· Trellix ATR· 2021-07-22
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06