Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 03eb9e584d3fd636…

MALICIOUS

Office (OOXML)

29.2 KB Created: 2021-06-08 07:44:17 UTC Authoring application: Microsoft Excel 16.0300
MD5: 4f946177d0c8b302afad0820b43ee915 SHA-1: 583fbf0caa01512a9f9dbb9c78cc801f705fb47c SHA-256: 03eb9e584d3fd6368a2e5ed5e8847cef2e9fc1a7ecf5de6537e70ec8524ec739
302 Risk Score

Malware Insights

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

The VBA macro contains a Workbook_Open subroutine that constructs the string 'powershell' and uses it to execute a command. It downloads a file from 'https://YourWebSite.com/?your_query_parameters' using Microsoft.XMLHTTP, saves it as 'C:\test\wp1\file.csv', and then attempts to execute 'calc.exe' via Shell(). It also copies 'cmd.exe' to 'c:\test\wp1\gg1.exe'. The primary intent appears to be downloading and executing a second-stage 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
47aabf00642e5d9b2df9049a6f79776c83a823cdc16c84b3ffab541da2687569
vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 1966 bytes
vbaProject_00.bin
af81b6bc964e0f5110cece98c50879e022cc85dbb3ff5e93aec751e4566514a0
vba-project OOXML VBA project: xl/vbaProject.bin 19456 bytes