Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_RTF_Equation_Bitsadmin_Downloader

Detects RTF documents that references both Microsoft Equation Editor and BITSAdmin. Common exploit + dropper behavior.

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 RTF documents that references both Microsoft Equation Editor and BITSAdmin. Common exploit + dropper behavior.

It defines 9 patterns (9 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

indicator-rtf-equation-bitsadmin-downloader.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_RTF_Equation_Bitsadmin_Downloader : FILE
{
	meta:
		description = "Detects RTF documents that references both Microsoft Equation Editor and BITSAdmin. Common exploit + dropper behavior."
		author = "ditekSHen"
		id = "e96a6f18-9a5e-58ca-829e-c82b444ad403"
		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#L428-L451"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "39a07a0af243e929a6b3df48b6cf8a9d30bc8ef9e7deac494348945427b015e7"
		score = 75
		quality = 75
		tags = "FILE"
		snort2_sid = "910002-910003"
		snort3_sid = "910001"
		clamav_sig = "INDICATOR.RTF.EquationBITSAdminDownloader"

	strings:
		$eq = "0200000002CE020000000000C000000000000046" ascii nocase
		$ba = "6269747361646d696e" ascii nocase
		$obj1 = "\\objhtml" ascii
		$obj2 = "\\objdata" ascii
		$obj3 = "\\objupdate" ascii
		$obj4 = "\\objemb" ascii
		$obj5 = "\\objautlink" ascii
		$obj6 = "\\objlink" ascii
		$obj7 = "\\mmath" ascii

	condition:
		uint32( 0 ) == 0x74725c7b and ( ( $eq and $ba ) and 1 of ( $obj* ) )
}

Strings (9 patterns)

IdentifierTypeValueModifiers
$eqtext"0200000002CE020000000000C000000000000046"ascii nocase
$batext"6269747361646d696e"ascii nocase
$obj1text"\\objhtml"ascii
$obj2text"\\objdata"ascii
$obj3text"\\objupdate"ascii
$obj4text"\\objemb"ascii
$obj5text"\\objautlink"ascii
$obj6text"\\objlink"ascii
$obj7text"\\mmath"ascii

Condition

uint32( 0 ) == 0x74725c7b and ( ( $eq and $ba ) and 1 of ( $obj* ) )

In plain words (Heuristic)

  • The file must start with “{\rt” — an RTF document.
  • At least 1 patterns in ( $obj* ) must match.
  • Pattern $eq must be present.
  • Pattern $ba must be present.

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: e96a6f18-9a5e-58ca-829e-c82b444ad403

Metadata

snort2_sid910002-910003
snort3_sid910001
clamav_sigINDICATOR.RTF.EquationBITSAdminDownloader

Tags:FILE