YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Ktlvdoor
Detects KTLVdoor
- Author
- ditekshen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 73
What this rule detects
Detects KTLVdoor
Associated malware family: Ktlv Door.
Targets: Windows PE.
It defines 26 patterns (24 text, 0 hex, 2 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-ktlvdoor.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Ktlvdoor : FILE
{
meta:
= "Detects KTLVdoor"
= "ditekshen"
= "f63ebd05-fb4b-50fb-887b-dacd379594a4"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11758-L11791"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "3ced9b558c7e17acd015cd2c9dd0c5d024bf9c31c7f2e7c9b7b937124109cf8b"
= 75
= 73
= "FILE"
strings:
$s1 = "/cmd/acc/agent_acc" ascii
$s2 = "main.DLLWMain" ascii
$s3 = "main.checkSilent" ascii
$h1 = ".handleInteractiveShell" ascii
$h2 = ".handleNetstat" ascii
$h3 = ".handleProcess" ascii
$h4 = ".handleRefreshHostInfo" ascii
$h5 = ".handleTimestomp" ascii
$h6 = ".handleSoInject" ascii
$h7 = ".HandleRegInfo" ascii
$h8 = ".handlePortscan" ascii
$h9 = ".handleReflectDllInject" ascii
$h10 = ".handleFileDownload" ascii
$f1 = ".RdpWithNTLM." ascii
$f2 = ".FingerPrintOs." ascii
$f3 = ".ScanWMI." ascii
$f4 = ".ScanWinRM." ascii
$f5 = ".ScanWeb." ascii
$f6 = ".ScanSmb2." ascii
$f7 = ".ScanRDP." ascii
$f8 = ".ScanPing." ascii
$f9 = ".ScanOxid." ascii
$f10 = ".ScanMssql." ascii
$f11 = ".ScanBanner." ascii
$fr1 = /\.proxy[CS]2[CS](TC|UD)P/ ascii
$fr2 = /\.Scan(WMI|WinRM|Web|Smb2|RDP|Ping|Oxid|Mssql|Banner)\./ ascii
condition:
( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0x457f ) and ( ( 6 of ( $h* ) ) or ( 12 of ( $f* ) ) or ( 2 of ( $h* ) and 4 of ( $f* ) ) or ( 1 of ( $s* ) and ( 4 of ( $h* ) or 4 of ( $f* ) ) ) or ( 13 of them ) )
}
Strings (26 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "/cmd/acc/agent_acc" | ascii |
| $s2 | text | "main.DLLWMain" | ascii |
| $s3 | text | "main.checkSilent" | ascii |
| $h1 | text | ".handleInteractiveShell" | ascii |
| $h2 | text | ".handleNetstat" | ascii |
| $h3 | text | ".handleProcess" | ascii |
| $h4 | text | ".handleRefreshHostInfo" | ascii |
| $h5 | text | ".handleTimestomp" | ascii |
| $h6 | text | ".handleSoInject" | ascii |
| $h7 | text | ".HandleRegInfo" | ascii |
| $h8 | text | ".handlePortscan" | ascii |
| $h9 | text | ".handleReflectDllInject" | ascii |
| $h10 | text | ".handleFileDownload" | ascii |
| $f1 | text | ".RdpWithNTLM." | ascii |
| $f2 | text | ".FingerPrintOs." | ascii |
| $f3 | text | ".ScanWMI." | ascii |
| $f4 | text | ".ScanWinRM." | ascii |
| $f5 | text | ".ScanWeb." | ascii |
| $f6 | text | ".ScanSmb2." | ascii |
| $f7 | text | ".ScanRDP." | ascii |
| $f8 | text | ".ScanPing." | ascii |
| $f9 | text | ".ScanOxid." | ascii |
| $f10 | text | ".ScanMssql." | ascii |
| $f11 | text | ".ScanBanner." | ascii |
| $fr1 | regex | /\.proxy[CS]2[CS](TC|UD)P/ | ascii |
| $fr2 | regex | /\.Scan(WMI|WinRM|Web|Smb2|RDP|Ping|Oxid|Mssql|Banner)\./ | ascii |
Condition
( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0x457f ) and ( ( 6 of ( $h* ) ) or ( 12 of ( $f* ) ) or ( 2 of ( $h* ) and 4 of ( $f* ) ) or ( 1 of ( $s* ) and ( 4 of ( $h* ) or 4 of ( $f* ) ) ) or ( 13 of them ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 6 patterns in ( $h* ) must match.
- At least 12 patterns in ( $f* ) must match.
- At least 2 patterns in ( $h* ) must match.
- At least 4 patterns in ( $f* ) must match.
- At least 1 patterns in ( $s* ) must match.
- At least 4 patterns in ( $h* ) must match.
- At least 13 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: f63ebd05-fb4b-50fb-887b-dacd379594a4
Tags:FILE
Related rules
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- 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