Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Romcom_Worker

Hunt for RomCom worker

MalwareRomcomditekSHen detectionBSD 2-Clause LicenseKompiliert mit YARA-X
Autor
ditekShen
Datum
2020-11-06
Geändert
2024-11-01
Score / Qualität
75 / 73

Was diese Regel erkennt

Hunt for RomCom worker

Zugehörige Malware-Familie: Romcom.

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

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

malware-win-romcom-worker.yarBSD 2-Clause License
import "pe"

rule DITEKSHEN_MALWARE_Win_Romcom_Worker : FILE
{
	meta:
		description = "Hunt for RomCom worker"
		author = "ditekShen"
		id = "ce545a33-731c-5ecd-b02e-cedf24f75cc7"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10309-L10322"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "488db046458585882a4709438042b57e02d7dbc06483fdfdfc463a64ee8db203"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "UpdateProcThreadAttribute" fullword ascii
		$s2 = "WriteFile" fullword ascii
		$s3 = "GetAdaptersAddresses" fullword ascii nocase
		$s4 = /inflate\s\d+\.\d+\.\d+\sCopyright/ ascii
		$s5 = "SetHandleInformation" fullword ascii
		$s6 = "PeekNamedPipe" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and pe.number_of_exports == 1 and pe.exports ( "Main" ) and all of them
}

Strings (6 Muster)

BezeichnerTypWertModifikatoren
$s1Text"UpdateProcThreadAttribute"fullword ascii
$s2Text"WriteFile"fullword ascii
$s3Text"GetAdaptersAddresses"fullword ascii nocase
$s4Regex/inflate\s\d+\.\d+\.\d+\sCopyright/ascii
$s5Text"SetHandleInformation"fullword ascii
$s6Text"PeekNamedPipe"fullword ascii

Bedingung

uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and pe.number_of_exports == 1 and pe.exports ( "Main" ) 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.
  • Nutzt das Modul pe.
  • Prüft exportierte Funktionen oder den DLL-Namen.
  • Erfordert eine DLL.

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: ditekShen

Quell-Repository: ditekSHen detection @ e76c93dcde

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

Copyright-Hinweis: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Originalregel

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

Regel-ID: ce545a33-731c-5ecd-b02e-cedf24f75cc7

Tags:FILE

Weitere Romcom-Regeln