Zum Inhalt springen

YARA · Mandiant red team tool countermeasures

FIREEYE_RT_APT_Loader_Win_MATRYOSHKA_1

matryoshka_process_hollow.rs

APT / AkteurMandiant red team tool countermeasuresBSD 2-Clause LicenseKompiliert mit YARA-X (mit Warnungen)
Autor
FireEye
Datum
2020-12-02
Geändert
2020-12-09
Score / Qualität
75 / 75

Was diese Regel erkennt

matryoshka_process_hollow.rs

Ziele: Windows-PE.

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

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

apt-loader-win-matryoshka-1.yarBSD 2-Clause License
rule FIREEYE_RT_APT_Loader_Win_MATRYOSHKA_1 : FILE
{
	meta:
		description = "matryoshka_process_hollow.rs"
		author = "FireEye"
		id = "c07fb67e-ded5-593d-b5dc-d0e2c3b5a352"
		date = "2020-12-02"
		date = "2020-12-02"
		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/MATRYOSHKA/production/yara/APT_Loader_Win_MATRYOSHKA_1.yar#L4-L24"
		license_url = "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
		hash = "44887551a47ae272d7873a354d24042d"
		logic_hash = "8f762684ffd3984630bf41ededa78b8993b53b22591a59912cabfe635775de53"
		score = 75
		quality = 75
		tags = "FILE"
		rev = 1

	strings:
		$s1 = "ZwQueryInformationProcess" fullword
		$s2 = "WriteProcessMemory" fullword
		$s3 = "CreateProcessW" fullword
		$s4 = "WriteProcessMemory" fullword
		$s5 = "\x00Invalid NT Signature!\x00"
		$s6 = "\x00Error while creating and mapping section. NTStatus: "
		$s7 = "\x00Error no process information - NTSTATUS:"
		$s8 = "\x00Error while erasing pe header. NTStatus: "

	condition:
		( uint16( 0 ) == 0x5A4D ) and ( uint32( uint32( 0x3C ) ) == 0x00004550 ) and ( uint16( uint32( 0x3C ) + 0x18 ) == 0x020B ) and all of them
}

Strings (8 Muster)

BezeichnerTypWertModifikatoren
$s1Text"ZwQueryInformationProcess"fullword
$s2Text"WriteProcessMemory"fullword
$s3Text"CreateProcessW"fullword
$s4Text"WriteProcessMemory"fullword
$s5Text"\x00Invalid NT Signature!\x00"
$s6Text"\x00Error while creating and mapping section. NTStatus: "
$s7Text"\x00Error no process information - NTSTATUS:"
$s8Text"\x00Error while erasing pe header. NTStatus: "

Bedingung

( uint16( 0 ) == 0x5A4D ) and ( uint32( uint32( 0x3C ) ) == 0x00004550 ) and ( uint16( uint32( 0x3C ) + 0x18 ) == 0x020B ) and all of them

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus der Regel 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).

  • 44887551a47ae272d7873a354d24042d

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: c07fb67e-ded5-593d-b5dc-d0e2c3b5a352

Metadaten

rev1

Tags:FILE