Zum Inhalt springen

YARA · SEKOIA.IO Community

SEKOIA_Launcher_Win_Mistcloak

Detect the MISTCLOAK malware

MalwareMistcloakSEKOIA.IO CommunityDetection Rule License 1.1Kompiliert mit YARA-X (mit Warnungen)
Autor
Sekoia.io
Datum
2022-12-01
Geändert
2024-12-19
Score / Qualität
75 / 80

Was diese Regel erkennt

Detect the MISTCLOAK malware

Zugehörige Malware-Familie: Mistcloak.

Ziele: Windows-PE.

Sie definiert 5 Muster (5 Text, 0 Hex, 0 Regex). Verwendete YARA-Module: pe, hash.

YARA-X meldet: warning[deprecated_field]: field `number_of_sections` is deprecated

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

Enthält die Imports, die zum eigenständigen Kompilieren nötig sind.

launcher-win-mistcloak.yarDetection Rule License 1.1
import "pe"
import "hash"

rule SEKOIA_Launcher_Win_Mistcloak : FILE
{
	meta:
		description = "Detect the MISTCLOAK malware"
		author = "Sekoia.io"
		id = "3dbf5efa-d77c-436a-a080-9ac58a78425f"
		date = "2022-12-01"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/launcher_win_mistcloak.yar#L4-L33"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "fc2731ec4e2917be1ad169908ed324931a93f6998aee606319750b5cc02715e2"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "\\usb.ini"
		$ = "autorun.inf\\Protection for Autorun\\System Volume Information"
		$ = "G:\\project\\APT\\U"
		$ = "\\new\\u2ec\\Release\\u2ec.pdb"
		$ = "CheckUsbService"

	condition:
		uint16( 0 ) == 0x5A4D and 3 of them or hash.md5 ( pe.rich_signature.clear_data ) == "0f5082fd7ddd1950fa332a8fa4df052f" or for any i in ( 0 .. pe.number_of_sections -1 ) : ( hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "0ceac625db1e8405efe45d47486e9e2d" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "6968e6ac7b9c1dfbf40a0b3c4f6f4157" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "e6ed2da41f74e948cba7a002c41c6af5" )
}

Strings (5 Muster)

BezeichnerTypWertModifikatoren
$Text"\\usb.ini"
$Text"autorun.inf\\Protection for Autorun\\System Volume Information"
$Text"G:\\project\\APT\\U"
$Text"\\new\\u2ec\\Release\\u2ec.pdb"
$Text"CheckUsbService"

Bedingung

uint16( 0 ) == 0x5A4D and 3 of them or hash.md5 ( pe.rich_signature.clear_data ) == "0f5082fd7ddd1950fa332a8fa4df052f" or for any i in ( 0 .. pe.number_of_sections -1 ) : ( hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "0ceac625db1e8405efe45d47486e9e2d" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "6968e6ac7b9c1dfbf40a0b3c4f6f4157" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "e6ed2da41f74e948cba7a002c41c6af5" )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 3 Muster aus der Regel müssen treffen.
  • Eine for-Schleife prüft eine Eigenschaft über mehrere Treffer oder Elemente.
  • Nutzt das Modul hash.
  • Nutzt das Modul pe.
  • Vergleicht einen Hash der Datei oder eines Teils davon.
  • Prüft PE-Sektionen (Namen, Anzahl oder Eigenschaften).

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

Lizenz & Namensnennung

Autor: Sekoia.io

Quell-Repository: SEKOIA.IO Community @ a438a5901a

Lizenz: Detection Rule License 1.1 (Repository-Lizenz)

Originalregel

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

Regel-ID: 3dbf5efa-d77c-436a-a080-9ac58a78425f

Metadaten

version1.0
classificationTLP:CLEAR

Tags:FILE