YARA · ditekSHen detection
DITEKSHEN_INDICATOR_OLE_Excel4Macros_DL3
Detects OLE Excel 4 Macros documents acting as downloaders
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-09-06
- Score / Quality
- 75 / 75
What this rule detects
Detects OLE Excel 4 Macros documents acting as downloaders
It defines 11 patterns (6 text, 5 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
indicator-ole-excel4macros-dl3.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_OLE_Excel4Macros_DL3 : FILE
{
meta:
= "Detects OLE Excel 4 Macros documents acting as downloaders"
= "ditekSHen"
= "794cac49-e917-5282-8cbd-8ecf91a2dc9e"
= "2020-11-06"
= "2024-09-06"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_office.yar#L842-L860"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "83eaf60b900119b9fcd458e9e9dda119fd71785821bf282e9385031368ff9891"
= 75
= 75
= "FILE"
strings:
$a1 = { 18 00 17 00 20 00 00 01 07 00 00 00 00 00 00 00 00 00 00 01 3a 00 }
$a2 = { 18 00 17 00 aa 03 00 01 07 00 00 00 00 00 00 00 00 00 00 01 3a 00 }
$a3 = { 18 00 21 00 20 00 00 01 12 00 00 00 00 00 00 00 00 00 01 3a ff }
$a4 = { 18 00 17 00 20 00 00 01 07 00 00 00 00 00 00 00 00 00 00 02 3a 00 }
$a5 = { 18 00 17 00 aa 03 00 01 07 00 00 00 00 00 00 00 00 00 00 02 3a 00 }
$a6 = "auto_open" ascii nocase
$a7 = "auto_close" ascii nocase
$s1 = "* #,##0" ascii
$s2 = "URLMon" ascii
$s3 = "DownloadToFileA" ascii
$s4 = "DllRegisterServer" ascii
condition:
uint16( 0 ) == 0xcfd0 and 1 of ( $a* ) and all of ( $s* ) and #s1 > 3
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $a1 | hex | { 18 00 17 00 20 00 00 01 07 00 00 00 00 00 00 00 00 00 00 01 3a 00 } | |
| $a2 | hex | { 18 00 17 00 aa 03 00 01 07 00 00 00 00 00 00 00 00 00 00 01 3a 00 } | |
| $a3 | hex | { 18 00 21 00 20 00 00 01 12 00 00 00 00 00 00 00 00 00 01 3a ff } | |
| $a4 | hex | { 18 00 17 00 20 00 00 01 07 00 00 00 00 00 00 00 00 00 00 02 3a 00 } | |
| $a5 | hex | { 18 00 17 00 aa 03 00 01 07 00 00 00 00 00 00 00 00 00 00 02 3a 00 } | |
| $a6 | text | "auto_open" | ascii nocase |
| $a7 | text | "auto_close" | ascii nocase |
| $s1 | text | "* #,##0" | ascii |
| $s2 | text | "URLMon" | ascii |
| $s3 | text | "DownloadToFileA" | ascii |
| $s4 | text | "DllRegisterServer" | ascii |
Condition
uint16( 0 ) == 0xcfd0 and 1 of ( $a* ) and all of ( $s* ) and #s1 > 3In plain words (Heuristic)
- All patterns in ( $s* ) must match.
- At least 1 patterns in ( $a* ) must match.
- Pattern $s1 must occur > 3 times.
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.
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: 794cac49-e917-5282-8cbd-8ecf91a2dc9e
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