YARA · BlackBerry Research & Intelligence (via Open-Source-YARA-rules)
BLACKBERRY_Mal_Infostealer_Win32_Blackguard
Detects W32 BlackGuard Infostealer
- Autor
- BlackBerry Threat Research team
- Fecha
- 2022-04-14
- Modificada
- 2022-07-06
- Puntuación / Calidad
- 75 / 85
Qué detecta esta regla
Detects W32 BlackGuard Infostealer
Objetivos: PE de Windows.
Define 15 patrones (14 de texto, 1 hex, 0 regex). Módulos YARA usados: pe.
YARA-X dice: warning[deprecated_field]: field `number_of_sections` is deprecated
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
Incluye los imports necesarios para compilarla por sí sola.
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* ) ) ) )
}
Cadenas (15 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $a1 | hex | { 06 91 06 61 20 AA 00 00 00 61 D2 9C 06 17 58 0A } | |
| $a2 | texto | "System.Data.SQLite" | |
| $a3 | texto | "FromBase64String" | |
| $a4 | texto | "BlockInput" | |
| $a5 | texto | "UploadFile" | |
| $a6 | texto | "Passwords" | |
| $a7 | texto | "Discord" | |
| $a8 | texto | "GetVolumeInformationA" | |
| $a9 | texto | "NordVPN" | |
| $a10 | texto | "OpenVPN" | |
| $a11 | texto | "ProtonVPN" | |
| $a12 | texto | "OperaCookies" | |
| $a13 | texto | "EdgeCookies" | |
| $a14 | texto | "ChromeCookies" | |
| $b1 | texto | "upche" | wide |
Condición
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 palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de ( $a* ).
- Deben coincidir todos los patrones de ( $b* ).
- Deben coincidir al menos 12 patrones de ( $a* ).
- Usa el módulo pe.
- Comprueba el hash de importaciones PE (imphash).
- Comprueba secciones PE (nombres, número o propiedades).
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Hashes de muestras
Hashes de las muestras que el autor lista en los metadatos de la regla (búscalos en tu plataforma de threat intelligence).
- 6ab3b21fa7cb638ed68509be1ed6302284e8a9cd1a10f9b6837c057154aa6162
Licencia y atribución
Autor: BlackBerry Threat Research team
Repositorio de origen: BlackBerry Research & Intelligence (via Open-Source-YARA-rules) @ ec0056f767
Licencia: Apache License 2.0 (indicada en los metadatos de la regla)
“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”
Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.
Id de la regla: e079de0f-c607-5089-b385-ba67ed2cb73e
Etiquetas:FILE