YARA · BlackBerry Research & Intelligence (via Open-Source-YARA-rules)
BLACKBERRY_Mal_Infostealer_Win32_Blackguard
Detects W32 BlackGuard Infostealer
- Auteur
- BlackBerry Threat Research team
- Date
- 2022-04-14
- Modifiée
- 2022-07-06
- Score / Qualité
- 75 / 85
Ce que détecte cette règle
Detects W32 BlackGuard Infostealer
Cibles : PE Windows.
Elle définit 15 motifs (14 texte, 1 hex, 0 regex). Modules YARA utilisés : pe.
YARA-X indique : warning[deprecated_field]: field `number_of_sections` is deprecated
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
Inclut les imports nécessaires pour la compiler seule.
import "pe"
rule BLACKBERRY_Mal_Infostealer_Win32_Blackguard : FILE
{
meta:
= "Detects W32 BlackGuard Infostealer"
= "BlackBerry Threat Research team "
= "e079de0f-c607-5089-b385-ba67ed2cb73e"
= "2022-04-14"
= "2022-07-06"
= "https://blogs.blackberry.com/en/2022/04/threat-thursday-blackguard-infostealer"
= "https://github.com/mikesxrs/Open-Source-YARA-rules/blob/ec0056f767db98bf6d5fd63877ad51fb54d350e9/Blackberry/Mal_Infostealer_Win32_BlackGuard.yar#L3-L39"
= "N/A"
= "6ab3b21fa7cb638ed68509be1ed6302284e8a9cd1a10f9b6837c057154aa6162"
= "6e819ee656b6d696be1e818eeb8a545e7934c1f5a1171a1192422d8c74c0caa2"
= 75
= 85
= "FILE"
= "This Yara rule is provided under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0) and open to any user or organization, as long as you use it under this license and ensure originator credit in any derivative to The BlackBerry Research & Intelligence Team"
strings:
$a1 = { 06 91 06 61 20 AA 00 00 00 61 D2 9C 06 17 58 0A }
$a2 = "System.Data.SQLite"
$a3 = "FromBase64String"
$a4 = "BlockInput"
$a5 = "UploadFile"
$a6 = "Passwords"
$a7 = "Discord"
$a8 = "GetVolumeInformationA"
$a9 = "NordVPN"
$a10 = "OpenVPN"
$a11 = "ProtonVPN"
$a12 = "OperaCookies"
$a13 = "EdgeCookies"
$a14 = "ChromeCookies"
$b1 = "upche" wide
condition:
uint16( 0 ) == 0x5a4d and pe.imphash ( ) == "f34d5f2d4577ed6d9ceec516c1f5a744" and pe.number_of_sections == 3 and pe.section_index ( ".text" ) == 0 and pe.section_index ( ".rsrc" ) == 1 and pe.section_index ( ".reloc" ) == 2 and ( ( all of ( $a* ) ) or ( ( 12 of ( $a* ) and all of ( $b* ) ) ) )
}
Chaînes (15 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $a1 | hex | { 06 91 06 61 20 AA 00 00 00 61 D2 9C 06 17 58 0A } | |
| $a2 | texte | "System.Data.SQLite" | |
| $a3 | texte | "FromBase64String" | |
| $a4 | texte | "BlockInput" | |
| $a5 | texte | "UploadFile" | |
| $a6 | texte | "Passwords" | |
| $a7 | texte | "Discord" | |
| $a8 | texte | "GetVolumeInformationA" | |
| $a9 | texte | "NordVPN" | |
| $a10 | texte | "OpenVPN" | |
| $a11 | texte | "ProtonVPN" | |
| $a12 | texte | "OperaCookies" | |
| $a13 | texte | "EdgeCookies" | |
| $a14 | texte | "ChromeCookies" | |
| $b1 | texte | "upche" | wide |
Condition
uint16( 0 ) == 0x5a4d and pe.imphash ( ) == "f34d5f2d4577ed6d9ceec516c1f5a744" and pe.number_of_sections == 3 and pe.section_index ( ".text" ) == 0 and pe.section_index ( ".rsrc" ) == 1 and pe.section_index ( ".reloc" ) == 2 and ( ( all of ( $a* ) ) or ( ( 12 of ( $a* ) and all of ( $b* ) ) ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Tous les motifs de ( $a* ) doivent être trouvés.
- Tous les motifs de ( $b* ) doivent être trouvés.
- Au moins 12 motifs de ( $a* ) doivent être trouvés.
- Utilise le module pe.
- Vérifie le hash des imports PE (imphash).
- Vérifie les sections PE (noms, nombre ou propriété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é.
Hashes d’échantillons
Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).
- 6ab3b21fa7cb638ed68509be1ed6302284e8a9cd1a10f9b6837c057154aa6162
Licence et attribution
Auteur : BlackBerry Threat Research team
Dépôt source : BlackBerry Research & Intelligence (via Open-Source-YARA-rules) @ ec0056f767
Licence : Apache License 2.0 (indiquée dans les métadonnées de la règle)
“This Yara rule is provided under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0) and open to any user or organization, as long as you use it under this license and ensure originator credit in any derivative to The BlackBerry Research & Intelligence Team”
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: e079de0f-c607-5089-b385-ba67ed2cb73e
Tags:FILE