Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Lilithrat

Detects LilithRAT

MalwareLilithratditekSHen 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 LilithRAT

Zugehörige Malware-Familie: Lilithrat.

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-lilithrat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Lilithrat : FILE
{
	meta:
		description = "Detects LilithRAT"
		author = "ditekSHen"
		id = "87e56524-f557-5662-86bc-2b26e7c74aee"
		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#L6812-L6839"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		hash = "132870a1ae6a0bdecaa52c03cfe97a47df8786f148fa8ca113ac2a8d59e3624a"
		hash = "ab7b6e0b28995bdeea44f20c0aba47f95e1d6ba281af3541cd2c04dc6c2a3ad9"
		hash = "b2eeb487046ba1d341fb964069b7e83027b60003334e04e41b467e35c3d2460f"
		hash = "cebcda044c60b709ba4ee0fa9e1e7011a6ffc17285bcc0948d27f866ec8d8f20"
		logic_hash = "1e8ac8a329ff99318e12666ea1d90d21bb9b0dff656a5eb1ce741b940c99afd5"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$pdb1 = "c:\\Users\\Groovi\\Documents\\Visual Studio 2008\\Projects\\TestDll\\" ascii
		$pdb2 = "C:\\Users\\iceberg\\Downloads\\RAT-Server-master\\RAT-Server-master\\RAT\\Debug\\RAT.pdb" ascii
		$pdb3 = "C:\\Users\\Samy\\Downloads\\Compressed\\Lilith-master\\Debug\\Lilith.pdb" ascii
		$s1 = "log.txt" fullword ascii
		$s2 = "keylog.txt" fullword ascii
		$s3 = "File Listing Completed Successfully." fullword ascii
		$s4 = "Download Execute" fullword ascii
		$s5 = "File Downloaded and Executed Successfully." fullword ascii
		$s6 = "C:\\WINDOWS\\system32\\cmd.exe" fullword ascii
		$s7 = "CMD session closed" ascii
		$s8 = "Restart requested: Restarting self" fullword ascii
		$s9 = "Termination requested: Killing self" fullword ascii
		$s10 = "Couldn't write to CMD: CMD not open" fullword ascii
		$s11 = "keydump" fullword ascii
		$s12 = "remoteControl" fullword ascii
		$s13 = "packettype" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 1 of ( $pdb* ) or 6 of ( $s* ) or ( 1 of ( $pdb* ) and 4 of ( $s* ) ) )
}

Strings (16 Muster)

BezeichnerTypWertModifikatoren
$pdb1Text"c:\\Users\\Groovi\\Documents\\Visual Studio 2008\\Projects\\TestDll\\"ascii
$pdb2Text"C:\\Users\\iceberg\\Downloads\\RAT-Server-master\\RAT-Server-master\\RAT\\Debug\\RAT.pdb"ascii
$pdb3Text"C:\\Users\\Samy\\Downloads\\Compressed\\Lilith-master\\Debug\\Lilith.pdb"ascii
$s1Text"log.txt"fullword ascii
$s2Text"keylog.txt"fullword ascii
$s3Text"File Listing Completed Successfully."fullword ascii
$s4Text"Download Execute"fullword ascii
$s5Text"File Downloaded and Executed Successfully."fullword ascii
$s6Text"C:\\WINDOWS\\system32\\cmd.exe"fullword ascii
$s7Text"CMD session closed"ascii
$s8Text"Restart requested: Restarting self"fullword ascii
$s9Text"Termination requested: Killing self"fullword ascii
$s10Text"Couldn't write to CMD: CMD not open"fullword ascii
$s11Text"keydump"fullword ascii
$s12Text"remoteControl"fullword ascii
$s13Text"packettype"fullword ascii

Bedingung

uint16( 0 ) == 0x5a4d and ( 1 of ( $pdb* ) or 6 of ( $s* ) or ( 1 of ( $pdb* ) and 4 of ( $s* ) ) )

In Worten (Heuristik)

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

Proben-Hashes

Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).

  • 132870a1ae6a0bdecaa52c03cfe97a47df8786f148fa8ca113ac2a8d59e3624a
  • ab7b6e0b28995bdeea44f20c0aba47f95e1d6ba281af3541cd2c04dc6c2a3ad9
  • b2eeb487046ba1d341fb964069b7e83027b60003334e04e41b467e35c3d2460f
  • cebcda044c60b709ba4ee0fa9e1e7011a6ffc17285bcc0948d27f866ec8d8f20

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: 87e56524-f557-5662-86bc-2b26e7c74aee

Tags:FILE