Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 78b2a526ffcdc75b…

MALICIOUS

Office (OOXML)

29.4 KB Created: 2021-06-08 07:44:17 UTC Authoring application: Microsoft Excel 16.0300
MD5: 667bebfa69635584c8d07ee5155323b2 SHA-1: 186d38c51cea18247726c4618407ce53d905af86 SHA-256: 78b2a526ffcdc75bda2608923978da3e07e09ff9d0c2fef4a264fdcb56567973
302 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1105 Ingress Tool Transfer

The Workbook_Open macro executes VBA code that constructs the string 'powershell' and uses WinHttp to download a file from 'https://YourWebSite.com/?your_query_parameters'. The downloaded content is saved as 'C:\test\wp1\file.csv' and then the macro attempts to execute 'calc.exe' using Shell(). It also copies cmd.exe to 'c:\test\wp1\gg1.exe'. This indicates the document is designed to download and execute a secondary payload.

Heuristics 8

  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • 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.
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • cmd.exe reference in VBA high OLE_VBA_CMD
    cmd.exe reference in VBA
  • 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.
  • VBA project inside OOXML medium OOXML_VBA
    Document contains a VBA project — VBA macros present
  • 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 https://YourWebSite.com/?your_query_parameters

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas
08ed8878965a0b191482f1ee26c628ece426123fb011220a468521aaa978f47f
vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 1962 bytes
vbaProject_00.bin
7a84e847f0992c812b1c3d2cd8a9ecfac32c74056324c8c0354009b02389d38b
vba-project OOXML VBA project: xl/vbaProject.bin 19456 bytes