Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Apt_Buhtrap_Maldocx

Detect the malicious DOCX used by Buhtrap

APT / actorBuhtrapSEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X (con avisos)
Autor
Sekoia.io
Fecha
2022-02-25
Modificada
2024-12-19
Puntuación / Calidad
75 / 80

Qué detecta esta regla

Detect the malicious DOCX used by Buhtrap

Familia de malware asociada: Buhtrap.

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

YARA-X dice: warning[duplicate_pattern_value]: duplicate pattern value

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

Código de la regla

apt-buhtrap-maldocx.yarDetection Rule License 1.1
rule SEKOIA_Apt_Buhtrap_Maldocx
{
	meta:
		description = "Detect the malicious DOCX used by Buhtrap"
		author = "Sekoia.io"
		id = "4aaba2f1-fafd-4e3f-8b18-7beda11464d1"
		date = "2022-02-25"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_buhtrap_maldocx.yar#L1-L25"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "69968fa6836a71cd835f40c5168d197d3b5fc13b62791279f48a6bdeb4709bd5"
		score = 75
		quality = 80
		tags = ""
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "<xm:macrosheet xmlns=" ascii fullword
		$ = "CALL(\"kernel32\",\"VirtualFree"
		$ = "CALL(\"kernel32\",\"CreateFileA"
		$ = "CALL(\"kernel32\",\"WriteFile"
		$ = "CALL(\"kernel32\",\"VirtualAlloc"
		$ = "CALL(\"kernel32\",\"WinExec"
		$ = "CALL(\"kernel32\",\"lstrcatA"
		$ = "CALL(\"kernel32\",\"CreateFileA"
		$ = "CALL(\"kernel32\",\"VirtualFree"
		$ = "CALL(\"kernel32\",\"ExpandEnvironmentStringsA"
		$ = "CALL(\"kernel32\",\"CloseHandle"

	condition:
		all of them
}

Cadenas (11 patrones)

IdentificadorTipoValorModificadores
$texto"<xm:macrosheet xmlns="ascii fullword
$texto"CALL(\"kernel32\",\"VirtualFree"
$texto"CALL(\"kernel32\",\"CreateFileA"
$texto"CALL(\"kernel32\",\"WriteFile"
$texto"CALL(\"kernel32\",\"VirtualAlloc"
$texto"CALL(\"kernel32\",\"WinExec"
$texto"CALL(\"kernel32\",\"lstrcatA"
$texto"CALL(\"kernel32\",\"CreateFileA"
$texto"CALL(\"kernel32\",\"VirtualFree"
$texto"CALL(\"kernel32\",\"ExpandEnvironmentStringsA"
$texto"CALL(\"kernel32\",\"CloseHandle"

Condición

all of them

En palabras sencillas (Heurística)

  • 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: 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: 4aaba2f1-fafd-4e3f-8b18-7beda11464d1

Metadatos

version1.0
classificationTLP:CLEAR