Saltar al contenido

YARA · Mandiant red team tool countermeasures

FIREEYE_RT_APT_Backdoor_Win_GORAT_1

This detects if a sample is less than 50KB and has a number of strings found in the Gorat shellcode (stage0 loader). The loader contains an embedded DLL (stage0.dll) that contains a number of unique strings. The 'Cookie' string found in this loader is important as this cookie is needed by the C2 server to download the Gorat implant (stage1 payload).

APT / actorMandiant red team tool countermeasuresBSD 2-Clause LicenseCompila con YARA-X
Autor
FireEye
Fecha
2020-12-08
Modificada
2020-12-09
Puntuación / Calidad
75 / 75

Qué detecta esta regla

This detects if a sample is less than 50KB and has a number of strings found in the Gorat shellcode (stage0 loader). The loader contains an embedded DLL (stage0.dll) that contains a number of unique strings. The 'Cookie' string found in this loader is important as this cookie is needed by the C2 server to download the Gorat implant (stage1 payload).

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

apt-backdoor-win-gorat-1.yarBSD 2-Clause License
rule FIREEYE_RT_APT_Backdoor_Win_GORAT_1 : FILE
{
	meta:
		description = "This detects if a sample is less than 50KB and has a number of strings found in the Gorat shellcode (stage0 loader). The loader contains an embedded DLL (stage0.dll) that contains a number of unique strings. The 'Cookie' string found in this loader is important as this cookie is needed by the C2 server to download the Gorat implant (stage1 payload)."
		author = "FireEye"
		id = "5ac84cf1-49fb-533d-b211-b1a92239063b"
		date = "2020-12-08"
		modified = "2020-12-09"
		reference = "https://github.com/mandiant/red_team_tool_countermeasures/"
		source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/REDFLARE (Gorat)/production/yara/APT_Backdoor_Win_GORAT_1.yar#L4-L23"
		license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
		hash = "66cdaa156e4d372cfa3dea0137850d20"
		logic_hash = "f6a0a923f64375e7ffdc080aec41db19a9e162405f1290ed0bbcce5a342bdadb"
		score = 75
		quality = 75
		tags = "FILE"
		rev = 4

	strings:
		$s1 = "httpComms.dll" ascii wide
		$s2 = "Cookie: SID1=%s" ascii wide
		$s3 = "Global\\" ascii wide
		$s4 = "stage0.dll" ascii wide
		$s5 = "runCommand" ascii wide
		$s6 = "getData" ascii wide
		$s7 = "initialize" ascii wide
		$s8 = "Windows NT %d.%d;" ascii wide
		$s9 = "!This program cannot be run in DOS mode." ascii wide

	condition:
		filesize < 50KB and all of them
}

Cadenas (9 patrones)

IdentificadorTipoValorModificadores
$s1texto"httpComms.dll"ascii wide
$s2texto"Cookie: SID1=%s"ascii wide
$s3texto"Global\\"ascii wide
$s4texto"stage0.dll"ascii wide
$s5texto"runCommand"ascii wide
$s6texto"getData"ascii wide
$s7texto"initialize"ascii wide
$s8texto"Windows NT %d.%d;"ascii wide
$s9texto"!This program cannot be run in DOS mode."ascii wide

Condición

filesize < 50KB and all of them

En palabras sencillas (Heurística)

  • El archivo debe ocupar menos de 50KB (un límite barato que descarta archivos grandes).
  • 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

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).

  • 66cdaa156e4d372cfa3dea0137850d20

Licencia y atribución

Autor: FireEye

Repositorio de origen: Mandiant red team tool countermeasures @ 3561b71724

Licencia: BSD 2-Clause License (licencia del repositorio)

Aviso de copyright: Copyright (c) 2023, MANDIANT

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: 5ac84cf1-49fb-533d-b211-b1a92239063b

Metadatos

rev4

Etiquetas:FILE