YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Xfiles
Detects X-Files infostealer (formerly BotSh1zoid)
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 73
Ce que détecte cette règle
Detects X-Files infostealer (formerly BotSh1zoid)
Famille de malware associée : Xfiles.
Cibles : PE Windows.
Elle définit 24 motifs (22 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_MALWARE_Win_Xfiles : FILE
{
meta:
= "Detects X-Files infostealer (formerly BotSh1zoid)"
= "ditekSHen"
= "3f8b2f9b-aa6a-5ffc-95b8-5e44de0d1a49"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6429-L6460"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "0c04a8f019aea36f4bba3ce8289c2d608c69d76bbf321052560b4ca2214be057"
= 75
= 73
= "FILE"
strings:
$x1 = "\\BotSh1zoid\\" ascii
$x2 = "\\BuildPacker.pdb" ascii
$x3 = "\\Svc_host.pdb" ascii nocase
$s1 = "WDefender" fullword ascii
$s2 = "CheckDefender" fullword ascii
$s3 = "RunPS" fullword ascii
$s4 = "DownloadFile" fullword ascii
$v1_1 = "<Pass encoding=\"base64\">(.*)</Pass>" wide
$v1_2 = "Grabber\\" wide
$v1_3 = "/log.php" wide
$v1_4 = /Browsers\\(Logins|Cards|Cookies)/ wide
$v1_5 = "<StealSteam>b__" ascii
$v1_6 = "record_header_field" fullword ascii
$v1_7 = "JavaScreenshotiptReader" fullword ascii
$v1_8 = "HTTPDebuggerPro" wide
$v1_9 = "IEInspector" wide
$v1_10 = "Fiddler" wide
$v2_1 = /get_(Cookie|Logins|Cards)Path/ fullword ascii
$v2_2 = "get_AllScreens" fullword ascii
$v2_3 = "{0}_{1}_{2}.zip" fullword wide
$v2_4 = "\\Stealer" fullword wide
$g1 = "$983a3552-4ec3-4936-bd4a-8e6fd67b4c67" fullword ascii
$g2 = "$a5d9ca4d-400f-4e07-8c09-a916b548f2e3" fullword ascii
$g3 = "$ebc25cf6-9120-4283-b972-0e5520d0000C" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and ( 3 of ( $s* ) or 3 of ( $v1* ) or 3 of ( $v2* ) ) ) or 7 of ( $v1* ) or 3 of ( $v2* ) or ( 2 of ( $g* ) and 3 of them ) )
}
Chaînes (24 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $x1 | texte | "\\BotSh1zoid\\" | ascii |
| $x2 | texte | "\\BuildPacker.pdb" | ascii |
| $x3 | texte | "\\Svc_host.pdb" | ascii nocase |
| $s1 | texte | "WDefender" | fullword ascii |
| $s2 | texte | "CheckDefender" | fullword ascii |
| $s3 | texte | "RunPS" | fullword ascii |
| $s4 | texte | "DownloadFile" | fullword ascii |
| $v1_1 | texte | "<Pass encoding=\"base64\">(.*)</Pass>" | wide |
| $v1_2 | texte | "Grabber\\" | wide |
| $v1_3 | texte | "/log.php" | wide |
| $v1_4 | regex | /Browsers\\(Logins|Cards|Cookies)/ | wide |
| $v1_5 | texte | "<StealSteam>b__" | ascii |
| $v1_6 | texte | "record_header_field" | fullword ascii |
| $v1_7 | texte | "JavaScreenshotiptReader" | fullword ascii |
| $v1_8 | texte | "HTTPDebuggerPro" | wide |
| $v1_9 | texte | "IEInspector" | wide |
| $v1_10 | texte | "Fiddler" | wide |
| $v2_1 | regex | /get_(Cookie|Logins|Cards)Path/ | fullword ascii |
| $v2_2 | texte | "get_AllScreens" | fullword ascii |
| $v2_3 | texte | "{0}_{1}_{2}.zip" | fullword wide |
| $v2_4 | texte | "\\Stealer" | fullword wide |
| $g1 | texte | "$983a3552-4ec3-4936-bd4a-8e6fd67b4c67" | fullword ascii |
| $g2 | texte | "$a5d9ca4d-400f-4e07-8c09-a916b548f2e3" | fullword ascii |
| $g3 | texte | "$ebc25cf6-9120-4283-b972-0e5520d0000C" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and ( 3 of ( $s* ) or 3 of ( $v1* ) or 3 of ( $v2* ) ) ) or 7 of ( $v1* ) or 3 of ( $v2* ) or ( 2 of ( $g* ) and 3 of them ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 1 motifs de ( $x* ) doivent être trouvés.
- Au moins 3 motifs de ( $s* ) doivent être trouvés.
- Au moins 3 motifs de ( $v1* ) doivent être trouvés.
- Au moins 3 motifs de ( $v2* ) doivent être trouvés.
- Au moins 7 motifs de ( $v1* ) doivent être trouvés.
- Au moins 2 motifs de ( $g* ) doivent être trouvés.
- Au moins 3 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: 3f8b2f9b-aa6a-5ffc-95b8-5e44de0d1a49
Tags:FILE
Règles liées
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-02-03
- 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