Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Chebka

Detects Chebka

MalwareChebkaditekSHen 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 Chebka

Associated malware family: Chebka.

Targets: Windows PE.

It defines 14 patterns (13 text, 0 hex, 1 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-chebka.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Chebka : FILE
{
	meta:
		description = "Detects Chebka"
		author = "ditekSHen"
		id = "df486522-695c-56f5-b93a-6f16829a3a3e"
		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#L9009-L9030"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "cc8123a5d20fac51d4dfc225e743539456efb4d649060d078c3ed93e7724da01"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "-k netsvcs" wide
		$s2 = "%ssvchost.exe -k SystemNetworkService" wide
		$s3 = "Mozilla/4.0 (compatible)" wide
		$s4 = "_kasssperskdy" wide
		$s5 = "winssyslog" wide
		$s6 = "LoaderDll%d" wide
		$s7 = "cmd.exe /c rundll32.exe shell32.dll," wide
		$s8 = /cmd.exe \/c start (chrome|msedge|firefox|iexplorer)\.exe/ wide
		$f1 = ".?AVCHVncManager@@" fullword ascii
		$f2 = ".?AVCNetstatManager@@" fullword ascii
		$f3 = ".?AVCTcpAgentListener@@" fullword ascii
		$f4 = ".?AVIUdpClientListener@@" fullword ascii
		$f5 = ".?AVCShellManager@@" fullword ascii
		$f6 = ".?AVCScreenSpy@@" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or all of ( $f* ) or ( 3 of ( $f* ) and 3 of ( $s* ) ) or ( #s8 > 2 and 5 of them ) )
}

Strings (14 patterns)

IdentifierTypeValueModifiers
$s1text"-k netsvcs"wide
$s2text"%ssvchost.exe -k SystemNetworkService"wide
$s3text"Mozilla/4.0 (compatible)"wide
$s4text"_kasssperskdy"wide
$s5text"winssyslog"wide
$s6text"LoaderDll%d"wide
$s7text"cmd.exe /c rundll32.exe shell32.dll,"wide
$s8regex/cmd.exe \/c start (chrome|msedge|firefox|iexplorer)\.exe/wide
$f1text".?AVCHVncManager@@"fullword ascii
$f2text".?AVCNetstatManager@@"fullword ascii
$f3text".?AVCTcpAgentListener@@"fullword ascii
$f4text".?AVIUdpClientListener@@"fullword ascii
$f5text".?AVCShellManager@@"fullword ascii
$f6text".?AVCScreenSpy@@"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or all of ( $f* ) or ( 3 of ( $f* ) and 3 of ( $s* ) ) or ( #s8 > 2 and 5 of them ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $f* ) must match.
  • At least 5 patterns in ( $s* ) must match.
  • At least 3 patterns in ( $f* ) must match.
  • At least 3 patterns in ( $s* ) must match.
  • At least 5 patterns in the rule must match.
  • Pattern $s8 must occur > 2 times.

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: df486522-695c-56f5-b93a-6f16829a3a3e

Tags:FILE