YARA · ditekSHen detection
DITEKSHEN_INDICATOR_OOXML_Excel4Macros_EXEC
Detects OOXML (decompressed) documents with Excel 4 Macros XLM macrosheet
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-09-06
- Score / Quality
- 75 / 75
What this rule detects
Detects OOXML (decompressed) documents with Excel 4 Macros XLM macrosheet
It defines 5 patterns (5 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
indicator-ooxml-excel4macros-exec.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_OOXML_Excel4Macros_EXEC : FILE
{
meta:
= "Detects OOXML (decompressed) documents with Excel 4 Macros XLM macrosheet"
= "ditekSHen"
= "674ef310-d3bc-5e15-862f-29aa111becb3"
= "2020-11-06"
= "2024-09-06"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_office.yar#L885-L898"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "ab3994e4082390f65d030db0b898a20df1d7e4b0ca2fdedc7a9d0f1480fd0334"
= 75
= 75
= "FILE"
= "INDICATOR.OOXML.Excel4MacrosEXEC"
strings:
$ms = "<xm:macrosheet" ascii nocase
$s1 = ">FORMULA.FILL(" ascii nocase
$s2 = ">REGISTER(" ascii nocase
$s3 = ">EXEC(" ascii nocase
$s4 = ">RUN(" ascii nocase
condition:
uint32( 0 ) == 0x6d783f3c and $ms and ( 2 of ( $s* ) or ( $s3 ) )
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ms | text | "<xm:macrosheet" | ascii nocase |
| $s1 | text | ">FORMULA.FILL(" | ascii nocase |
| $s2 | text | ">REGISTER(" | ascii nocase |
| $s3 | text | ">EXEC(" | ascii nocase |
| $s4 | text | ">RUN(" | ascii nocase |
Condition
uint32( 0 ) == 0x6d783f3c and $ms and ( 2 of ( $s* ) or ( $s3 ) )In plain words (Heuristic)
- At least 2 patterns in ( $s* ) must match.
- Pattern $ms 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.
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: 674ef310-d3bc-5e15-862f-29aa111becb3
Metadata
| clamav_sig | INDICATOR.OOXML.Excel4MacrosEXEC |
|---|
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