YARA · Mandiant red team tool countermeasures
FIREEYE_RT_Hacktool_MSIL_Sharpersist_2
No description has been set in the source file - FireEye-RT
- Autor
- FireEye
- Fecha
- 2020-12-08
- Modificada
- 2020-12-09
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
No description has been set in the source file - FireEye-RT
Objetivos: PE de Windows.
Define 10 patrones (10 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_Hacktool_MSIL_Sharpersist_2 : FILE
{
meta:
= "No description has been set in the source file - FireEye-RT"
= "FireEye"
= "49d7891e-b97a-52a8-acfd-bbf986732d6c"
= "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/SHARPERSIST/production/yara/HackTool_MSIL_SharPersist_2.yar#L4-L23"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
= "98ecf58d48a3eae43899b45cec0fc6b7"
= "57387352f8fd08e8b859dffc1164d46370f248b337526c265634160010572a00"
= 75
= 75
= "FILE"
= 1
strings:
$a1 = "SharPersist.lib"
$a2 = "SharPersist.exe"
$b1 = "ERROR: Invalid hotkey location option given." ascii wide
$b2 = "ERROR: Invalid hotkey given." ascii wide
$b3 = "ERROR: Keepass configuration file not found." ascii wide
$b4 = "ERROR: Keepass configuration file was not found." ascii wide
$b5 = "ERROR: That value already exists in:" ascii wide
$b6 = "ERROR: Failed to delete hidden registry key." ascii wide
$pdb1 = "\\SharPersist\\"
$pdb2 = "\\SharPersist.pdb"
condition:
( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and ( ( @pdb2 [ 1 ] < @pdb1 [ 1 ] + 50 ) or ( 1 of ( $a* ) and 2 of ( $b* ) ) )
}
Cadenas (10 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $a1 | texto | "SharPersist.lib" | |
| $a2 | texto | "SharPersist.exe" | |
| $b1 | texto | "ERROR: Invalid hotkey location option given." | ascii wide |
| $b2 | texto | "ERROR: Invalid hotkey given." | ascii wide |
| $b3 | texto | "ERROR: Keepass configuration file not found." | ascii wide |
| $b4 | texto | "ERROR: Keepass configuration file was not found." | ascii wide |
| $b5 | texto | "ERROR: That value already exists in:" | ascii wide |
| $b6 | texto | "ERROR: Failed to delete hidden registry key." | ascii wide |
| $pdb1 | texto | "\\SharPersist\\" | |
| $pdb2 | texto | "\\SharPersist.pdb" |
Condición
( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and ( ( @pdb2 [ 1 ] < @pdb1 [ 1 ] + 50 ) or ( 1 of ( $a* ) and 2 of ( $b* ) ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 1 patrones de ( $a* ).
- Deben coincidir al menos 2 patrones de ( $b* ).
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).
- 98ecf58d48a3eae43899b45cec0fc6b7
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: 49d7891e-b97a-52a8-acfd-bbf986732d6c
Metadatos
| rev | 1 |
|---|
Etiquetas:FILE
Reglas relacionadas
- 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
- Herramienta ofensivaMandiant red team tool countermeasures· FireEye· 2020-12-08