Saltar al contenido

YARA · BlackBerry Research & Intelligence (via Open-Source-YARA-rules)

BLACKBERRY_Mal_Infostealer_Win32_Blackguard

Detects W32 BlackGuard Infostealer

MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)Apache License 2.0Compila con YARA-X (con avisos)
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.

mal-infostealer-win32-blackguard.yarApache License 2.0
import "pe"

rule BLACKBERRY_Mal_Infostealer_Win32_Blackguard : FILE
{
	meta:
		description = "Detects W32 BlackGuard Infostealer"
		author = "BlackBerry Threat Research team "
		id = "e079de0f-c607-5089-b385-ba67ed2cb73e"
		date = "2022-04-14"
		modified = "2022-07-06"
		reference = "https://blogs.blackberry.com/en/2022/04/threat-thursday-blackguard-infostealer"
		source_url = "https://github.com/mikesxrs/Open-Source-YARA-rules/blob/ec0056f767db98bf6d5fd63877ad51fb54d350e9/Blackberry/Mal_Infostealer_Win32_BlackGuard.yar#L3-L39"
		license_url = "N/A"
		hash = "6ab3b21fa7cb638ed68509be1ed6302284e8a9cd1a10f9b6837c057154aa6162"
		logic_hash = "6e819ee656b6d696be1e818eeb8a545e7934c1f5a1171a1192422d8c74c0caa2"
		score = 75
		quality = 85
		tags = "FILE"
		license = "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)

IdentificadorTipoValorModificadores
$a1hex{ 06 91 06 61 20 AA 00 00 00 61 D2 9C 06 17 58 0A }
$a2texto"System.Data.SQLite"
$a3texto"FromBase64String"
$a4texto"BlockInput"
$a5texto"UploadFile"
$a6texto"Passwords"
$a7texto"Discord"
$a8texto"GetVolumeInformationA"
$a9texto"NordVPN"
$a10texto"OpenVPN"
$a11texto"ProtonVPN"
$a12texto"OperaCookies"
$a13texto"EdgeCookies"
$a14texto"ChromeCookies"
$b1texto"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.

Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.

Abrir en el editor

Referencias

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”

Regla original

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