YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Lockfile
Detects LockFile ransomware
- Autor
- ditekSHen
- Datum
- 2020-11-06
- Geändert
- 2024-11-01
- Score / Qualität
- 75 / 71
Was diese Regel erkennt
Detects LockFile ransomware
Zugehörige Malware-Familie: Lockfile.
Ziele: Windows-PE.
Sie definiert 9 Muster (9 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
malware-win-lockfile.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Lockfile : FILE
{
meta:
= "Detects LockFile ransomware"
= "ditekSHen"
= "762ac376-43ff-56d2-b279-2879ce6d8542"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7998-L8014"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "28c8aa8931d599e5a1860fe2ed0b8172e709dad1a48a319858a907fa775af293"
= 75
= 71
= "FILE"
strings:
$x1 = "LOCKFILE" fullword ascii
$x2 = "25a01bb859125507013a2fe9737d3c33" fullword ascii
$s1 = "</key>" fullword ascii
$s2 = "<computername>%s</computername>" fullword ascii
$s3 = "<blocknum>%d</blocknum>" fullword ascii
$s4 = "%s\\%s-%s-%d%s" fullword ascii
$s5 = ">RAC=OQD:S>P@:AO?R:EEOS:ARDD=N?EENSB" ascii wide
$m1 = "<title>LOCKFILE</title>" ascii wide nocase
$m2 = "<hta:application id=LOCKFILE applicationName=LOCKFILE" ascii wide nocase
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or all of ( $s* ) or ( 1 of ( $x* ) and ( 2 of ( $s* ) or 1 of ( $m* ) ) ) or ( 1 of ( $m* ) and ( 1 of ( $x* ) or 2 of ( $s* ) ) ) )
}
Strings (9 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $x1 | Text | "LOCKFILE" | fullword ascii |
| $x2 | Text | "25a01bb859125507013a2fe9737d3c33" | fullword ascii |
| $s1 | Text | "</key>" | fullword ascii |
| $s2 | Text | "<computername>%s</computername>" | fullword ascii |
| $s3 | Text | "<blocknum>%d</blocknum>" | fullword ascii |
| $s4 | Text | "%s\\%s-%s-%d%s" | fullword ascii |
| $s5 | Text | ">RAC=OQD:S>P@:AO?R:EEOS:ARDD=N?EENSB" | ascii wide |
| $m1 | Text | "<title>LOCKFILE</title>" | ascii wide nocase |
| $m2 | Text | "<hta:application id=LOCKFILE applicationName=LOCKFILE" | ascii wide nocase |
Bedingung
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or all of ( $s* ) or ( 1 of ( $x* ) and ( 2 of ( $s* ) or 1 of ( $m* ) ) ) or ( 1 of ( $m* ) and ( 1 of ( $x* ) or 2 of ( $s* ) ) ) )In Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Alle Muster aus ( $x* ) müssen treffen.
- Alle Muster aus ( $s* ) müssen treffen.
- Mindestens 1 Muster aus ( $x* ) müssen treffen.
- Mindestens 2 Muster aus ( $s* ) müssen treffen.
- Mindestens 1 Muster aus ( $m* ) 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: 762ac376-43ff-56d2-b279-2879ce6d8542
Tags:FILE
Verwandte Regeln
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- ARKBIRD_SOLG_MAL_Loader_Lockfile_Aug_2021_1Nur MetadatenMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2021-08-28
- 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