YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Lighthand
Detects LightHand
- Autor
- ditekshen
- Datum
- 2020-11-06
- Geändert
- 2024-11-01
- Score / Qualität
- 75 / 75
Was diese Regel erkennt
Detects LightHand
Zugehörige Malware-Familie: Lighthand.
Ziele: Windows-PE.
Sie definiert 8 Muster (5 Text, 2 Hex, 1 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
malware-win-lighthand.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Lighthand : FILE
{
meta:
= "Detects LightHand"
= "ditekshen"
= "2b644dfb-f09a-50a5-8260-7b7022bce1f4"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11691-L11718"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "4f06467a522b786045839e6b22b888cecc554b0f63cc20dc43dc0f8ec80f5654"
= 75
= 75
= "FILE"
strings:
$x1 = "27.102." ascii
$x2 = "109.248.150.179" fullword ascii
$s1 = /Hello (Client|Server)/ fullword ascii
$s2 = "%s|%s|%s|%s|%s|%s|" fullword wide
$s3 = "%s\\cmd.exe" fullword wide
$s4 = "Remote PC" fullword wide
$s5 = { 2e 62 61 74 [3-4] 3a 4c 31 0d 0a 64 65 6c
20 2f 46 20 22 25 73 22 0d 0a 69 66 20 65 78 69
73 74 20 22 25 73 22 20 67 6f 74 6f 20 4c 31 0d
0a 64 65 6c 20 2f 46 20 22 25 73 22 0d 0a 00 00
6f 70 65 6e }
$s6 = { 25 00 2e 00 32 00 66 00 47 00 42 00 00 00 00 00
25 00 73 00 7c 00 25 00 73 00 7c 00 25 00 73 00
0a 00 00 00 00 00 00 00 5c 00 2a 00 2e 00 2a 00
00 00 00 00 0a 00 00 00 2e 00 00 00 2e 00 2e 00
00 00 00 00 00 00 00 00 46 00 6f 00 6c 00 64 00
65 00 72 00 00 00 00 00 25 00 73 00 5c 00 25 00
73 00 00 00 00 00 00 00 25 00 64 00 42 00 00 00
25 00 2e 00 31 00 66 00 4b 00 42 00 00 00 00 00
25 00 2e 00 31 00 66 00 4d 00 42 }
condition:
uint16( 0 ) == 0x5a4d and ( ( 5 of ( $s* ) ) or ( 1 of ( $x* ) and 3 of ( $s* ) ) )
}
Strings (8 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $x1 | Text | "27.102." | ascii |
| $x2 | Text | "109.248.150.179" | fullword ascii |
| $s1 | Regex | /Hello (Client|Server)/ | fullword ascii |
| $s2 | Text | "%s|%s|%s|%s|%s|%s|" | fullword wide |
| $s3 | Text | "%s\\cmd.exe" | fullword wide |
| $s4 | Text | "Remote PC" | fullword wide |
| $s5 | Hex | { 2e 62 61 74 [3-4] 3a 4c 31 0d 0a 64 65 6c 20 2f 46 20 22 25 73 22 0d 0a 69 66 20 65 78 69 73 74 20 22 25 73 22 20 67 6f 74 6f … | |
| $s6 | Hex | { 25 00 2e 00 32 00 66 00 47 00 42 00 00 00 00 00 25 00 73 00 7c 00 25 00 73 00 7c 00 25 00 73 00 0a 00 00 00 00 00 00 00 5c 00 … |
Bedingung
uint16( 0 ) == 0x5a4d and ( ( 5 of ( $s* ) ) or ( 1 of ( $x* ) and 3 of ( $s* ) ) )In Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Mindestens 5 Muster aus ( $s* ) müssen treffen.
- Mindestens 1 Muster aus ( $x* ) müssen treffen.
- Mindestens 3 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.
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: 2b644dfb-f09a-50a5-8260-7b7022bce1f4
Tags:FILE
Verwandte Regeln
- 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
- MalwareditekSHen detection· ditekshen· 2020-11-06
- MalwareditekSHen detection· ditekshen· 2020-11-06
- MalwareditekSHen detection· ditekshen· 2020-11-06