YARA · ditekSHen detection
DITEKSHEN_INDICATOR_RTF_Equation_Powershell_Downloader
Detects RTF documents that references both Microsoft Equation Editor and PowerShell. Common exploit + dropper behavior.
- 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 PowerShell. 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
rule DITEKSHEN_INDICATOR_RTF_Equation_Powershell_Downloader : FILE
{
meta:
= "Detects RTF documents that references both Microsoft Equation Editor and PowerShell. Common exploit + dropper behavior."
= "ditekSHen"
= "5d1d65ef-e183-5a0d-a0fa-d0d5f09f21a1"
= "2020-11-06"
= "2024-09-06"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_office.yar#L478-L501"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "0b8b9b7b40f8b4d659de9e025a65d5c6b64c6066bb618a3e7ed3c318f70befe5"
= 75
= 75
= "FILE"
= "910004-910005"
= "910002"
= "INDICATOR.RTF.EquationPowerShellDownloader"
strings:
$eq = "0200000002CE020000000000C000000000000046" ascii nocase
$ps = "706f7765727368656c6c" 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 ( ( $ps and $eq ) and 1 of ( $obj* ) )
}
Strings (9 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $eq | text | "0200000002CE020000000000C000000000000046" | ascii nocase |
| $ps | text | "706f7765727368656c6c" | ascii nocase |
| $obj1 | text | "\\objhtml" | ascii |
| $obj2 | text | "\\objdata" | ascii |
| $obj3 | text | "\\objupdate" | ascii |
| $obj4 | text | "\\objemb" | ascii |
| $obj5 | text | "\\objautlink" | ascii |
| $obj6 | text | "\\objlink" | ascii |
| $obj7 | text | "\\mmath" | ascii |
Condition
uint32( 0 ) == 0x74725c7b and ( ( $ps and $eq ) 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 $ps must be present.
- Pattern $eq 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: 5d1d65ef-e183-5a0d-a0fa-d0d5f09f21a1
Metadata
| snort2_sid | 910004-910005 |
|---|---|
| snort3_sid | 910002 |
| clamav_sig | INDICATOR.RTF.EquationPowerShellDownloader |
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