Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 76129bd18a12502b…

MALICIOUS

Office (OLE)

453.0 KB Created: 2007-03-13 10:04:27 Authoring application: Microsoft Excel First seen: 2020-09-15
MD5: 94d08a6becbc71d1c8a4c54112fcfa58 SHA-1: 0eafb358b0a0308e917775f9d155679f5898a3ca SHA-256: 76129bd18a12502b12f56d64a9e4bd9f7631439bf31f5726924cabf610b7fccd
212 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample is an Excel document containing obfuscated VBA macros, specifically a Workbook_Open auto-execution routine. The critical heuristic 'OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER' indicates the macro is designed to execute code upon opening, likely to download and run a second-stage payload. The document body presents a fake financial document to lure the user into enabling macros.

Heuristics 8

  • VBA macros detected medium 5 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.
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open 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.
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • 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://www.w3.org/2001/XMLSchema-instance 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) 116764 bytes
SHA-256: fcbffb6c21b86dce5287599ae0bb6c85626e979d6e2710335a418f1bbe7e8912
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 2 eval/decoder/string-building token(s).
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Option Explicit


Public flErrSelect As Boolean
Public Sub SetflErrSelect()
  flErrSelect = True
End Sub

Private Sub Workbook_Open()
''Тимчасово вимкнено дану функціональність
''  Call OpzExcelCommon.SplashWindowShow(Version)
'Підключення меню користувача
  Call MyMenuBuildierAdd
End Sub


Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
  Dim Rng As Range
'Розробити в подальшому
'  If flErrSelect Then
'    If ActiveWorkbook.Sheets("setting").Range("B3").value = 1 Then
'      Set rng = SelExcelRegion( _
'        ActiveWorkbook.Sheets("setting").Range("C3").value, _
'        ActiveWorkbook.Sheets("setting").Range("D3").value _
'      )
'      rng.Interior.ColorIndex = ActiveWorkbook.Sheets("setting").Range("E3").value
'      rng.Interior.Pattern = ActiveWorkbook.Sheets("setting").Range("F3").value
'      rng.Interior.PatternColorIndex = ActiveWorkbook.Sheets("setting").Range("G3").value
'      ActiveWorkbook.Sheets("setting").Range("B3").value = 0
'    End If
'    flErrSelect = False
'  End If
End Sub


'
'Activate menu module
'

Private Sub Workbook_Activate()
  Call MyMenuBuildierAdd
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
  Call MyMenuBuildierDelete("Довідник &ОПЗ")
End Sub

Private Sub Workbook_Deactivate()
  Call MyMenuBuildierDelete("Довідник &ОПЗ")
End Sub




Attribute VB_Name = "Sheet1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Control = "CommandButton1, 6, 0, MSForms, CommandButton"
Attribute VB_Control = "ComboBox1, 4, 1, MSForms, ComboBox"
Attribute VB_Control = "Image1, 14, 2, MSForms, Image"
Attribute VB_Control = "Image2, 17, 3, MSForms, Image"

Private Sub ComboBox1_Change()
  'Виділення-затінення потрібних полів
On Error GoTo exit_sub
  Dim C_DOC As String
  C_DOC = Range("C4").value
  J_F = Left(C_DOC, 1)
  C_DOC_SUB = Right(C_DOC, 3)

exit_sub:
End Sub

Private Sub CommandButton1_Click()
  If Worksheets("список").Visible = xlSheetVisible Then
    Worksheets("список").Visible = xlSheetHidden
    Worksheets("setting").Visible = xlSheetHidden
  Else
    Worksheets("список").Visible = xlSheetVisible
    Worksheets("setting").Visible = xlSheetVisible
  End If
End Sub

Private Sub CommandButton2_Click()
  'Call TestProc
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

End Sub

Public Sub CellLight(addr As String, Optional addrsave As String = "") 'Підсвічення поля поточного документа
  Dim Rng As Range, RngS As Range
  
  Set Rng = GetRangeFromExcel(addr)
  Rng.Interior.Pattern = xlSolid
  Rng.Interior.ColorIndex = 15
  If Len(addrsave) > 0 Then
    Set RngS = GetRangeFromExcel(addrsave)
    Rng.value2 = IIf(Len(Rng.value2) > 0, Rng.value2, RngS.value2)
  End If
End Sub
Private Sub CellDeLight(addr As String, addrsave As String) 'Затінення поля поточного документа
  Dim Rng As Range, RngS As Range
  
  Set Rng = GetRangeFromExcel(addr)
  Set RngS = GetRangeFromExcel(addrsave)
  Rng.Interior.ColorIndex = xlNone
  
  RngS.value2 = Rng.value2
  Rng.value2 = ""
End Sub



Attribute VB_Name = "Sheet2"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Module"
Private lTypes As XSDTypeList
Private blockLen As Long

Function FormFullNameDoc(pc_doc As String)
  F
... (truncated)