Created
May 15, 2019 19:17
-
-
Save kirk-sayre-work/6ebdee9eff31ba8bd6e35ec3f9efd726 to your computer and use it in GitHub Desktop.
Yara Rule to Detect Office Files Modified to Hide VBA Modules in Office VBA IDE.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rule vba_hidden_from_editor { | |
strings: | |
$header_office = { D0 CF 11 E0 } | |
$has_macros = "\x0aDocument=" | |
$s1 = /\x0aDocument=.{3,1000}\x0d?\x0a\w{4,30}=(\{|"|[a-zA-Z])/ | |
$s2 = /\x0aDocument=This(Docume|Displa)[a-zA-Z](\x00.){10,}/ | |
condition: | |
($header_office at 0) and $has_macros and not $s1 and not $s2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment