YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_Gen_Excel_Auto_Open_Evasion
Detects an obfuscated Auto_Open cell names in Excel files
- Author
- @JohnLaTwC
- Date
- 2020-09-24
- Modified
- 2023-12-05
- Score / Quality
- 70 / 83
What this rule detects
Detects an obfuscated Auto_Open cell names in Excel files
Targets: OLE / legacy Office.
It defines 2 patterns (1 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_Gen_Excel_Auto_Open_Evasion : FILE
{
meta:
= "Detects an obfuscated Auto_Open cell names in Excel files"
= "@JohnLaTwC"
= "e33b8d1d-4978-5747-8b5b-730e6c57dbf0"
= "2020-09-24"
= "2023-12-05"
= "https://malware.pizza/2020/05/12/evading-av-with-excel-macros-and-biff8-xls/"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_excel_auto_open_evasion.yar#L1-L26"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "e23f9f55e10f3f31a2e76a12b174b6741a2fa1f51cf23dbd69cf169d92c56ed5"
= "bb3c9739de8ffe2e0f375847d41a010463ec19f1d3f578ac053651a51ed69bbc"
= "56ff65b7f6bf5936883f52b50ca66e768b2088158cc77af681ffab7122be7753"
= "97243214ac3cad74d60b0648e39d6a9600860edba51c670b5226e058ba658957"
= "9ebf085c05ae94c1b6c4e011001a6c11de3ca754a56ed380314ef501b777e593"
= "b5a8bbf3c7d49bd208d8302f6867b5f6d3d7c09830b575967801893498cc92d9"
= "d7d81683b9abd7b89d6d6ee4d14ff37359acd353a6bd1d88bc793525c8f203d9"
= 70
= 83
= "FILE"
strings:
$auto_open = { 00 00 00 00 01 [0-2] (61 | 41) [0-5](75 | 55) [0-5](74 | 54) [0-5](6f | 4f) [0-5](5f | 5f) [0-5](6f | 4f) [0-5](70 | 50) [0-5](65 | 45) [0-5](6e | 4e)}
$plain_auto_open = "auto_open" nocase wide ascii
condition:
filesize < 1MB and uint32be( 0 ) == 0xD0CF11E0 and $auto_open and #plain_auto_open == 0
}
Strings (2 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $auto_open | hex | { 00 00 00 00 01 [0-2] (61 | 41) [0-5](75 | 55) [0-5](74 | 54) [0-5](6f | 4f) [0-5](5f | 5f) [0-5](6f | 4f) [0-5](70 | 50) [0-5](65 | 45) [0-5](6e | 4e)} | |
| $plain_auto_open | text | "auto_open" | nocase wide ascii |
Condition
filesize < 1MB and uint32be( 0 ) == 0xD0CF11E0 and $auto_open and #plain_auto_open == 0In plain words (Heuristic)
- The file must start with the OLE header — legacy Office documents, MSI.
- The file must be smaller than 1MB (a cheap guard that skips large files).
- Pattern $plain_auto_open must occur == 0 times.
- Pattern $auto_open 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.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- e23f9f55e10f3f31a2e76a12b174b6741a2fa1f51cf23dbd69cf169d92c56ed5
- bb3c9739de8ffe2e0f375847d41a010463ec19f1d3f578ac053651a51ed69bbc
- 56ff65b7f6bf5936883f52b50ca66e768b2088158cc77af681ffab7122be7753
- 97243214ac3cad74d60b0648e39d6a9600860edba51c670b5226e058ba658957
- 9ebf085c05ae94c1b6c4e011001a6c11de3ca754a56ed380314ef501b777e593
- b5a8bbf3c7d49bd208d8302f6867b5f6d3d7c09830b575967801893498cc92d9
Licence & attribution
Author: @JohnLaTwC
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: e33b8d1d-4978-5747-8b5b-730e6c57dbf0
Tags:FILE
Related rules
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· @JohnLaTwC· 2020-10-16