Zum Inhalt springen

YARA · SEKOIA.IO Community

SEKOIA_Launcher_Win_Bluehaze

Detect the BLUEHAZE malware

MalwareBluehazeSEKOIA.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 BLUEHAZE malware

Zugehörige Malware-Familie: Bluehaze.

Ziele: Windows-PE.

Sie definiert 3 Muster (3 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-bluehaze.yarDetection Rule License 1.1
import "pe"
import "hash"

rule SEKOIA_Launcher_Win_Bluehaze : FILE
{
	meta:
		description = "Detect the BLUEHAZE malware"
		author = "Sekoia.io"
		id = "ccfe0593-0a9f-4369-952e-5cef2f459bb3"
		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_bluehaze.yar#L4-L35"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "56a9d6d713a5744e77c8d34ad28983bb3b2aded1abff47dbf2d887724bd3ed4e"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "Libraries\\CNNUDTV"
		$ = "cmd.exe /C wuwebv.exe -t -e"
		$ = "cmd.exe /C reg add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v ACNTV /t REG_SZ /d \"Rundll32.exe SHELL32.DLL,ShellExec_RunDLL"

	condition:
		uint16( 0 ) == 0x5A4D and 3 of them or pe.imphash ( ) == "1b3d8fae6035e34f91baa59643746efe" or hash.md5 ( pe.rich_signature.clear_data ) == "44022b7cefeae4d55edcceb5b9bcd295" 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 ) == "1cdcb493593f8793b10e109f6b5b2993" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "276d668ed7d1b46e101425e02a16460f" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "f6a474220add335b5696256235ce8c9c" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "82bccb3330d50080f86ab1aa566cae8e" )
}

Strings (3 Muster)

BezeichnerTypWertModifikatoren
$Text"Libraries\\CNNUDTV"
$Text"cmd.exe /C wuwebv.exe -t -e"
$Text"cmd.exe /C reg add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v ACNTV /t REG_SZ /d \"Rundll32.exe SHELL32.DLL,ShellExec_RunDLL"

Bedingung

uint16( 0 ) == 0x5A4D and 3 of them or pe.imphash ( ) == "1b3d8fae6035e34f91baa59643746efe" or hash.md5 ( pe.rich_signature.clear_data ) == "44022b7cefeae4d55edcceb5b9bcd295" 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 ) == "1cdcb493593f8793b10e109f6b5b2993" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "276d668ed7d1b46e101425e02a16460f" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "f6a474220add335b5696256235ce8c9c" or hash.md5 ( pe.sections [ i ] . raw_data_offset , pe.sections [ i ] . raw_data_size ) == "82bccb3330d50080f86ab1aa566cae8e" )

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 pe.
  • Nutzt das Modul hash.
  • Vergleicht einen Hash der Datei oder eines Teils davon.
  • Prüft den PE-Import-Hash (imphash).
  • 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: ccfe0593-0a9f-4369-952e-5cef2f459bb3

Metadaten

version1.0
classificationTLP:CLEAR

Tags:FILE