YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Dlagent04
Detects known downloader agent downloading encoded binaries in patches from paste-like websites, most notably hastebin
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 75
Ce que détecte cette règle
Detects known downloader agent downloading encoded binaries in patches from paste-like websites, most notably hastebin
Famille de malware associée : Dlagent04.
Cibles : PE Windows.
Elle définit 8 motifs (8 texte, 0 hex, 0 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_MALWARE_Win_Dlagent04 : FILE
{
meta:
= "Detects known downloader agent downloading encoded binaries in patches from paste-like websites, most notably hastebin"
= "ditekSHen"
= "d591c591-aecc-557e-85b4-1e2589fbfbf9"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L3247-L3263"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "73e6af7c32d38ec5d1d2bc9f2517860367b46779b53e0faff8885b655561ab01"
= 75
= 75
= "FILE"
= "MALWARE.Win.Trojan.DLAgent04"
strings:
$x1 = "@@@http" ascii wide
$s1 = "HttpWebRequest" fullword ascii
$s2 = "GetResponseStream" fullword ascii
$s3 = "set_FileName" fullword ascii
$s4 = "set_UseShellExecute" fullword ascii
$s5 = "WebClient" fullword ascii
$s6 = "set_CreateNoWindow" fullword ascii
$s7 = "DownloadString" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and filesize < 300KB and #x1 > 1 and 4 of ( $s* )
}
Chaînes (8 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $x1 | texte | "@@@http" | ascii wide |
| $s1 | texte | "HttpWebRequest" | fullword ascii |
| $s2 | texte | "GetResponseStream" | fullword ascii |
| $s3 | texte | "set_FileName" | fullword ascii |
| $s4 | texte | "set_UseShellExecute" | fullword ascii |
| $s5 | texte | "WebClient" | fullword ascii |
| $s6 | texte | "set_CreateNoWindow" | fullword ascii |
| $s7 | texte | "DownloadString" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and filesize < 300KB and #x1 > 1 and 4 of ( $s* )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Le fichier doit faire moins de 300KB (garde-fou peu coûteux qui écarte les gros fichiers).
- Au moins 4 motifs de ( $s* ) doivent être trouvés.
- Le motif $x1 doit apparaître > 1 fois.
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: d591c591-aecc-557e-85b4-1e2589fbfbf9
Métadonnées
| clamav_sig | MALWARE.Win.Trojan.DLAgent04 |
|---|
Tags:FILE
Règles liées
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06