YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Lokilocker
Detects LokiLocker ransomware
- 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:
= "Detects LokiLocker ransomware"
= "ditekSHen"
= "4f4927c5-79e6-5c5a-b84d-c4728affe9e1"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9169-L9194"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "bf78f5e8f40c1a19f6b078a85854e95d5ef1f321393a831edda17b0d65515da7"
= 75
= 75
= "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)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $x1 | Text | "SOFTWARE\\Loki" | fullword wide |
| $x2 | Text | "Cpriv.Loki" | fullword wide |
| $x3 | Text | "Loki/" | wide |
| $x4 | Regex | /loki(\s)?locker/ | fullword wide nocase |
| $s1 | Text | "Restore-My-Files.txt" | wide |
| $s2 | Text | "loading encryption keys" | wide |
| $s3 | Text | "Kill switch -> enabled" | wide |
| $s4 | Text | "ScanSMBShares" | fullword ascii |
| $s5 | Text | "RewriteMBR" | fullword ascii |
| $s6 | Regex | /Encrypt(Drives|File|WinVolume|OsDrive)/ | fullword ascii |
| $n1 | Text | "unique-id=" | ascii wide |
| $n2 | Text | "&disk-size=" | ascii wide |
| $n3 | Text | "&user=Darwin&cpu-name=" | ascii wide |
| $n4 | Text | "&ram-size=" | ascii wide |
| $n5 | Text | "&os-name=" | ascii wide |
| $n6 | Text | "&chat-id=" | ascii wide |
| $n7 | Text | "&msg-id=" | ascii wide |
| $n8 | Text | "&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.
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).
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
Verwandte Regeln
- Verdächtig / HuntingditekSHen detection· ditekShen· 2021-01-21
- Verdächtig / HuntingditekSHen detection· ditekShen· 2021-01-21
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06