Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Unicorn

Detects Unicorn infostealer

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

Was diese Regel erkennt

Detects Unicorn infostealer

Zugehörige Malware-Familie: Unicorn.

Ziele: Windows-PE.

Sie definiert 16 Muster (14 Text, 2 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-unicorn.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Unicorn : FILE
{
	meta:
		description = "Detects Unicorn infostealer"
		author = "ditekSHen"
		id = "7cc8298d-abbd-5dda-bbd4-8b061095c367"
		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#L8077-L8107"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "c4150b213c0dd88c87eb81e3ad455d8f658a57b0998bc6e394c5afac9423d9f2"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "WinHTTP Downloader/1.0" fullword wide
		$x2 = "[CTRL + %c]" fullword wide
		$x3 = "\\UnicornLog.txt" fullword wide
		$x4 = "/*INITIALIZED*/" fullword wide
		$s1 = { 2f 00 63 00 20 00 22 00 43 00 4f 00 50 00 59 00
               20 00 2f 00 59 00 20 00 2f 00 42 00 20 00 22 00
               25 00 73 00 22 00 20 00 22 00 25 00 73 00 22 00
               22 00 00 00 63 00 6d 00 64 00 2e 00 65 00 78 00
               65 }
		$s2 = { 72 00 75 00 6e 00 64 00 6c 00 6c 00 33 00 32 00
               2e 00 65 00 78 00 65 00 00 00 00 00 25 00 73 00
               20 00 22 00 25 00 73 00 22 00 2c 00 25 00 68 00
               73 }
		$s3 = "%*[^]]%c%n" fullword ascii
		$s4 = "file://%s%s%s" fullword ascii
		$s5 = "%s://%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s" fullword ascii
		$s6 = "regex_start_injects" fullword ascii
		$s7 = "DLEXEC" fullword ascii
		$s8 = "^((((3|1)[A-Za-z0-9]{33}))(\\s|$)|(bc1q)[A-Za-z0-9]{38}(\\s|$))" fullword ascii
		$s9 = "^(0x)?[A-Za-z0-9]{40}(\\s|$)" fullword ascii
		$s10 = "clipRegex" fullword ascii
		$s11 = "%s?k=%s&src=clip&id=%s" fullword ascii
		$s12 = "http://izuw6rclbgl2lwsh.onion/o.php" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or 8 of ( $s* ) or ( 3 of ( $x* ) and 5 of ( $s* ) ) )
}

Strings (16 Muster)

BezeichnerTypWertModifikatoren
$x1Text"WinHTTP Downloader/1.0"fullword wide
$x2Text"[CTRL + %c]"fullword wide
$x3Text"\\UnicornLog.txt"fullword wide
$x4Text"/*INITIALIZED*/"fullword wide
$s1Hex{ 2f 00 63 00 20 00 22 00 43 00 4f 00 50 00 59 00 20 00 2f 00 59 00 20 00 2f 00 42 00 20 00 22 00 25 00 73 00 22 00 20 00 22 00 25 …
$s2Hex{ 72 00 75 00 6e 00 64 00 6c 00 6c 00 33 00 32 00 2e 00 65 00 78 00 65 00 00 00 00 00 25 00 73 00 20 00 22 00 25 00 73 00 22 00 2c …
$s3Text"%*[^]]%c%n"fullword ascii
$s4Text"file://%s%s%s"fullword ascii
$s5Text"%s://%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s"fullword ascii
$s6Text"regex_start_injects"fullword ascii
$s7Text"DLEXEC"fullword ascii
$s8Text"^((((3|1)[A-Za-z0-9]{33}))(\\s|$)|(bc1q)[A-Za-z0-9]{38}(\\s|$))"fullword ascii
$s9Text"^(0x)?[A-Za-z0-9]{40}(\\s|$)"fullword ascii
$s10Text"clipRegex"fullword ascii
$s11Text"%s?k=%s&src=clip&id=%s"fullword ascii
$s12Text"http://izuw6rclbgl2lwsh.onion/o.php"fullword ascii

Bedingung

uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or 8 of ( $s* ) or ( 3 of ( $x* ) and 5 of ( $s* ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $x* ) müssen treffen.
  • Mindestens 8 Muster aus ( $s* ) müssen treffen.
  • Mindestens 3 Muster aus ( $x* ) müssen treffen.
  • Mindestens 5 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: 7cc8298d-abbd-5dda-bbd4-8b061095c367

Tags:FILE