YARA · ditekSHen detection
DITEKSHEN_MALWRE_Win_Darkgate
Detects DarkGate infostealer and coinminer
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects DarkGate infostealer and coinminer
Familia de malware asociada: Coinminer.
Objetivos: PE de Windows.
Define 17 patrones (15 de texto, 0 hex, 2 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
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 )
}
Cadenas (17 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | texto | "SYSTEM Elevation: Completed, new DarkGate connection with SYSTEM privileges" | ascii |
| $x2 | texto | "-u 0xDark" | ascii |
| $x3 | texto | "DarkGate" | ascii |
| $x4 | texto | "/c cmdkey /generic:\"127.0.0.2\" /user:\"SafeMode\" /pass:\"darkgatepassword0\"" | ascii |
| $s1 | texto | "c:\\temp\\crash.txt" | ascii |
| $s2 | texto | "/cookiesfile \"" | ascii |
| $s3 | texto | "/c rmdir /s /q \"" | ascii |
| $s4 | texto | "/c xcopy /E /I /Y \"%s\" \"%s\" && exit" | ascii |
| $s5 | texto | "U_MemScan" | ascii |
| $s6 | texto | "U_Google_AD" | ascii |
| $s7 | texto | "untBotUtils" | ascii |
| $s8 | texto | "____padoru____" | ascii |
| $s9 | texto | "u_SysHook" | ascii |
| $s10 | texto | "zLAxuU0kQKf3sWE7ePRO2imyg9GSpVoYC6rhlX48ZHnvjJDBNFtMd1I5acwbqT+=" | ascii |
| $s11 | texto | "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 |
Condición
( 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 palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 3 patrones de ( $x* ).
- Deben coincidir al menos 2 patrones de ( $x* ).
- Deben coincidir al menos 3 patrones de ( $s* ).
- Deben coincidir al menos 1 patrones de ( $x* ).
- Deben coincidir al menos 5 patrones de ( $s* ).
- Deben coincidir al menos 6 patrones de ( $s* ).
- Deben coincidir al menos 10 patrones de la regla.
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Referencias
Licencia y atribución
Autor: ditekSHen
Repositorio de origen: ditekSHen detection @ e76c93dcde
Licencia: BSD 2-Clause License (licencia del repositorio)
Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.
Id de la regla: 4488e1e6-daac-5832-8326-3151c834daf1
Etiquetas:FILE
Reglas relacionadas
- 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