Aller au contenu

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.

Outil offensifMandiant red team tool countermeasuresBSD 2-Clause LicenseCompile avec YARA-X (avertissements)
Auteur
FireEye
Date
2020-12-08
Modifiée
2020-12-10
Score / Qualité
75 / 75

Ce que détecte cette règle

This rule looks for .NET PE files that have the strings of various method names in the SharPivot code.

Cibles : PE Windows.

Elle définit 17 motifs (17 texte, 0 hex, 0 regex).

YARA-X indique : warning[duplicate_pattern_value]: duplicate pattern value

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-sharpivot-3.yarBSD 2-Clause License
rule FIREEYE_RT_Hacktool_MSIL_Sharpivot_3 : FILE
{
	meta:
		description = "This rule looks for .NET PE files that have the strings of various method names in the SharPivot code."
		author = "FireEye"
		id = "616333fc-4075-5f04-823a-1164717a2b87"
		date = "2020-12-08"
		modified = "2020-12-10"
		reference = "https://github.com/mandiant/red_team_tool_countermeasures/"
		source_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/SHARPIVOT/production/yara/HackTool_MSIL_SharPivot_3.yar#L4-L31"
		license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
		hash = "e4efa759d425e2f26fbc29943a30f5bd"
		logic_hash = "ecf13e47e409efd68b508735a84be6a1627f5b0c0cea6b90434fc9ba5b1d8cf5"
		score = 75
		quality = 75
		tags = "FILE"
		rev = 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* )
}

Chaînes (17 motifs)

IdentifiantTypeValeurModificateurs
$msiltexte"_CorExeMain"ascii wide
$str1texte"SharPivot"ascii wide
$str2texte"ParseArgs"ascii wide
$str3texte"GenRandomString"ascii wide
$str4texte"ScheduledTaskExists"ascii wide
$str5texte"ServiceExists"ascii wide
$str6texte"lpPassword"ascii wide
$str7texte"execute"ascii wide
$str8texte"WinRM"ascii wide
$str9texte"SchtaskMod"ascii wide
$str10texte"PoisonHandler"ascii wide
$str11texte"SCShell"ascii wide
$str12texte"SchtaskMod"ascii wide
$str13texte"ServiceHijack"ascii wide
$str14texte"commandArg"ascii wide
$str15texte"payloadPath"ascii wide
$str16texte"Schtask"ascii wide

Condition

( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and $msil and all of ( $str* )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $str* ) doivent être trouvés.
  • Le motif $msil doit être présent.

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).

  • e4efa759d425e2f26fbc29943a30f5bd

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: 616333fc-4075-5f04-823a-1164717a2b87

Métadonnées

rev3

Tags:FILE