Saltar al contenido

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

BLACKBERRY_Boratratkeylogger

Detects BoratRAT Keylogger

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-13
Modificada
2022-07-07
Puntuación / Calidad
75 / 85

Qué detecta esta regla

Detects BoratRAT Keylogger

Objetivos: PE de Windows.

Define 6 patrones (5 de texto, 1 hex, 0 regex).

YARA-X dice: warning[text_as_hex]: hex pattern could be written as text literal

Resumen generado a partir de los metadatos y la condición de la regla.

Código de la regla

boratratkeylogger.yarApache License 2.0
rule BLACKBERRY_Boratratkeylogger : FILE
{
	meta:
		description = "Detects BoratRAT Keylogger"
		author = "BlackBerry Threat Research Team"
		id = "8bcec652-a76b-5bfc-bf2c-bb8ce6a88ed5"
		date = "2022-04-13"
		modified = "2022-07-07"
		reference = "https://blogs.blackberry.com/en/2022/04/threat-thursday-boratrat"
		source_url = "https://github.com/mikesxrs/Open-Source-YARA-rules/blob/ec0056f767db98bf6d5fd63877ad51fb54d350e9/Blackberry/BoratRATKeylogger.yar#L1-L39"
		license_url = "N/A"
		logic_hash = "ea3f39b675f02274b19b5732d065a0fcb05a4fe150f10a452a844af71b69aed2"
		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:
		$s1 = "Sa8XOfH1BudXLog.txt" wide
		$s2 = "[CAPSLOCK: ON]" wide
		$s3 = "[CAPSLOCK: OFF]" wide
		$s4 = "[SPACE]" wide
		$s5 = "[ENTER]" wide
		$sp = { 43 3A 5C 55 73 65 72 73 5C 41 64 6D 69 6E 69 73 74 72 61 74 6F 72 5C

                    44 6F 77 6E 6C 6F 61 64 73 5C 53 61 6E 74 61 52 61 74 2D 6D 61 69 6E 

                    5C 42 69 6E 61 72 69 65 73 5C 52 65 6C 65 61 73 65 5C 50 6C 75 67 69 

                    6E 73 5C 4B 65 79 6C 6F 67 67 65 72 2E 70 64 62 }

	condition:
		uint16( 0 ) == 0x5a4d and all of them
}

Cadenas (6 patrones)

IdentificadorTipoValorModificadores
$s1texto"Sa8XOfH1BudXLog.txt"wide
$s2texto"[CAPSLOCK: ON]"wide
$s3texto"[CAPSLOCK: OFF]"wide
$s4texto"[SPACE]"wide
$s5texto"[ENTER]"wide
$sphex{ 43 3A 5C 55 73 65 72 73 5C 41 64 6D 69 6E 69 73 74 72 61 74 6F 72 5C 44 6F 77 6E 6C 6F 61 64 73 5C 53 61 6E 74 61 52 61 74 2D 6D 61 69 6E …

Condición

uint16( 0 ) == 0x5a4d and all of them

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir todos los patrones de la regla.

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

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: 8bcec652-a76b-5bfc-bf2c-bb8ce6a88ed5

Etiquetas:FILE