YARA · Mandiant red team tool countermeasures
FIREEYE_RT_Hacktool_PY_Impacketobfuscation_2
wmiexec
- Autor
- FireEye
- Fecha
- 2020-12-01
- Modificada
- 2020-12-09
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
wmiexec
Define 5 patrones (3 de texto, 0 hex, 2 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
rule FIREEYE_RT_Hacktool_PY_Impacketobfuscation_2
{
meta:
= "wmiexec"
= "FireEye"
= "f1059f66-eaff-5866-bafb-c94236cf96a0"
= "2020-12-01"
= "2020-12-01"
= "2020-12-09"
= "https://github.com/mandiant/red_team_tool_countermeasures/"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/IMPACKETOBF (Wmiexec)/production/yara/HackTool_PY_ImpacketObfuscation_2.yar#L4-L21"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
= "f3dd8aa567a01098a8a610529d892485"
= "ccbbe507798f16c7acf0780770fdb81b2e7dc333ab8bc51e6216816276c3f14b"
= 75
= 75
= ""
= 2
strings:
$s1 = "import random"
$s2 = "class WMIEXEC" nocase
$s3 = "class RemoteShell" nocase
$s4 = /=[\x09\x20]{0,32}str\(int\(time\.time\(\)\)[\x09\x20]{0,32}-[\x09\x20]{0,32}random\.randint\(\d{1,10}[\x09\x20]{0,32},[\x09\x20]{0,32}\d{1,10}\)\)[\x09\x20]{0,32}\+[\x09\x20]{0,32}str\(uuid\.uuid4\(\)\)\.split\([\x22\x27]\-[\x22\x27]\)\[0\]/
$s5 = /self\.__shell[\x09\x20]{0,32}=[\x09\x20]{0,32}[\x22\x27]cmd.exe[\x09\x20]{1,32}\/q[\x09\x20]{1,32}\/K [\x22\x27]/ nocase
condition:
all of them
}
Cadenas (5 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "import random" | |
| $s2 | texto | "class WMIEXEC" | nocase |
| $s3 | texto | "class RemoteShell" | nocase |
| $s4 | regex | /=[\x09\x20]{0,32}str\(int\(time\.time\(\)\)[\x09\x20]{0,32}-[\x09\x20]{0,32}random\.randint\(\d{1,10}[\x09\x20]{0,32},[\x09\x20]{0,32}\d{1,10}\)\)[\x09\x20]{0, … | |
| $s5 | regex | /self\.__shell[\x09\x20]{0,32}=[\x09\x20]{0,32}[\x22\x27]cmd.exe[\x09\x20]{1,32}\/q[\x09\x20]{1,32}\/K [\x22\x27]/ | nocase |
Condición
all of themEn palabras sencillas (Heurística)
- 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).
- f3dd8aa567a01098a8a610529d892485
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: f1059f66-eaff-5866-bafb-c94236cf96a0
Metadatos
| rev | 2 |
|---|
Reglas relacionadas
- Herramienta ofensivaMandiant red team tool countermeasures· FireEye· 2020-12-08
- Herramienta ofensivaMandiant red team tool countermeasures· FireEye· 2020-12-08
- Herramienta ofensivaMandiant red team tool countermeasures· FireEye· 2020-11-25
- Herramienta ofensivaMandiant red team tool countermeasures· FireEye· 2020-12-08
- Herramienta ofensivaMandiant red team tool countermeasures· FireEye· 2020-12-01
- Herramienta ofensivaMandiant red team tool countermeasures· FireEye· 2020-11-25
- Herramienta ofensivaMandiant red team tool countermeasures· FireEye· 2020-11-25
- Herramienta ofensivaMandiant red team tool countermeasures· FireEye· 2020-12-08