Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_RTF_Threadkit_Exploit_Builder_Document

Detects vaiations of RTF documents generated by ThreadKit builder.

Suspicious / huntingditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-09-06
Score / Quality
75 / 75

What this rule detects

Detects vaiations of RTF documents generated by ThreadKit builder.

It defines 8 patterns (7 text, 0 hex, 1 regex).

Summary generated from the rule's metadata and condition.

Rule source

indicator-rtf-threadkit-exploit-builder-document.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_RTF_Threadkit_Exploit_Builder_Document : FILE
{
	meta:
		description = "Detects vaiations of RTF documents generated by ThreadKit builder."
		author = "ditekSHen"
		id = "f4a4e7f0-ea2f-523f-9634-a939dc90706e"
		date = "2020-11-06"
		modified = "2024-09-06"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_office.yar#L565-L582"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "f2308ac6ae5345e0c783871dd6b471397ec83ba7194db5cc74c8984d84c2c0c2"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$obj1 = "\\objhtml" ascii
		$obj2 = "\\objdata" ascii
		$obj3 = "\\objupdate" ascii
		$obj4 = "\\objemb" ascii
		$obj5 = "\\objautlink" ascii
		$obj6 = "\\objlink" ascii
		$obj7 = "\\mmath" ascii
		$pat1 = /\\objupdate\\v[\\\s\n\r]/ ascii

	condition:
		uint32( 0 ) == 0x74725c7b and 2 of ( $obj* ) and 1 of ( $pat* )
}

Strings (8 patterns)

IdentifierTypeValueModifiers
$obj1text"\\objhtml"ascii
$obj2text"\\objdata"ascii
$obj3text"\\objupdate"ascii
$obj4text"\\objemb"ascii
$obj5text"\\objautlink"ascii
$obj6text"\\objlink"ascii
$obj7text"\\mmath"ascii
$pat1regex/\\objupdate\\v[\\\s\n\r]/ascii

Condition

uint32( 0 ) == 0x74725c7b and 2 of ( $obj* ) and 1 of ( $pat* )

In plain words (Heuristic)

  • The file must start with “{\rt” — an RTF document.
  • At least 2 patterns in ( $obj* ) must match.
  • At least 1 patterns in ( $pat* ) 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: f4a4e7f0-ea2f-523f-9634-a939dc90706e

Tags:FILE