YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Zegost
Detects Zegost
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects Zegost
Associated malware family: Zegost.
Targets: Windows PE.
It defines 19 patterns (19 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-zegost.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Zegost : FILE
{
meta:
= "Detects Zegost"
= "ditekSHen"
= "cce29602-c096-53df-a99b-16f18ed43b80"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L4534-L4560"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "96727a0f5c113e5cdfe871f104553fd1c04a8f63ecbb8db7223afb71fcdd4087"
= 75
= 75
= "FILE"
strings:
$s1 = "rtvscan.exe" fullword ascii
$s2 = "ashDisp.exe" fullword ascii
$s3 = "KvMonXP.exe" fullword ascii
$s4 = "egui.exe" fullword ascii
$s5 = "avcenter.exe" fullword ascii
$s6 = "K7TSecurity.exe" fullword ascii
$s7 = "TMBMSRV.exe" fullword ascii
$s8 = "RavMonD.exe" fullword ascii
$s9 = "kxetray.exe" fullword ascii
$s10 = "mssecess.exe" fullword ascii
$s11 = "QUHLPSVC.EXE" fullword ascii
$s12 = "360tray.exe" fullword ascii
$s13 = "QQPCRTP.exe" fullword ascii
$s14 = "knsdtray.exe" fullword ascii
$s15 = "V3Svc.exe" fullword ascii
$s16 = "??1_Winit@std@@QAE@XZ" fullword ascii
$s17 = "ClearEventLogA" fullword ascii
$s18 = "SeShutdownPrivilege" fullword ascii
$s19 = "%s\\shell\\open\\command" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and all of them
}
Strings (19 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "rtvscan.exe" | fullword ascii |
| $s2 | text | "ashDisp.exe" | fullword ascii |
| $s3 | text | "KvMonXP.exe" | fullword ascii |
| $s4 | text | "egui.exe" | fullword ascii |
| $s5 | text | "avcenter.exe" | fullword ascii |
| $s6 | text | "K7TSecurity.exe" | fullword ascii |
| $s7 | text | "TMBMSRV.exe" | fullword ascii |
| $s8 | text | "RavMonD.exe" | fullword ascii |
| $s9 | text | "kxetray.exe" | fullword ascii |
| $s10 | text | "mssecess.exe" | fullword ascii |
| $s11 | text | "QUHLPSVC.EXE" | fullword ascii |
| $s12 | text | "360tray.exe" | fullword ascii |
| $s13 | text | "QQPCRTP.exe" | fullword ascii |
| $s14 | text | "knsdtray.exe" | fullword ascii |
| $s15 | text | "V3Svc.exe" | fullword ascii |
| $s16 | text | "??1_Winit@std@@QAE@XZ" | fullword ascii |
| $s17 | text | "ClearEventLogA" | fullword ascii |
| $s18 | text | "SeShutdownPrivilege" | fullword ascii |
| $s19 | text | "%s\\shell\\open\\command" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and all of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in the rule must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
References
Licence & attribution
Author: ditekSHen
Source repository: ditekSHen detection @ e76c93dcde
Licence: BSD 2-Clause License (repository licence)
Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: cce29602-c096-53df-a99b-16f18ed43b80
Tags:FILE
Related rules
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06