YARA · ditekSHen detection
DITEKSHEN_INDICATOR_RTF_Forms_HTML_Execution
detects RTF files with Forms.HTML:Image.1 or Forms.HTML:Submitbutton.1 OLE objects referencing file or HTTP URLs.
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-09-06
- Score / Quality
- 75 / 75
What this rule detects
detects RTF files with Forms.HTML:Image.1 or Forms.HTML:Submitbutton.1 OLE objects referencing file or HTTP URLs.
It defines 4 patterns (4 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule DITEKSHEN_INDICATOR_RTF_Forms_HTML_Execution : FILE
{
meta:
= "detects RTF files with Forms.HTML:Image.1 or Forms.HTML:Submitbutton.1 OLE objects referencing file or HTTP URLs."
= "ditekSHen"
= "26b21c94-9192-53be-808b-b553f87769e1"
= "2020-11-06"
= "2024-09-06"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_office.yar#L519-L533"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "5e8a2072971c40d6fbc0e0265a9adfbe4faa04d0f3c6962fda443da33aa06906"
= 75
= 75
= "FILE"
strings:
$img_clsid = "12d11255c65ccf118d6700aa00bdce1d" ascii nocase
$sub_clsid = "10d11255c65ccf118d6700aa00bdce1d" ascii nocase
$http_url = "6800740074007000" ascii nocase
$file_url = "660069006c0065003a" ascii nocase
condition:
uint32( 0 ) == 0x74725c7b and filesize < 1500KB and ( $img_clsid or $sub_clsid ) and ( $http_url or $file_url )
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $img_clsid | text | "12d11255c65ccf118d6700aa00bdce1d" | ascii nocase |
| $sub_clsid | text | "10d11255c65ccf118d6700aa00bdce1d" | ascii nocase |
| $http_url | text | "6800740074007000" | ascii nocase |
| $file_url | text | "660069006c0065003a" | ascii nocase |
Condition
uint32( 0 ) == 0x74725c7b and filesize < 1500KB and ( $img_clsid or $sub_clsid ) and ( $http_url or $file_url )In plain words (Heuristic)
- The file must start with “{\rt” — an RTF document.
- The file must be smaller than 1500KB (a cheap guard that skips large files).
- Pattern $img_clsid must be present.
- Pattern $sub_clsid must be present.
- Pattern $http_url must be present.
- Pattern $file_url 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.
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: 26b21c94-9192-53be-808b-b553f87769e1
Tags:FILE
Related rules
- Suspicious / huntingditekSHen detection· ditekSHen· 2023-08-22
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21