Zum Inhalt springen

YARA · Mandiant red team tool countermeasures

FIREEYE_RT_Hacktool_MSIL_Sharpersist_2

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

HacktoolMandiant red team tool countermeasuresBSD 2-Clause LicenseKompiliert mit YARA-X
Autor
FireEye
Datum
2020-12-08
Geändert
2020-12-09
Score / Qualität
75 / 75

Was diese Regel erkennt

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

Ziele: Windows-PE.

Sie definiert 10 Muster (10 Text, 0 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

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* ) ) )
}

Strings (10 Muster)

BezeichnerTypWertModifikatoren
$a1Text"SharPersist.lib"
$a2Text"SharPersist.exe"
$b1Text"ERROR: Invalid hotkey location option given."ascii wide
$b2Text"ERROR: Invalid hotkey given."ascii wide
$b3Text"ERROR: Keepass configuration file not found."ascii wide
$b4Text"ERROR: Keepass configuration file was not found."ascii wide
$b5Text"ERROR: That value already exists in:"ascii wide
$b6Text"ERROR: Failed to delete hidden registry key."ascii wide
$pdb1Text"\\SharPersist\\"
$pdb2Text"\\SharPersist.pdb"

Bedingung

( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and ( ( @pdb2 [ 1 ] < @pdb1 [ 1 ] + 50 ) or ( 1 of ( $a* ) and 2 of ( $b* ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 1 Muster aus ( $a* ) müssen treffen.
  • Mindestens 2 Muster aus ( $b* ) müssen treffen.

Diese Regel im Browser testen

Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.

Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.

Im Editor öffnen

Referenzen

Proben-Hashes

Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).

  • 98ecf58d48a3eae43899b45cec0fc6b7

Lizenz & Namensnennung

Autor: FireEye

Quell-Repository: Mandiant red team tool countermeasures @ 3561b71724

Lizenz: BSD 2-Clause License (Repository-Lizenz)

Copyright-Hinweis: Copyright (c) 2023, MANDIANT

Originalregel

Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.

Regel-ID: 49d7891e-b97a-52a8-acfd-bbf986732d6c

Metadaten

rev1

Tags:FILE