Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Brbbot

Detects BrbBot

MalwareBrbbotditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
Autor
ditekSHen
Fecha
2020-11-06
Modificada
2024-11-01
Puntuación / Calidad
75 / 75

Qué detecta esta regla

Detects BrbBot

Familia de malware asociada: Brbbot.

Objetivos: PE de Windows.

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

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

Código de la regla

malware-win-brbbot.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Brbbot : FILE
{
	meta:
		description = "Detects BrbBot"
		author = "ditekSHen"
		id = "d77dfdcf-4cd5-578e-99eb-c987e7b5b706"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L8327-L8345"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "64df5bba698fbba1baf27eedb9a2eb46c5e0752996ea91900f8377200d54eeeb"
		score = 75
		quality = 75
		tags = "FILE"
		snort_sid = "920265"

	strings:
		$x1 = "brbconfig.tmp" fullword ascii
		$x2 = "brbbot" fullword ascii
		$s1 = "%s?i=%s&c=%s&p=%s" fullword ascii
		$s2 = "exec" fullword ascii
		$s3 = "CONFIG" fullword ascii wide
		$s4 = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)" fullword ascii
		$s5 = { 43 4f 4e 46 49 47 00 00 65 6e 63 6f 64 65 00 00
                73 6c 65 65 70 00 00 00 65 78 69 74 00 00 00 00
                63 6f 6e 66 00 00 00 00 66 69 6c 65 00 00 00 00
                65 78 65 63 }

	condition:
		uint16( 0 ) == 0x5a4d and ( ( all of ( $x* ) and 1 of ( $s* ) ) or ( 1 of ( $x* ) and 4 of ( $s* ) ) or all of ( $s* ) )
}

Cadenas (7 patrones)

IdentificadorTipoValorModificadores
$x1texto"brbconfig.tmp"fullword ascii
$x2texto"brbbot"fullword ascii
$s1texto"%s?i=%s&c=%s&p=%s"fullword ascii
$s2texto"exec"fullword ascii
$s3texto"CONFIG"fullword ascii wide
$s4texto"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)"fullword ascii
$s5hex{ 43 4f 4e 46 49 47 00 00 65 6e 63 6f 64 65 00 00 73 6c 65 65 70 00 00 00 65 78 69 74 00 00 00 00 63 6f 6e 66 00 00 00 00 66 69 …

Condición

uint16( 0 ) == 0x5a4d and ( ( all of ( $x* ) and 1 of ( $s* ) ) or ( 1 of ( $x* ) and 4 of ( $s* ) ) or all of ( $s* ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir todos los patrones de ( $x* ).
  • Deben coincidir todos los patrones de ( $s* ).
  • Deben coincidir al menos 1 patrones de ( $s* ).
  • Deben coincidir al menos 1 patrones de ( $x* ).
  • Deben coincidir al menos 4 patrones de ( $s* ).

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: ditekSHen

Repositorio de origen: ditekSHen detection @ e76c93dcde

Licencia: BSD 2-Clause License (licencia del repositorio)

Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

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: d77dfdcf-4cd5-578e-99eb-c987e7b5b706

Metadatos

snort_sid920265

Etiquetas:FILE