Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Lokilocker

Detects LokiLocker ransomware

MalwareLokilockerditekSHen 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 LokiLocker ransomware

Zugehörige Malware-Familie: Lokilocker.

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-lokilocker.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Lokilocker : FILE
{
	meta:
		description = "Detects LokiLocker ransomware"
		author = "ditekSHen"
		id = "4f4927c5-79e6-5c5a-b84d-c4728affe9e1"
		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#L9169-L9194"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "bf78f5e8f40c1a19f6b078a85854e95d5ef1f321393a831edda17b0d65515da7"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "SOFTWARE\\Loki" fullword wide
		$x2 = "Cpriv.Loki" fullword wide
		$x3 = "Loki/" wide
		$x4 = /loki(\s)?locker/ fullword wide nocase
		$s1 = "Restore-My-Files.txt" wide
		$s2 = "loading encryption keys" wide
		$s3 = "Kill switch -> enabled" wide
		$s4 = "ScanSMBShares" fullword ascii
		$s5 = "RewriteMBR" fullword ascii
		$s6 = /Encrypt(Drives|File|WinVolume|OsDrive)/ fullword ascii
		$n1 = "unique-id=" ascii wide
		$n2 = "&disk-size=" ascii wide
		$n3 = "&user=Darwin&cpu-name=" ascii wide
		$n4 = "&ram-size=" ascii wide
		$n5 = "&os-name=" ascii wide
		$n6 = "&chat-id=" ascii wide
		$n7 = "&msg-id=" ascii wide
		$n8 = "&elapsed-time=" ascii wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 4 of ( $s* ) or 6 of ( $n* ) or ( 3 of ( $s* ) and 3 of ( $n* ) ) or ( 1 of ( $x* ) and ( 2 of ( $s* ) or 2 of ( $n* ) ) ) )
}

Strings (18 Muster)

BezeichnerTypWertModifikatoren
$x1Text"SOFTWARE\\Loki"fullword wide
$x2Text"Cpriv.Loki"fullword wide
$x3Text"Loki/"wide
$x4Regex/loki(\s)?locker/fullword wide nocase
$s1Text"Restore-My-Files.txt"wide
$s2Text"loading encryption keys"wide
$s3Text"Kill switch -> enabled"wide
$s4Text"ScanSMBShares"fullword ascii
$s5Text"RewriteMBR"fullword ascii
$s6Regex/Encrypt(Drives|File|WinVolume|OsDrive)/fullword ascii
$n1Text"unique-id="ascii wide
$n2Text"&disk-size="ascii wide
$n3Text"&user=Darwin&cpu-name="ascii wide
$n4Text"&ram-size="ascii wide
$n5Text"&os-name="ascii wide
$n6Text"&chat-id="ascii wide
$n7Text"&msg-id="ascii wide
$n8Text"&elapsed-time="ascii wide

Bedingung

uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 4 of ( $s* ) or 6 of ( $n* ) or ( 3 of ( $s* ) and 3 of ( $n* ) ) or ( 1 of ( $x* ) and ( 2 of ( $s* ) or 2 of ( $n* ) ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 2 Muster aus ( $x* ) müssen treffen.
  • Mindestens 4 Muster aus ( $s* ) müssen treffen.
  • Mindestens 6 Muster aus ( $n* ) müssen treffen.
  • Mindestens 3 Muster aus ( $s* ) müssen treffen.
  • Mindestens 3 Muster aus ( $n* ) müssen treffen.
  • Mindestens 1 Muster aus ( $x* ) müssen treffen.
  • Mindestens 2 Muster aus ( $s* ) müssen treffen.
  • Mindestens 2 Muster aus ( $n* ) 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: 4f4927c5-79e6-5c5a-b84d-c4728affe9e1

Tags:FILE

Weitere Lokilocker-Regeln