Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Truebot

Detects TrueBot

MalwareTruebotditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects TrueBot"
		author = "ditekSHen"
		id = "7210a0bd-d310-55bf-bb0c-14cadb59bd67"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9807-L9827"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "a92141ef0aa7d68b3594a0f56c0370498fe5751a472c9011ac8b92ae46e88e53"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$s1text"%s\\rundll32.exe"fullword wide
$s2text"ChkdskExs"fullword wide
$s3text"n=%s&o=%s&a=%d&u=%s&p=%s&d=%s"ascii
$s4text"KLLS"fullword ascii
$s5text"%s\\%08x-%08x.ps1"fullword ascii
$s6text".JSONIP"ascii
$s7text"CreateProcessAsUserW res %d err %d"fullword ascii
$s8text"ldr_sys64.dll"fullword ascii
$s9text"SVCHOST"fullword ascii
$s10text"WINLOGON"fullword ascii
$s11hex{ 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 them

In 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.

Open in editor

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).

Original rule

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