YARA · Mandiant red team tool countermeasures
FIREEYE_RT_APT_Loader_Win_MATRYOSHKA_1
matryoshka_process_hollow.rs
- Autor
- FireEye
- Fecha
- 2020-12-02
- Modificada
- 2020-12-09
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
matryoshka_process_hollow.rs
Objetivos: PE de Windows.
Define 8 patrones (8 de texto, 0 hex, 0 regex).
YARA-X dice: warning[duplicate_pattern_value]: duplicate pattern value
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
rule FIREEYE_RT_APT_Loader_Win_MATRYOSHKA_1 : FILE
{
meta:
= "matryoshka_process_hollow.rs"
= "FireEye"
= "c07fb67e-ded5-593d-b5dc-d0e2c3b5a352"
= "2020-12-02"
= "2020-12-02"
= "2020-12-09"
= "https://github.com/mandiant/red_team_tool_countermeasures/"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/MATRYOSHKA/production/yara/APT_Loader_Win_MATRYOSHKA_1.yar#L4-L24"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
= "44887551a47ae272d7873a354d24042d"
= "8f762684ffd3984630bf41ededa78b8993b53b22591a59912cabfe635775de53"
= 75
= 75
= "FILE"
= 1
strings:
$s1 = "ZwQueryInformationProcess" fullword
$s2 = "WriteProcessMemory" fullword
$s3 = "CreateProcessW" fullword
$s4 = "WriteProcessMemory" fullword
$s5 = "\x00Invalid NT Signature!\x00"
$s6 = "\x00Error while creating and mapping section. NTStatus: "
$s7 = "\x00Error no process information - NTSTATUS:"
$s8 = "\x00Error while erasing pe header. NTStatus: "
condition:
( uint16( 0 ) == 0x5A4D ) and ( uint32( uint32( 0x3C ) ) == 0x00004550 ) and ( uint16( uint32( 0x3C ) + 0x18 ) == 0x020B ) and all of them
}
Cadenas (8 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "ZwQueryInformationProcess" | fullword |
| $s2 | texto | "WriteProcessMemory" | fullword |
| $s3 | texto | "CreateProcessW" | fullword |
| $s4 | texto | "WriteProcessMemory" | fullword |
| $s5 | texto | "\x00Invalid NT Signature!\x00" | |
| $s6 | texto | "\x00Error while creating and mapping section. NTStatus: " | |
| $s7 | texto | "\x00Error no process information - NTSTATUS:" | |
| $s8 | texto | "\x00Error while erasing pe header. NTStatus: " |
Condición
( uint16( 0 ) == 0x5A4D ) and ( uint32( uint32( 0x3C ) ) == 0x00004550 ) and ( uint16( uint32( 0x3C ) + 0x18 ) == 0x020B ) and all of themEn palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- 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).
- 44887551a47ae272d7873a354d24042d
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: c07fb67e-ded5-593d-b5dc-d0e2c3b5a352
Metadatos
| rev | 1 |
|---|
Etiquetas:FILE
Reglas relacionadas
- APT / actorMandiant red team tool countermeasures· FireEye· 2020-12-08
- 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