YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Truebot
Detects TrueBot
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects TrueBot
Associated malware family: Truebot.
Targets: Windows PE.
It defines 11 patterns (10 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-truebot.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Truebot : FILE
{
meta:
= "Detects TrueBot"
= "ditekSHen"
= "7210a0bd-d310-55bf-bb0c-14cadb59bd67"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9807-L9827"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "a92141ef0aa7d68b3594a0f56c0370498fe5751a472c9011ac8b92ae46e88e53"
= 75
= 75
= "FILE"
strings:
$s1 = "%s\\rundll32.exe" fullword wide
$s2 = "ChkdskExs" fullword wide
$s3 = "n=%s&o=%s&a=%d&u=%s&p=%s&d=%s" ascii
$s4 = "KLLS" fullword ascii
$s5 = "%s\\%08x-%08x.ps1" fullword ascii
$s6 = ".JSONIP" ascii
$s7 = "CreateProcessAsUserW res %d err %d" fullword ascii
$s8 = "ldr_sys64.dll" fullword ascii
$s9 = "SVCHOST" fullword ascii
$s10 = "WINLOGON" fullword ascii
$s11 = { 67 6f 6f 67 6c 65 2e 63 6f 6d 00 00 00 00 00 00
2f 00 63 00 20 00 64 00 65 00 6c 00 20 00 00 00
20 00 3e 00 3e 00 20 00 4e 00 55 00 4c 00 }
condition:
uint16( 0 ) == 0x5a4d and 6 of them
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "%s\\rundll32.exe" | fullword wide |
| $s2 | text | "ChkdskExs" | fullword wide |
| $s3 | text | "n=%s&o=%s&a=%d&u=%s&p=%s&d=%s" | ascii |
| $s4 | text | "KLLS" | fullword ascii |
| $s5 | text | "%s\\%08x-%08x.ps1" | fullword ascii |
| $s6 | text | ".JSONIP" | ascii |
| $s7 | text | "CreateProcessAsUserW res %d err %d" | fullword ascii |
| $s8 | text | "ldr_sys64.dll" | fullword ascii |
| $s9 | text | "SVCHOST" | fullword ascii |
| $s10 | text | "WINLOGON" | fullword ascii |
| $s11 | hex | { 67 6f 6f 67 6c 65 2e 63 6f 6d 00 00 00 00 00 00 2f 00 63 00 20 00 64 00 65 00 6c 00 20 00 00 00 20 00 3e 00 3e 00 20 00 4e 0 … |
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: 7210a0bd-d310-55bf-bb0c-14cadb59bd67
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