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).
- 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
rule FIREEYE_RT_APT_Backdoor_Win_GORAT_1 : FILE
{
meta:
= "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)."
= "FireEye"
= "5ac84cf1-49fb-533d-b211-b1a92239063b"
= "2020-12-08"
= "2020-12-09"
= "https://github.com/mandiant/red_team_tool_countermeasures/"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/REDFLARE (Gorat)/production/yara/APT_Backdoor_Win_GORAT_1.yar#L4-L23"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
= "66cdaa156e4d372cfa3dea0137850d20"
= "f6a0a923f64375e7ffdc080aec41db19a9e162405f1290ed0bbcce5a342bdadb"
= 75
= 75
= "FILE"
= 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)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "httpComms.dll" | ascii wide |
| $s2 | texto | "Cookie: SID1=%s" | ascii wide |
| $s3 | texto | "Global\\" | ascii wide |
| $s4 | texto | "stage0.dll" | ascii wide |
| $s5 | texto | "runCommand" | ascii wide |
| $s6 | texto | "getData" | ascii wide |
| $s7 | texto | "initialize" | ascii wide |
| $s8 | texto | "Windows NT %d.%d;" | ascii wide |
| $s9 | texto | "!This program cannot be run in DOS mode." | ascii wide |
Condición
filesize < 50KB and all of themEn 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.
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
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
| rev | 4 |
|---|
Etiquetas:FILE
Reglas relacionadas
- APT / actorMandiant red team tool countermeasures· FireEye· 2020-12-08
- APT / actorMandiant red team tool countermeasures· FireEye· 2020-12-02
- APT / actorMandiant red team tool countermeasures· FireEye· 2020-12-02
- APT / actorMandiant red team tool countermeasures· FireEye· 2020-11-27
- APT / actorMandiant red team tool countermeasures· FireEye· 2020-12-02
- APT / actorMandiant red team tool countermeasures· FireEye· 2020-12-02
- APT / actorMandiant red team tool countermeasures· FireEye· 2020-11-27
- APT / actorMandiant red team tool countermeasures· FireEye· 2020-11-27