Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Zegost

Detects Zegost

MalwareZegostditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects Zegost"
		author = "ditekSHen"
		id = "cce29602-c096-53df-a99b-16f18ed43b80"
		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#L4534-L4560"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "96727a0f5c113e5cdfe871f104553fd1c04a8f63ecbb8db7223afb71fcdd4087"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$s1text"rtvscan.exe"fullword ascii
$s2text"ashDisp.exe"fullword ascii
$s3text"KvMonXP.exe"fullword ascii
$s4text"egui.exe"fullword ascii
$s5text"avcenter.exe"fullword ascii
$s6text"K7TSecurity.exe"fullword ascii
$s7text"TMBMSRV.exe"fullword ascii
$s8text"RavMonD.exe"fullword ascii
$s9text"kxetray.exe"fullword ascii
$s10text"mssecess.exe"fullword ascii
$s11text"QUHLPSVC.EXE"fullword ascii
$s12text"360tray.exe"fullword ascii
$s13text"QQPCRTP.exe"fullword ascii
$s14text"knsdtray.exe"fullword ascii
$s15text"V3Svc.exe"fullword ascii
$s16text"??1_Winit@std@@QAE@XZ"fullword ascii
$s17text"ClearEventLogA"fullword ascii
$s18text"SeShutdownPrivilege"fullword ascii
$s19text"%s\\shell\\open\\command"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and all of them

In 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.

Open in editor

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).

Original rule

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