YARA · ditekSHen detection
DITEKSHEN_INDICATOR_OOXML_Excel4Macros_Autoopenhidden
Detects OOXML (decompressed) documents with Excel 4 Macros XLM macrosheet auto_open and state hidden
- 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 auto_open and state hidden
It defines 2 patterns (2 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule DITEKSHEN_INDICATOR_OOXML_Excel4Macros_Autoopenhidden : FILE
{
meta:
= "Detects OOXML (decompressed) documents with Excel 4 Macros XLM macrosheet auto_open and state hidden"
= "ditekSHen"
= "c5aab620-5254-5fc6-b236-4fe0f69cbd8e"
= "2020-11-06"
= "2024-09-06"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_office.yar#L900-L910"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "a93d8aa7ac025a0c2e8a9ac833f6d4c3cd3769ffca3f87455f43411d0021e828"
= 75
= 75
= "FILE"
= "INDICATOR.OOXML.Excel4MacrosEXEC"
strings:
$s1 = "state=\"veryhidden\"" ascii nocase
$s2 = "<definedName name=\"_xlnm.Auto_Open" ascii nocase
condition:
uint32( 0 ) == 0x6d783f3c and all of them
}
Strings (2 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "state=\"veryhidden\"" | ascii nocase |
| $s2 | text | "<definedName name=\"_xlnm.Auto_Open" | ascii nocase |
Condition
uint32( 0 ) == 0x6d783f3c and all of themIn plain words (Heuristic)
- All patterns in the rule must match.
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: c5aab620-5254-5fc6-b236-4fe0f69cbd8e
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