sobierski

VBA

Oct 3rd, 2018
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.75 KB | None | 0 0
  1. /*
  2.     This Yara ruleset is under the GNU-GPLv2 license (http://www.gnu.org/licenses/gpl-2.0.html) and open to any user or organization, as    long as you use it under this license.
  3.  
  4. */
  5.  
  6.  
  7. rule Contains_VBA_macro_code
  8. {
  9.     meta:
  10.         author = "evild3ad"
  11.         description = "Detect a MS Office document with embedded VBA macro code"
  12.         date = "2016-01-09"
  13.         filetype = "Office documents"
  14.  
  15.     strings:
  16.         $officemagic = { D0 CF 11 E0 A1 B1 1A E1 }
  17.         $zipmagic = "PK"
  18.  
  19.         $97str1 = "_VBA_PROJECT_CUR" wide
  20.         $97str2 = "VBAProject"
  21.         $97str3 = { 41 74 74 72 69 62 75 74 00 65 20 56 42 5F } // Attribute VB_
  22.  
  23.         $xmlstr1 = "vbaProject.bin"
  24.         $xmlstr2 = "vbaData.xml"
  25.  
  26.     condition:
  27.         ($officemagic at 0 and any of ($97str*)) or ($zipmagic at 0 and any of ($xmlstr*))
  28. }
Add Comment
Please, Sign In to add comment