YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Klogexe
Detects KLogExe
- Author
- ditekshen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 73
What this rule detects
Detects KLogExe
Associated malware family: Klogexe.
Targets: Windows PE.
It defines 11 patterns (11 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-klogexe.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Klogexe : FILE
{
meta:
= "Detects KLogExe"
= "ditekshen"
= "8c3ebc2c-717b-5c42-9233-274006d4331b"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11918-L11937"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "1f1809b83dc468122022b68d63734ba1597c6fede01582c31d1700ca0b9e1e22"
= 75
= 73
= "FILE"
= "MALWARE.Win.Trojan.KLogExe"
strings:
$s1 = "[clip_s]: %s" ascii
$s2 = "------ %d/%d/%d : %d/%d ------" ascii
$s3 = "[RWin+]" ascii
$s4 = "[Too many clip_tail]" ascii
$s5 = "name=\"userfile\"; filename=\"%s\"" ascii
$s6 = "Origin: http://" wide
$s7 = "%s_%d_%d_%d_%d" wide
$s8 = "/wp-content/include.php?_sys_" wide
$s9 = "\\desktops.ini" wide
$s10 = "KLogExe" wide nocase
$s11 = "dynamic_import.cpp [resolve_call] can`nt" wide
condition:
uint16( 0 ) == 0x5a4d and 6 of them
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "[clip_s]: %s" | ascii |
| $s2 | text | "------ %d/%d/%d : %d/%d ------" | ascii |
| $s3 | text | "[RWin+]" | ascii |
| $s4 | text | "[Too many clip_tail]" | ascii |
| $s5 | text | "name=\"userfile\"; filename=\"%s\"" | ascii |
| $s6 | text | "Origin: http://" | wide |
| $s7 | text | "%s_%d_%d_%d_%d" | wide |
| $s8 | text | "/wp-content/include.php?_sys_" | wide |
| $s9 | text | "\\desktops.ini" | wide |
| $s10 | text | "KLogExe" | wide nocase |
| $s11 | text | "dynamic_import.cpp [resolve_call] can`nt" | wide |
Condition
uint16( 0 ) == 0x5a4d and 6 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 6 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: 8c3ebc2c-717b-5c42-9233-274006d4331b
Metadata
| clamav1 | MALWARE.Win.Trojan.KLogExe |
|---|
Tags:FILE
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- 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