Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 66f0d5892adaa178…

MALICIOUS

Office (OOXML)

13.4 KB Created: 2021-04-16 11:39:48 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-04-25
MD5: 4c14a17aff56c4d89bd86679ec5923a8 SHA-1: d222c5b69ca33d1770c5cb47b9bdc96b0cb2f67d SHA-256: 66f0d5892adaa1784f173499b99bd7c852f883b4c087e23b6928cb0c8a2a2c5b
228 Risk Score

Heuristics 6

  • VBA project inside OOXML medium 5 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
        Set objShell = CreateObject("WScript.Shell")
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference in VBA
    Matched line in script
        objShell.Run ("""powershell""")
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
        Set objShell = CreateObject("WScript.Shell")
  • 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.
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub Auto_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) 803 bytes
SHA-256: ccd86971510341d9cfdb8062794905858b36049a8574942d582e568b2d107eb6
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Modul1"
Sub Auto_Open()
    Dim objShell
    Set objShell = CreateObject("WScript.Shell")
    objShell.Run ("""powershell""")
    Set objShell = Nothing
End Sub

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

Attribute VB_Name = "Tabelle1"
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 16384 bytes
SHA-256: 94c123df8c5b0725a415afefa0e5a2173e54a32ee2a51bd4ac6ff93d2327284a