YARA · ditekSHen detection
DITEKSHEN_MALWRE_Win_Darkgate
Detects DarkGate infostealer and coinminer
- 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
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 )
}
Chaînes (17 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $x1 | texte | "SYSTEM Elevation: Completed, new DarkGate connection with SYSTEM privileges" | ascii |
| $x2 | texte | "-u 0xDark" | ascii |
| $x3 | texte | "DarkGate" | ascii |
| $x4 | texte | "/c cmdkey /generic:\"127.0.0.2\" /user:\"SafeMode\" /pass:\"darkgatepassword0\"" | ascii |
| $s1 | texte | "c:\\temp\\crash.txt" | ascii |
| $s2 | texte | "/cookiesfile \"" | ascii |
| $s3 | texte | "/c rmdir /s /q \"" | ascii |
| $s4 | texte | "/c xcopy /E /I /Y \"%s\" \"%s\" && exit" | ascii |
| $s5 | texte | "U_MemScan" | ascii |
| $s6 | texte | "U_Google_AD" | ascii |
| $s7 | texte | "untBotUtils" | ascii |
| $s8 | texte | "____padoru____" | ascii |
| $s9 | texte | "u_SysHook" | ascii |
| $s10 | texte | "zLAxuU0kQKf3sWE7ePRO2imyg9GSpVoYC6rhlX48ZHnvjJDBNFtMd1I5acwbqT+=" | ascii |
| $s11 | texte | "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 |
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é.
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).
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
Règles liées
- 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