YARA · Mandiant red team tool countermeasures
FIREEYE_RT_Hacktool_MSIL_Sharpivot_3
This rule looks for .NET PE files that have the strings of various method names in the SharPivot code.
- Autor
- FireEye
- Fecha
- 2020-12-08
- Modificada
- 2020-12-10
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
This rule looks for .NET PE files that have the strings of various method names in the SharPivot code.
Objetivos: PE de Windows.
Define 17 patrones (17 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_Hacktool_MSIL_Sharpivot_3 : FILE
{
meta:
= "This rule looks for .NET PE files that have the strings of various method names in the SharPivot code."
= "FireEye"
= "616333fc-4075-5f04-823a-1164717a2b87"
= "2020-12-08"
= "2020-12-10"
= "https://github.com/mandiant/red_team_tool_countermeasures/"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/SHARPIVOT/production/yara/HackTool_MSIL_SharPivot_3.yar#L4-L31"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
= "e4efa759d425e2f26fbc29943a30f5bd"
= "ecf13e47e409efd68b508735a84be6a1627f5b0c0cea6b90434fc9ba5b1d8cf5"
= 75
= 75
= "FILE"
= 3
strings:
$msil = "_CorExeMain" ascii wide
$str1 = "SharPivot" ascii wide
$str2 = "ParseArgs" ascii wide
$str3 = "GenRandomString" ascii wide
$str4 = "ScheduledTaskExists" ascii wide
$str5 = "ServiceExists" ascii wide
$str6 = "lpPassword" ascii wide
$str7 = "execute" ascii wide
$str8 = "WinRM" ascii wide
$str9 = "SchtaskMod" ascii wide
$str10 = "PoisonHandler" ascii wide
$str11 = "SCShell" ascii wide
$str12 = "SchtaskMod" ascii wide
$str13 = "ServiceHijack" ascii wide
$str14 = "commandArg" ascii wide
$str15 = "payloadPath" ascii wide
$str16 = "Schtask" ascii wide
condition:
( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and $msil and all of ( $str* )
}
Cadenas (17 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $msil | texto | "_CorExeMain" | ascii wide |
| $str1 | texto | "SharPivot" | ascii wide |
| $str2 | texto | "ParseArgs" | ascii wide |
| $str3 | texto | "GenRandomString" | ascii wide |
| $str4 | texto | "ScheduledTaskExists" | ascii wide |
| $str5 | texto | "ServiceExists" | ascii wide |
| $str6 | texto | "lpPassword" | ascii wide |
| $str7 | texto | "execute" | ascii wide |
| $str8 | texto | "WinRM" | ascii wide |
| $str9 | texto | "SchtaskMod" | ascii wide |
| $str10 | texto | "PoisonHandler" | ascii wide |
| $str11 | texto | "SCShell" | ascii wide |
| $str12 | texto | "SchtaskMod" | ascii wide |
| $str13 | texto | "ServiceHijack" | ascii wide |
| $str14 | texto | "commandArg" | ascii wide |
| $str15 | texto | "payloadPath" | ascii wide |
| $str16 | texto | "Schtask" | ascii wide |
Condición
( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and $msil and all of ( $str* )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de ( $str* ).
- El patrón $msil 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.
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).
- e4efa759d425e2f26fbc29943a30f5bd
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: 616333fc-4075-5f04-823a-1164717a2b87
Metadatos
| rev | 3 |
|---|
Etiquetas:FILE
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-12-01
- Herramienta ofensivaMandiant red team tool countermeasures· FireEye· 2020-11-25
- Herramienta ofensivaMandiant red team tool countermeasures· FireEye· 2020-11-25