Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 2e97155bd2ca2400…

MALICIOUS

Office (OOXML)

15.2 KB Created: 2021-06-08 07:44:17 UTC Authoring application: Microsoft Excel 16.0300
MD5: 9cca15b14a568fb385e8434418ba3d3f SHA-1: 7c611b2ef6e55c554cac8be9f9627ee869e88e2c SHA-256: 2e97155bd2ca2400ba8726d5e23f8d74315d83d2a61080625e243f82a080bf9a
300 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 uses CreateObject to instantiate Microsoft.XMLHTTP and ADODB.Stream objects. It attempts to download content from an unspecified URL (represented by 'g') and save it to 'C:\test\wp1\file.csv'. The script also executes 'calc.exe' and copies 'cmd.exe' to 'C:\test\wp1\gg1.exe', indicating a multi-stage attack. The use of Shell() and cmd.exe references points to command execution.

Heuristics 7

  • 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

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas
18b692ca7f8807ef9fbcb03bb2688691807cb7c26273f7b676aa729d72e469a3
vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 1862 bytes
vbaProject_00.bin
fc2e63c1978fca5d5ecd5dc6254207fc92cf9e625ba1eccd2e41791a534326b3
vba-project OOXML VBA project: xl/vbaProject.bin 19456 bytes