YARA · Mandiant red team tool countermeasures
FIREEYE_RT_Hacktool_MSIL_Sharpersist_2
No description has been set in the source file - FireEye-RT
- Auteur
- FireEye
- Date
- 2020-12-08
- Modifiée
- 2020-12-09
- Score / Qualité
- 75 / 75
Ce que détecte cette règle
No description has been set in the source file - FireEye-RT
Cibles : PE Windows.
Elle définit 10 motifs (10 texte, 0 hex, 0 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
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* ) ) )
}
Chaînes (10 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $a1 | texte | "SharPersist.lib" | |
| $a2 | texte | "SharPersist.exe" | |
| $b1 | texte | "ERROR: Invalid hotkey location option given." | ascii wide |
| $b2 | texte | "ERROR: Invalid hotkey given." | ascii wide |
| $b3 | texte | "ERROR: Keepass configuration file not found." | ascii wide |
| $b4 | texte | "ERROR: Keepass configuration file was not found." | ascii wide |
| $b5 | texte | "ERROR: That value already exists in:" | ascii wide |
| $b6 | texte | "ERROR: Failed to delete hidden registry key." | ascii wide |
| $pdb1 | texte | "\\SharPersist\\" | |
| $pdb2 | texte | "\\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* ) ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 1 motifs de ( $a* ) doivent être trouvés.
- Au moins 2 motifs de ( $b* ) doivent être trouvés.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Hashes d’échantillons
Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).
- 98ecf58d48a3eae43899b45cec0fc6b7
Licence et attribution
Auteur : FireEye
Dépôt source : Mandiant red team tool countermeasures @ 3561b71724
Licence : BSD 2-Clause License (licence du dépôt)
Mention de copyright : Copyright (c) 2023, MANDIANT
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: 49d7891e-b97a-52a8-acfd-bbf986732d6c
Métadonnées
| rev | 1 |
|---|
Tags:FILE
Règles liées
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-12-08
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-11-25
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-12-08
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-12-01
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-12-01
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-11-25
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-11-25
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-12-08