Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_XML_Webrelframe_Remotetemplate

Detects XML web frame relations refrencing an external target in dropper OOXML documents

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 XML web frame relations refrencing an external target in dropper OOXML documents

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

Summary generated from the rule's metadata and condition.

Rule source

indicator-xml-webrelframe-remotetemplate.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_XML_Webrelframe_Remotetemplate : FILE
{
	meta:
		description = "Detects XML web frame relations refrencing an external target in dropper OOXML documents"
		author = "ditekSHen"
		id = "724650db-8d58-5e73-92e7-287890babc3b"
		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#L742-L752"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "fbe209e31ddb4369de02b6e91bf65f0588089c7b838dcf80f182248790b59e20"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$target1 = "/frame\" Target=\"http" ascii nocase
		$target2 = "/frame\" Target=\"file" ascii nocase
		$mode = "TargetMode=\"External" ascii

	condition:
		uint32( 0 ) == 0x6d783f3c and ( 1 of ( $target* ) and $mode )
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$target1text"/frame\" Target=\"http"ascii nocase
$target2text"/frame\" Target=\"file"ascii nocase
$modetext"TargetMode=\"External"ascii

Condition

uint32( 0 ) == 0x6d783f3c and ( 1 of ( $target* ) and $mode )

In plain words (Heuristic)

  • At least 1 patterns in ( $target* ) must match.
  • Pattern $mode 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: 724650db-8d58-5e73-92e7-287890babc3b

Tags:FILE