YARA · BlackBerry Research & Intelligence (via Open-Source-YARA-rules)
BLACKBERRY_Mal_Infostealer_Win32_Blackguard
Detects W32 BlackGuard Infostealer
- Autor
- BlackBerry Threat Research team
- Datum
- 2022-04-14
- Geändert
- 2022-07-06
- Score / Qualität
- 75 / 85
Was diese Regel erkennt
Detects W32 BlackGuard Infostealer
Ziele: Windows-PE.
Sie definiert 15 Muster (14 Text, 1 Hex, 0 Regex). Verwendete YARA-Module: pe.
YARA-X meldet: warning[deprecated_field]: field `number_of_sections` is deprecated
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
Enthält die Imports, die zum eigenständigen Kompilieren nötig sind.
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* ) ) ) )
}
Strings (15 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $a1 | Hex | { 06 91 06 61 20 AA 00 00 00 61 D2 9C 06 17 58 0A } | |
| $a2 | Text | "System.Data.SQLite" | |
| $a3 | Text | "FromBase64String" | |
| $a4 | Text | "BlockInput" | |
| $a5 | Text | "UploadFile" | |
| $a6 | Text | "Passwords" | |
| $a7 | Text | "Discord" | |
| $a8 | Text | "GetVolumeInformationA" | |
| $a9 | Text | "NordVPN" | |
| $a10 | Text | "OpenVPN" | |
| $a11 | Text | "ProtonVPN" | |
| $a12 | Text | "OperaCookies" | |
| $a13 | Text | "EdgeCookies" | |
| $a14 | Text | "ChromeCookies" | |
| $b1 | Text | "upche" | wide |
Bedingung
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* ) ) ) )In Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Alle Muster aus ( $a* ) müssen treffen.
- Alle Muster aus ( $b* ) müssen treffen.
- Mindestens 12 Muster aus ( $a* ) müssen treffen.
- Nutzt das Modul pe.
- Prüft den PE-Import-Hash (imphash).
- Prüft PE-Sektionen (Namen, Anzahl oder Eigenschaften).
Diese Regel im Browser testen
Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.
Proben-Hashes
Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).
- 6ab3b21fa7cb638ed68509be1ed6302284e8a9cd1a10f9b6837c057154aa6162
Lizenz & Namensnennung
Autor: BlackBerry Threat Research team
Quell-Repository: BlackBerry Research & Intelligence (via Open-Source-YARA-rules) @ ec0056f767
Lizenz: Apache License 2.0 (in den Metadaten der Regel angegeben)
“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”
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: e079de0f-c607-5089-b385-ba67ed2cb73e
Tags:FILE