Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Tool_Rubeus_Strings

Detects Rubeus

Herramienta ofensivaSEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X
Autor
Sekoia.io
Fecha
2024-03-22
Modificada
2024-12-19
Puntuación / Calidad
75 / 80

Qué detecta esta regla

Detects Rubeus

Objetivos: PE de Windows.

Define 8 patrones (8 de texto, 0 hex, 0 regex).

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

Código de la regla

tool-rubeus-strings.yarDetection Rule License 1.1
rule SEKOIA_Tool_Rubeus_Strings : FILE
{
	meta:
		description = "Detects Rubeus"
		author = "Sekoia.io"
		id = "df1860d0-ec34-4c2d-bd83-5f16b26d075c"
		date = "2024-03-22"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/tool_rubeus_strings.yar#L1-L24"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "adc6a5207bb15c8020ca170564ea9066b2c0b0e09839d6838744c623f59153cf"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = ".Ndr.RPC_DISPATCH_TABLE32"
		$ = ".Ndr.RPC_PROTSEQ_ENDPOINT32"
		$ = ".Ndr.RPC_SERVER_INTERFACE32"
		$ = ".Ndr.NDR_EXPR_DESC32"
		$ = "$krb5tgs${0}$*{1}${2}${3}*${4}${5}" wide
		$ = "$krb5asrep$23${0}@{1}:{2}" wide
		$ = "Unable to decrypt the EncTicketPart using key:" wide
		$ = "[*] Target service  : {0:x}" wide

	condition:
		uint16be( 0 ) == 0x4d5a and filesize < 1MB and 5 of them
}

Cadenas (8 patrones)

IdentificadorTipoValorModificadores
$texto".Ndr.RPC_DISPATCH_TABLE32"
$texto".Ndr.RPC_PROTSEQ_ENDPOINT32"
$texto".Ndr.RPC_SERVER_INTERFACE32"
$texto".Ndr.NDR_EXPR_DESC32"
$texto"$krb5tgs${0}$*{1}${2}${3}*${4}${5}"wide
$texto"$krb5asrep$23${0}@{1}:{2}"wide
$texto"Unable to decrypt the EncTicketPart using key:"wide
$texto"[*] Target service : {0:x}"wide

Condición

uint16be( 0 ) == 0x4d5a and filesize < 1MB and 5 of them

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • El archivo debe ocupar menos de 1MB (un límite barato que descarta archivos grandes).
  • Deben coincidir al menos 5 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: Sekoia.io

Repositorio de origen: SEKOIA.IO Community @ a438a5901a

Licencia: Detection Rule License 1.1 (licencia del repositorio)

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: df1860d0-ec34-4c2d-bd83-5f16b26d075c

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE