Saltar al contenido

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_MAL_Ransom_Ragnarlocker_July_2020_1

Detects Ragnarlocker by strings (July 2020)

MalwareRagnarlockerSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compila con YARA-X
Autor
Arkbird_SOLG
Fecha
2020-07-30
Modificada
2023-12-05
Puntuación / Calidad
75 / 83

Qué detecta esta regla

Detects Ragnarlocker by strings (July 2020)

Familia de malware asociada: Ragnarlocker.

Objetivos: PE de Windows.

Define 21 patrones (21 de texto, 0 hex, 0 regex). Módulos YARA usados: pe.

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

Código de la regla

Incluye los imports necesarios para compilarla por sí sola.

mal-ransom-ragnarlocker-july-2020-1.yarDetection Rule License 1.1
import "pe"

rule SIGNATURE_BASE_MAL_Ransom_Ragnarlocker_July_2020_1 : FILE
{
	meta:
		description = "Detects Ragnarlocker by strings (July 2020)"
		author = "Arkbird_SOLG"
		id = "60e09057-d9f8-5e89-8f47-c5dda32806c6"
		date = "2020-07-30"
		modified = "2023-12-05"
		reference = "https://twitter.com/JAMESWT_MHT/status/1288797666688851969"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/crime_ransom_ragna_locker.yar#L38-L70"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "04c9cc0d1577d5ee54a4e2d4dd12f17011d13703cdd0e6efd46718d14fd9aa87"
		logic_hash = "dc44da2f9023e0702afa8081e85ba817ebfde15f449261fae9de729d51262b04"
		score = 75
		quality = 83
		tags = "FILE"

	strings:
		$f1 = "bootfont.bin" fullword wide
		$f2 = "bootmgr.efi" fullword wide
		$f3 = "bootsect.bak" fullword wide
		$r1 = "$!.txt" fullword wide
		$r2 = "---BEGIN KEY R_R---" fullword ascii
		$r3 = "!$R4GN4R_" wide
		$r4 = "RAGNRPW" fullword ascii
		$r5 = "---END KEY R_R---" fullword ascii
		$a1 = "+RhRR!-uD8'O&Wjq1_P#Rw<9Oy?n^qSP6N{BngxNK!:TG*}\\|W]o?/]H*8z;26X0" fullword ascii
		$a2 = "\\\\.\\PHYSICALDRIVE%d" fullword wide
		$a3 = "WinSta0\\Default" fullword wide
		$a4 = "%s-%s-%s-%s-%s" fullword wide
		$a5 = "SOFTWARE\\Microsoft\\Cryptography" fullword wide
		$c1 = "-backup" fullword wide
		$c2 = "-force" fullword wide
		$c3 = "-vmback" fullword wide
		$c4 = "-list" fullword wide
		$s1 = ".ragn@r_" wide
		$s2 = "\\notepad.exe" wide
		$s3 = "Opera Software" fullword wide
		$s4 = "Tor browser" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and filesize < 30KB and ( pe.imphash ( ) == "2c2aab89a4cba444cf2729e2ed61ed4f" and ( ( 2 of ( $f* ) ) and ( 3 of ( $r* ) ) and ( 4 of ( $a* ) ) and ( 2 of ( $c* ) ) and ( 2 of ( $s* ) ) ) )
}

Cadenas (21 patrones)

IdentificadorTipoValorModificadores
$f1texto"bootfont.bin"fullword wide
$f2texto"bootmgr.efi"fullword wide
$f3texto"bootsect.bak"fullword wide
$r1texto"$!.txt"fullword wide
$r2texto"---BEGIN KEY R_R---"fullword ascii
$r3texto"!$R4GN4R_"wide
$r4texto"RAGNRPW"fullword ascii
$r5texto"---END KEY R_R---"fullword ascii
$a1texto"+RhRR!-uD8'O&Wjq1_P#Rw<9Oy?n^qSP6N{BngxNK!:TG*}\\|W]o?/]H*8z;26X0"fullword ascii
$a2texto"\\\\.\\PHYSICALDRIVE%d"fullword wide
$a3texto"WinSta0\\Default"fullword wide
$a4texto"%s-%s-%s-%s-%s"fullword wide
$a5texto"SOFTWARE\\Microsoft\\Cryptography"fullword wide
$c1texto"-backup"fullword wide
$c2texto"-force"fullword wide
$c3texto"-vmback"fullword wide
$c4texto"-list"fullword wide
$s1texto".ragn@r_"wide
$s2texto"\\notepad.exe"wide
$s3texto"Opera Software"fullword wide
$s4texto"Tor browser"fullword wide

Condición

uint16( 0 ) == 0x5a4d and filesize < 30KB and ( pe.imphash ( ) == "2c2aab89a4cba444cf2729e2ed61ed4f" and ( ( 2 of ( $f* ) ) and ( 3 of ( $r* ) ) and ( 4 of ( $a* ) ) and ( 2 of ( $c* ) ) and ( 2 of ( $s* ) ) ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • El archivo debe ocupar menos de 30KB (un límite barato que descarta archivos grandes).
  • Deben coincidir al menos 2 patrones de ( $f* ).
  • Deben coincidir al menos 3 patrones de ( $r* ).
  • Deben coincidir al menos 4 patrones de ( $a* ).
  • Deben coincidir al menos 2 patrones de ( $c* ).
  • Deben coincidir al menos 2 patrones de ( $s* ).
  • Usa el módulo pe.
  • Comprueba el hash de importaciones PE (imphash).

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

Hashes de muestras

Hashes de las muestras que el autor lista en los metadatos de la regla (búscalos en tu plataforma de threat intelligence).

  • 04c9cc0d1577d5ee54a4e2d4dd12f17011d13703cdd0e6efd46718d14fd9aa87

Licencia y atribución

Autor: Arkbird_SOLG

Repositorio de origen: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

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: 60e09057-d9f8-5e89-8f47-c5dda32806c6

Etiquetas:FILE

Más reglas de Ragnarlocker