Aller au contenu

YARA · Mandiant red team tool countermeasures

FIREEYE_RT_Hacktool_MSIL_Sharpersist_2

No description has been set in the source file - FireEye-RT

Outil offensifMandiant red team tool countermeasuresBSD 2-Clause LicenseCompile avec YARA-X
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

hacktool-msil-sharpersist-2.yarBSD 2-Clause License
rule FIREEYE_RT_Hacktool_MSIL_Sharpersist_2 : FILE
{
	meta:
		description = "No description has been set in the source file - FireEye-RT"
		author = "FireEye"
		id = "49d7891e-b97a-52a8-acfd-bbf986732d6c"
		date = "2020-12-08"
		modified = "2020-12-09"
		reference = "https://github.com/mandiant/red_team_tool_countermeasures/"
		source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/SHARPERSIST/production/yara/HackTool_MSIL_SharPersist_2.yar#L4-L23"
		license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
		hash = "98ecf58d48a3eae43899b45cec0fc6b7"
		logic_hash = "57387352f8fd08e8b859dffc1164d46370f248b337526c265634160010572a00"
		score = 75
		quality = 75
		tags = "FILE"
		rev = 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)

IdentifiantTypeValeurModificateurs
$a1texte"SharPersist.lib"
$a2texte"SharPersist.exe"
$b1texte"ERROR: Invalid hotkey location option given."ascii wide
$b2texte"ERROR: Invalid hotkey given."ascii wide
$b3texte"ERROR: Keepass configuration file not found."ascii wide
$b4texte"ERROR: Keepass configuration file was not found."ascii wide
$b5texte"ERROR: That value already exists in:"ascii wide
$b6texte"ERROR: Failed to delete hidden registry key."ascii wide
$pdb1texte"\\SharPersist\\"
$pdb2texte"\\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é.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

Références

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

Règle d’origine

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

rev1

Tags:FILE