YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Chebka
Detects Chebka
- 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:
= "Detects Chebka"
= "ditekSHen"
= "df486522-695c-56f5-b93a-6f16829a3a3e"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9009-L9030"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "cc8123a5d20fac51d4dfc225e743539456efb4d649060d078c3ed93e7724da01"
= 75
= 75
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "-k netsvcs" | wide |
| $s2 | text | "%ssvchost.exe -k SystemNetworkService" | wide |
| $s3 | text | "Mozilla/4.0 (compatible)" | wide |
| $s4 | text | "_kasssperskdy" | wide |
| $s5 | text | "winssyslog" | wide |
| $s6 | text | "LoaderDll%d" | wide |
| $s7 | text | "cmd.exe /c rundll32.exe shell32.dll," | wide |
| $s8 | regex | /cmd.exe \/c start (chrome|msedge|firefox|iexplorer)\.exe/ | wide |
| $f1 | text | ".?AVCHVncManager@@" | fullword ascii |
| $f2 | text | ".?AVCNetstatManager@@" | fullword ascii |
| $f3 | text | ".?AVCTcpAgentListener@@" | fullword ascii |
| $f4 | text | ".?AVIUdpClientListener@@" | fullword ascii |
| $f5 | text | ".?AVCShellManager@@" | fullword ascii |
| $f6 | text | ".?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.
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: df486522-695c-56f5-b93a-6f16829a3a3e
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