Saltar al contenido

YARA · CAPE Sandbox (CAPEv2)

CAPE_Quasarrat

QuasarRAT payload

GenéricaCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compila con YARA-X
Autor
ditekshen
Fecha
2024-10-09
Modificada
2025-02-03
Puntuación / Calidad
75 / 70

Qué detecta esta regla

QuasarRAT payload

Objetivos: PE de Windows.

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

quasarrat.yarGNU General Public License v3.0
rule CAPE_Quasarrat : FILE
{
	meta:
		description = "QuasarRAT payload"
		author = "ditekshen"
		id = "f256b88f-eee6-5f8c-afd6-32ed10ea908d"
		date = "2024-10-09"
		modified = "2025-02-03"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/AsyncRAT.yar#L245-L266"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		logic_hash = "556b19dc0980761198ea31a285f281adae084463d24bff1eda15326436ad562b"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "QuasarRAT Payload"

	strings:
		$s1 = "GetKeyloggerLogsResponse" fullword ascii
		$s2 = "GetKeyloggerLogs" fullword ascii
		$s3 = "/>Log created on" wide
		$s4 = "User: {0}{3}Pass: {1}{3}Host: {2}" wide
		$s5 = "Domain: {1}{0}Cookie Name: {2}{0}Value: {3}{0}Path: {4}{0}Expired: {5}{0}HttpOnly: {6}{0}Secure: {7}" wide
		$s6 = "grabber_" wide
		$s7 = "<virtualKeyCode>" ascii
		$s8 = "<RunHidden>k__BackingField" fullword ascii
		$s9 = "<keyboardHookStruct>" ascii
		$s10 = "add_OnHotKeysDown" ascii
		$mutex = "QSR_MUTEX_" ascii wide
		$ua1 = "Mozilla/5.0 (Windows NT 6.3; rv:48.0) Gecko/20100101 Firefox/48.0" fullword wide
		$us2 = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( $mutex or ( all of ( $ua* ) and 2 of them ) or 6 of ( $s* ) )
}

Cadenas (13 patrones)

IdentificadorTipoValorModificadores
$s1texto"GetKeyloggerLogsResponse"fullword ascii
$s2texto"GetKeyloggerLogs"fullword ascii
$s3texto"/>Log created on"wide
$s4texto"User: {0}{3}Pass: {1}{3}Host: {2}"wide
$s5texto"Domain: {1}{0}Cookie Name: {2}{0}Value: {3}{0}Path: {4}{0}Expired: {5}{0}HttpOnly: {6}{0}Secure: {7}"wide
$s6texto"grabber_"wide
$s7texto"<virtualKeyCode>"ascii
$s8texto"<RunHidden>k__BackingField"fullword ascii
$s9texto"<keyboardHookStruct>"ascii
$s10texto"add_OnHotKeysDown"ascii
$mutextexto"QSR_MUTEX_"ascii wide
$ua1texto"Mozilla/5.0 (Windows NT 6.3; rv:48.0) Gecko/20100101 Firefox/48.0"fullword wide
$us2texto"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A"fullword wide

Condición

uint16( 0 ) == 0x5a4d and ( $mutex or ( all of ( $ua* ) and 2 of them ) or 6 of ( $s* ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir todos los patrones de ( $ua* ).
  • Deben coincidir al menos 2 patrones de la regla.
  • Deben coincidir al menos 6 patrones de ( $s* ).
  • El patrón $mutex debe estar presente.

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: CAPE Sandbox (CAPEv2) @ 6b15e76f28

Licencia: GNU General Public License v3.0 (licencia del repositorio)

Aviso de copyright: Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.

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: f256b88f-eee6-5f8c-afd6-32ed10ea908d

Metadatos

cape_typeQuasarRAT Payload

Etiquetas:FILE