Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Gelsemine

Detects Gelsemine

MalwareGelsemineditekSHen detectionBSD 2-Clause LicenseKompiliert mit YARA-X (mit Warnungen)
Autor
ditekSHen
Datum
2020-11-06
Geändert
2024-11-01
Score / Qualität
75 / 75

Was diese Regel erkennt

Detects Gelsemine

Zugehörige Malware-Familie: Gelsemine.

Ziele: Windows-PE.

Sie definiert 13 Muster (7 Text, 6 Hex, 0 Regex).

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-gelsemine.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Gelsemine : FILE
{
	meta:
		description = "Detects Gelsemine"
		author = "ditekSHen"
		id = "f7e9ca53-fc52-5da0-a760-cb09c2544f4f"
		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#L6174-L6194"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "8c20efa6f34ee9165fac9f1f2e5eb20830a02016309dfaa5681977e1a8ac6068"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "If any of these steps fails.only pick one of the targets for configuration\"If you want to just get on with it*which also use [ " wide
		$s2 = "A make implementation+with core modules (please read NOTES.PER_L)2The per_l Text::Template (please read NOTES.PER_L)" wide
		$s3 = "NOTES.VMS (OpenVMS)!NOTES.WIN (any supported Windows)%NOTES.DJGPP (DOS platform with DJGPP)'NOTES.ANDROID (obviously Android [ND" wide
		$s4 = "A simple example would be this)which is to be understood as one of these" fullword wide
		$s5 = "bala bala bala" fullword wide
		$s6 = "echo FOO" fullword wide
		$s7 = "?_Tidy@?$basic_string@DU?$char_traits@D@std@@V" ascii
		$o1 = { eb 08 c7 44 24 34 fd ff ff ff 8b 44 24 54 8b 4c }
		$o2 = { eb 08 c7 44 24 34 fd ff ff ff 8b 44 24 54 8b 4c }
		$o3 = { 8b 76 08 2b f0 a1 34 ff 40 00 03 f0 89 35 38 ff }
		$o4 = { 83 c4 34 c3 8b 4e 20 6a 05 e8 73 10 00 00 8b 76 }
		$o5 = { 8b 44 24 44 2b d1 03 d0 8b f2 e9 14 ff ff ff 8d }
		$o6 = { 68 00 06 00 00 6a 00 e8 d3 ff ff ff a2 48 00 41 }

	condition:
		uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or ( all of ( $o* ) and 2 of ( $s* ) ) )
}

Strings (13 Muster)

BezeichnerTypWertModifikatoren
$s1Text"If any of these steps fails.only pick one of the targets for configuration\"If you want to just get on with it*which also use [ "wide
$s2Text"A make implementation+with core modules (please read NOTES.PER_L)2The per_l Text::Template (please read NOTES.PER_L)"wide
$s3Text"NOTES.VMS (OpenVMS)!NOTES.WIN (any supported Windows)%NOTES.DJGPP (DOS platform with DJGPP)'NOTES.ANDROID (obviously Android [ND"wide
$s4Text"A simple example would be this)which is to be understood as one of these"fullword wide
$s5Text"bala bala bala"fullword wide
$s6Text"echo FOO"fullword wide
$s7Text"?_Tidy@?$basic_string@DU?$char_traits@D@std@@V"ascii
$o1Hex{ eb 08 c7 44 24 34 fd ff ff ff 8b 44 24 54 8b 4c }
$o2Hex{ eb 08 c7 44 24 34 fd ff ff ff 8b 44 24 54 8b 4c }
$o3Hex{ 8b 76 08 2b f0 a1 34 ff 40 00 03 f0 89 35 38 ff }
$o4Hex{ 83 c4 34 c3 8b 4e 20 6a 05 e8 73 10 00 00 8b 76 }
$o5Hex{ 8b 44 24 44 2b d1 03 d0 8b f2 e9 14 ff ff ff 8d }
$o6Hex{ 68 00 06 00 00 6a 00 e8 d3 ff ff ff a2 48 00 41 }

Bedingung

uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or ( all of ( $o* ) and 2 of ( $s* ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $o* ) müssen treffen.
  • Mindestens 6 Muster aus ( $s* ) müssen treffen.
  • Mindestens 2 Muster aus ( $s* ) 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

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: f7e9ca53-fc52-5da0-a760-cb09c2544f4f

Tags:FILE