Saltar al contenido

YARA · deadbits yara-rules

DEADBITS_Dacls_Trojan_Windows

No description has been set in the source file - DeadBits

Malwaredeadbits yara-rulesThe UnlicenseCompila con YARA-X
Autor
Adam Swanda
Fecha
2020-01-07
Puntuación / Calidad
75 / 80

Qué detecta esta regla

No description has been set in the source file - DeadBits

Objetivos: PE de Windows.

Define 11 patrones (11 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

dacls-trojan-windows.yarThe Unlicense
rule DEADBITS_Dacls_Trojan_Windows : FILE
{
	meta:
		description = "No description has been set in the source file - DeadBits"
		author = "Adam Swanda"
		id = "424b2c0d-2373-5a72-9a97-52b4bfc5cdcf"
		date = "2020-01-07"
		modified = "2020-01-07"
		reference = "https://github.com/deadbits/yara-rules"
		source_url = "https://github.com/deadbits/yara-rules//blob/d002f7ecee23e09142a3ac3e79c84f71dda3f001/rules/Dacls_Windows.yara#L1-L30"
		license_url = "N/A"
		logic_hash = "b77df7e3be9c264d6a63d40dbf49c41e9dd55b4e570c063b5710b849c36cc166"
		score = 75
		quality = 80
		tags = "FILE"
		Author = "Adam M. Swanda"

	strings:
		$fext00 = ".exe" ascii wide
		$fext01 = ".cmd" ascii wide
		$fext02 = ".bat" ascii wide
		$fext03 = ".com" ascii wide
		$str00 = "Software\\mthjk" ascii wide
		$str01 = "WindowsNT.dll" ascii fullword
		$str02 = "GET %s HTTP/1.1" ascii fullword
		$str03 = "content-length:" ascii fullword
		$str04 = "Connection: keep-alive" ascii fullword
		$cls00 = "c_2910.cls" ascii fullword
		$cls01 = "k_3872.cls" ascii fullword

	condition:
		( uint16( 0 ) == 0x5a4d ) and ( ( all of ( $cls* ) ) or ( all of ( $fext* ) and all of ( $str* ) ) )
}

Cadenas (11 patrones)

IdentificadorTipoValorModificadores
$fext00texto".exe"ascii wide
$fext01texto".cmd"ascii wide
$fext02texto".bat"ascii wide
$fext03texto".com"ascii wide
$str00texto"Software\\mthjk"ascii wide
$str01texto"WindowsNT.dll"ascii fullword
$str02texto"GET %s HTTP/1.1"ascii fullword
$str03texto"content-length:"ascii fullword
$str04texto"Connection: keep-alive"ascii fullword
$cls00texto"c_2910.cls"ascii fullword
$cls01texto"k_3872.cls"ascii fullword

Condición

( uint16( 0 ) == 0x5a4d ) and ( ( all of ( $cls* ) ) or ( all of ( $fext* ) and all of ( $str* ) ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir todos los patrones de ( $cls* ).
  • Deben coincidir todos los patrones de ( $fext* ).
  • Deben coincidir todos los patrones de ( $str* ).

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: Adam Swanda

Repositorio de origen: deadbits yara-rules @ d002f7ecee

Licencia: The Unlicense (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: 424b2c0d-2373-5a72-9a97-52b4bfc5cdcf

Etiquetas:FILE