Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 f6f5e2ea4964d266…

MALICIOUS

Office (OOXML)

14.9 KB Created: 2021-06-08 07:44:17 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2026-06-04
MD5: bdeb35b9f42ba9dd547c90384df3a8fa SHA-1: 42dfcf6be8e1a656576728fc47aa31ea5b095e94 SHA-256: f6f5e2ea4964d26657bf42a6c66f0da16880cfee0930afea3186b30e210ce2f9
68 Risk Score

Malware Insights

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

The OOXML file contains a Workbook_Open VBA macro that is designed to execute a PowerShell command. This command is constructed by concatenating strings to form 'powershell' and then uses the reconstructed URL 'https://YourWebSite.com/?your_query_parameters' to download and execute a second-stage payload. The presence of the Workbook_Open macro and the execution of external code strongly indicate a malicious intent, likely for initial access via spearphishing.

Heuristics 3

  • VBA project inside OOXML medium 2 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • 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.
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Sub Workbook_Open()

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) 1135 bytes
SHA-256: 1de84bc2335abd72d21706481ecdb49c100537249da16c89a6811c219a89d47e
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
Sub Workbook_Open()
    Dim gg As String
    Dim wp As String
    Dim ggwp As String
    Dim p1 As String
    Dim p2 As String
    Dim p3 As String
    Dim p4 As String
    gg = "powers"
    wp = "hell"
    p1 = "new:07B919"
    p2 = "A9-79D7-4FE0-8D0"
    p3 = "B-A8103A672E2A"
    p4 = p1 & p2 & p3
    ggwp = gg & wp
    Dim myUR As String
    Dim L As String
    Dim g As String
    myUR = "htt"
    L = "ps://YourWebSite.com/?your_query_parameters"
    g = myUR & L
    
    
    
    

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
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 18432 bytes
SHA-256: b96fcadff2b0bf124a86619f5791a9940d80da86c85795577038713606b5eab1