YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Tmanager
Detects TManager RAT. Associated with TA428
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects TManager RAT. Associated with TA428
Associated malware family: Tmanager.
Targets: Windows PE.
It defines 12 patterns (12 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-tmanager.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Tmanager : FILE
{
meta:
= "Detects TManager RAT. Associated with TA428"
= "ditekSHen"
= "391b72bd-ddf5-5251-b566-c75c1cc16b74"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L4391-L4410"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "cdbcc00ae67c9161f6db89cfa658c8bc8fb7fab3915ac5ae99bdd34c42ee2abb"
= 75
= 75
= "FILE"
strings:
$s1 = "WSAStartup Error!" fullword wide
$s2 = "KB3112342.LOG" fullword wide
$s3 = "\\cmd.exe -c" fullword wide
$s4 = "sock_hmutex" fullword wide
$s5 = "cmd_hmutex" fullword wide
$s6 = "powershell" fullword wide
$s7 = "%s_%d.bmp" fullword wide
$s8 = "!Error!" fullword wide
$s9 = "[Execute]" fullword ascii
$s10 = "[Snapshot]" fullword ascii
$s11 = "GetLanIP error!" fullword ascii
$s12 = "chcp & exit" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and 6 of them
}
Strings (12 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "WSAStartup Error!" | fullword wide |
| $s2 | text | "KB3112342.LOG" | fullword wide |
| $s3 | text | "\\cmd.exe -c" | fullword wide |
| $s4 | text | "sock_hmutex" | fullword wide |
| $s5 | text | "cmd_hmutex" | fullword wide |
| $s6 | text | "powershell" | fullword wide |
| $s7 | text | "%s_%d.bmp" | fullword wide |
| $s8 | text | "!Error!" | fullword wide |
| $s9 | text | "[Execute]" | fullword ascii |
| $s10 | text | "[Snapshot]" | fullword ascii |
| $s11 | text | "GetLanIP error!" | fullword ascii |
| $s12 | text | "chcp & exit" | fullword ascii |
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: 391b72bd-ddf5-5251-b566-c75c1cc16b74
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